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
Appium cannot allow permissions when Target SDK is 22 or lower and is running in Android 10 (API level 29) or higher #17542
Comments
Could you share the appium server log? |
This is the error when trying to create the session
|
What about uninstalling the app under test once? it seems like If the view appears while the permission is granted, the system itself may require the view. Then maybe you need to start an appium session without the app start (no Or |
This comment was marked as outdated.
This comment was marked as outdated.
Only installation So far, Android OS gives permissions information to Appium to grant permissions against installed app over target sdk 23 as https://github.com/appium/appium-adb/blob/ecf8dfd975c23cff7300047756c59cc2808a063a/lib/tools/adb-commands.js#L332, but lower than the version cannot know such into. |
|
oh, sorry, it could be confused. |
the error message/documentation has been improved. |
The problem
When I try to run Appium with an APK with a Target SDK equal or lower than 22 and it runs on an emulator or mobile device that has Android 10 (API level 29) or higher it fails to give the respective permissions. Because of this.
Environment
Details
Error in console:
Screen in the emulator when the error is generated:
The execution was tested with this app, but the same happens with any app with a target sdk equal to or less than 22.
The text was updated successfully, but these errors were encountered: