Merge "Add QUERY_ALL_PACKAGES to FrameworksNetTestsLib" into main

This commit is contained in:
Treehugger Robot
2023-09-26 07:28:01 +00:00
committed by Gerrit Code Review

View File

@@ -49,6 +49,9 @@
<uses-permission android:name="android.permission.NETWORK_FACTORY" /> <uses-permission android:name="android.permission.NETWORK_FACTORY" />
<uses-permission android:name="android.permission.NETWORK_STATS_PROVIDER" /> <uses-permission android:name="android.permission.NETWORK_STATS_PROVIDER" />
<uses-permission android:name="android.permission.CONTROL_OEM_PAID_NETWORK_PREFERENCE" /> <uses-permission android:name="android.permission.CONTROL_OEM_PAID_NETWORK_PREFERENCE" />
<!-- Workaround for flakes where the launcher package is not found despite the <queries> tag
below (b/286550950). -->
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
<!-- Declare the intent that the test intends to query. This is necessary for <!-- Declare the intent that the test intends to query. This is necessary for
UiDevice.getLauncherPackageName which is used in NetworkNotificationManagerTest UiDevice.getLauncherPackageName which is used in NetworkNotificationManagerTest