-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setPermissions API for Android #477
Comments
You just have to install it since from adb
|
I do see a use case where a |
Hi I have noticed in detox by default all permissions are set to be true in android. Is this the true behaviour of detox |
Is any update on this issue? How can we setPermission to NO in Android device for example in launch() API we want to set {Camera: No} |
For anyone looking for a workaround, currently I am using adb command to grant/revoke camera and other permissions. Here is code I am using export const grantAndroidCameraPermission = async (
bundleIdentifier: string
) => {
execSync(`adb shell pm grant ${bundleIdentifier} android.permission.CAMERA`);
}; And I run this as soon as launch the app beforeEach(async () => {
await launchApp();
await grantAndroidCameraPermission("com.xyz.abc");
}); |
With the device object how do I set the overlay permissions to true for android.
The text was updated successfully, but these errors were encountered: