diff options
author | Remi NGUYEN VAN <reminv@google.com> | 2019-05-16 18:02:11 +0900 |
---|---|---|
committer | Remi NGUYEN VAN <reminv@google.com> | 2019-05-16 18:21:54 +0900 |
commit | 860ea3cc6a3bc4efa248fb641ebc5538a17400f5 (patch) | |
tree | 0b9a3dc6f7bcace20e75f5cb6d264e2c56bb93d8 | |
parent | e2503a24b011de345a1d87e4a54bc7fc1477545a (diff) |
Do not mark in-process NetworkStack as persistent
The in-process NetworkStack runs in the system process, so it does not
need to be marked persistent.
Doing so causes a spurious com.android.networkstack.inprocess process to
be running, wasting memory.
Bug: 131046856
Test: Flashed sailfish, networking works, no extra process started
Test: Flashed walleye, networking still works
Test: aapt dump xmltree NetworkStack.apk AndroidManifest.xml unchanged
Change-Id: I0eb896c825ffe2581950c0bdd2b31ebd7eae0982
-rw-r--r-- | AndroidManifest.xml | 4 | ||||
-rw-r--r-- | AndroidManifestBase.xml | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml index bfcd6c1..4c44484 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -41,7 +41,9 @@ <uses-permission android:name="android.permission.READ_DEVICE_CONFIG" /> <!-- Signature permission defined in NetworkStackStub --> <uses-permission android:name="android.permission.MAINLINE_NETWORK_STACK" /> - <application android:extractNativeLibs="false"> + <application + android:extractNativeLibs="false" + android:persistent="true"> <service android:name="com.android.server.NetworkStackService"> <intent-filter> <action android:name="android.net.INetworkStackConnector"/> diff --git a/AndroidManifestBase.xml b/AndroidManifestBase.xml index 3da566f..d00a551 100644 --- a/AndroidManifestBase.xml +++ b/AndroidManifestBase.xml @@ -24,7 +24,6 @@ android:label="NetworkStack" android:defaultToDeviceProtectedStorage="true" android:directBootAware="true" - android:persistent="true" android:usesCleartextTraffic="true"> <service android:name="com.android.server.connectivity.ipmemorystore.RegularMaintenanceJobService" |