summaryrefslogtreecommitdiffstats
path: root/libs/WifiTrackerLib/tests/AndroidManifest.xml
diff options
context:
space:
mode:
authorDavid Su <dysu@google.com>2019-12-18 21:58:11 -0800
committerDavid Su <dysu@google.com>2019-12-18 22:43:36 -0800
commitb0de7b75bd925f5aebf6b82edcf45faf889fa6dd (patch)
tree34c4e078b0ea9fa88d7b350d2d7dd3e8a76233ef /libs/WifiTrackerLib/tests/AndroidManifest.xml
parentcc76f7e6f12ac241ed69dd74a318e8e76e43e5b6 (diff)
downloadframeworks_opt_net_wifi-b0de7b75bd925f5aebf6b82edcf45faf889fa6dd.tar.gz
frameworks_opt_net_wifi-b0de7b75bd925f5aebf6b82edcf45faf889fa6dd.tar.bz2
frameworks_opt_net_wifi-b0de7b75bd925f5aebf6b82edcf45faf889fa6dd.zip
WifiTrackerLibTests: grant access to Wifi @hide APIs
WifiTrackerLibTest needs access to @hide APIs in framework-wifi and framework-minus-apex. Accomplish this by: 1. using framework-wifi-test-defaults (which links framework-wifi and framework-minus-apex) to grant compile-time access to these @hide APIs. 2. using "usesNonSdkApis" flag to grant run time access to these @hide APIs. Note that platform_apis=true doesn't work because it will build against framework.jar, which only has @SystemApi stubs from framework-wifi, not @hide APIs. Bug: 146513037 Test: atest WifiTrackerLibTests Change-Id: I7a5f88371683a29e84e110c7fb4e9f270bb26772
Diffstat (limited to 'libs/WifiTrackerLib/tests/AndroidManifest.xml')
-rw-r--r--libs/WifiTrackerLib/tests/AndroidManifest.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/WifiTrackerLib/tests/AndroidManifest.xml b/libs/WifiTrackerLib/tests/AndroidManifest.xml
index 2642960e7..61660013b 100644
--- a/libs/WifiTrackerLib/tests/AndroidManifest.xml
+++ b/libs/WifiTrackerLib/tests/AndroidManifest.xml
@@ -17,7 +17,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.wifitrackerlib.test" >
- <application>
+ <application android:usesNonSdkApi="true">
<uses-library android:name="android.test.runner" />
<activity android:label="WifiTrackerTestsDummyLabel"
android:name="WifiTrackerTestsDummyName">
@@ -33,4 +33,4 @@
android:label="WifiTrackerLib Tests">
</instrumentation>
-</manifest> \ No newline at end of file
+</manifest>