Skip to content

Add permission automation support#106

Open
V3RON wants to merge 27 commits intomainfrom
feat/xctest
Open

Add permission automation support#106
V3RON wants to merge 27 commits intomainfrom
feat/xctest

Conversation

@V3RON
Copy link
Copy Markdown
Contributor

@V3RON V3RON commented Apr 28, 2026

Summary

Add configurable permission automation across iOS and Android so harness runs can handle native permission prompts without manual intervention.

Context

This introduces an iOS XCTest-based permission prompt agent with simulator and device transports, run-level lifecycle hooks to prepare and dispose automation around app launches, and Android permission automation through adb. Permission automation is gated behind configuration, with playground coverage and documentation showing how to enable and validate the behavior.

Proposed Testing Scenario

Run the playground permission harness with permission automation enabled on both an iOS simulator and an Android emulator. Verify the app launches, permission prompts are handled automatically, and the permission guide reflects the configuration needed for both platforms.

V3RON added 17 commits April 21, 2026 07:57
Stop collecting device crash artifacts when the app monitor starts so XCTest setup does not trigger devicectl diagnose before app launch.
Add a shared permissions flag that defaults to false and only starts the iOS XCTest permission helper when explicitly enabled.
Document the current permissions flag behavior and clarify that iOS permission automation exists today while Android-specific permission automation is not yet implemented.
Add permission granting functionality for Android that uses adb to automatically grant a comprehensive set of common dangerous permissions when the permissions config flag is enabled. Works on both emulators and physical devices.

- Create android/permissions.ts with default permission list
- Add adb.grantPermissions() function to grant permissions via 'pm grant'
- Integrate permission granting in emulator and physical device instance setup
- Add comprehensive tests for permission granting scenarios
- Update permissions documentation to describe Android implementation
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-native-harness Ready Ready Preview, Comment Apr 29, 2026 8:27am

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant