Included ‘queries’ tag in AndroidManifest to enable access to dummyapp.
For Android 11 and higher it is required to add a ‘queries’ tag into the application's AndroidManifest for it to be able to find other application packages (see https://developer.android.com/training/package-visibility). Without this tag, the target package is not visible and queryIntentActivities() returns null. Bug: 255301879 Test: Unit Test Change-Id: I265b14da2bcbc2b3b49f10729a68450169ac46bf
This commit is contained in:
@@ -35,4 +35,8 @@
|
||||
<instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
|
||||
android:targetPackage="com.android.perftests.multiuser"/>
|
||||
|
||||
<queries>
|
||||
<package android:name="perftests.multiuser.apps.dummyapp" />
|
||||
</queries>
|
||||
|
||||
</manifest>
|
||||
|
||||
Reference in New Issue
Block a user