summaryrefslogtreecommitdiff
path: root/AndroidManifest.xml
diff options
context:
space:
mode:
authorRemi NGUYEN VAN <reminv@google.com>2020-09-07 11:22:32 +0900
committerRemi NGUYEN VAN <reminv@google.com>2020-09-07 11:22:32 +0900
commit0af7a8adda49f72a9c9d9eb90796e265b2303d80 (patch)
tree7f2cbb4599ec98b7df4d02af136f612a1ad0a886 /AndroidManifest.xml
parentcc75b7ae3e39a6e4a510086c0859069545a54db4 (diff)
downloadNetworkPermissionConfig-0af7a8adda49f72a9c9d9eb90796e265b2303d80.tar.gz
usesCleartextTraffic in NetworkPermissionConfig
NetworkPermissionConfig does not need this flag (it has no code), but all modules using the NetworkStack UID should declare this flag to avoid races applying security policies. Bug: 161860610 Test: m Change-Id: Icf64fbc9273ba678d3ebdf17b7d4a61e3609ff18
Diffstat (limited to 'AndroidManifest.xml')
-rw-r--r--AndroidManifest.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index c7cb50d..b587797 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -36,5 +36,8 @@
<permission android:name="android.permission.MAINLINE_NETWORK_STACK"
android:protectionLevel="signature"/>
- <application android:name="com.android.server.NetworkPermissionConfig"/>
+ <!-- The application must declare usesClearTraffic because it uses the same UID as the
+ NetworkStack module, which does cleartext traffic (b/161860610). -->
+ <application android:name="com.android.server.NetworkPermissionConfig"
+ android:usesCleartextTraffic="true"/>
</manifest>