trevjonez / composer-gradle-plugin

Gradle task type and plugin for interacting with https://github.com/gojuno/composer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

plastiv opened this issue · comments

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)

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.