Add PACKAGE_USAGE_STATS permission to CTS tests
Now that the PACKAGE_USAGE_STATS permission is properly associated with
the GET_USAGE_STATS app op, an app must request the permission, in order
to be granted the app op.
Fixes: 243572246
Test: atest NetworkStatsManagerTest
Change-Id: I42b22ca5d637accaa413b1c8b3dbb785c827a81b
diff --git a/tests/cts/net/AndroidManifest.xml b/tests/cts/net/AndroidManifest.xml
index 6b5bb93..25490da 100644
--- a/tests/cts/net/AndroidManifest.xml
+++ b/tests/cts/net/AndroidManifest.xml
@@ -35,6 +35,7 @@
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" />
+ <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS" />
<!-- TODO (b/186093901): remove after fixing resource querying -->
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />