Skip to content
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

Orchestrator fix for running tests on Android 11 (sdk 30) #86

Open
plastiv opened this issue May 31, 2021 · 1 comment
Open

Orchestrator fix for running tests on Android 11 (sdk 30) #86

plastiv opened this issue May 31, 2021 · 1 comment

Comments

@plastiv
Copy link
Contributor

plastiv commented May 31, 2021

Android 11 introduces package-visibility restrictions which makes orchestrator service apk to not see test apk package running in different process. Running tests with orchestrator and composer doesn't work on android 11.

Composer plugin needs to install orchestrator apk with --force-queryable flag. Probably this part of codebase needs to be updated:

commandAndArgs = listOf(adb.absolutePath, "-s", id, "install", "-r", pathToApk),

Full description of the issue in upstream issue. On example of firebase test runner google engineer confirms that there is no other fix possible from android test library android/android-test#743 (comment)

@b-demuth
Copy link

We also ran into this issue today, but were able to work around it by adding the following to our debug/AndroidManifest.xml:

<queries> <package android:name="androidx.test.orchestrator" /> </queries>

Hope this helps.

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

No branches or pull requests

2 participants