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
This commit is contained in:
Remi NGUYEN VAN
2019-05-16 18:02:11 +09:00
parent fc4a83bd4b
commit a95544d9a8
2 changed files with 3 additions and 2 deletions

View File

@@ -41,7 +41,9 @@
<uses-permission android:name="android.permission.READ_DEVICE_CONFIG" /> <uses-permission android:name="android.permission.READ_DEVICE_CONFIG" />
<!-- Signature permission defined in NetworkStackStub --> <!-- Signature permission defined in NetworkStackStub -->
<uses-permission android:name="android.permission.MAINLINE_NETWORK_STACK" /> <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"> <service android:name="com.android.server.NetworkStackService">
<intent-filter> <intent-filter>
<action android:name="android.net.INetworkStackConnector"/> <action android:name="android.net.INetworkStackConnector"/>

View File

@@ -24,7 +24,6 @@
android:label="NetworkStack" android:label="NetworkStack"
android:defaultToDeviceProtectedStorage="true" android:defaultToDeviceProtectedStorage="true"
android:directBootAware="true" android:directBootAware="true"
android:persistent="true"
android:usesCleartextTraffic="true"> android:usesCleartextTraffic="true">
<service android:name="com.android.server.connectivity.ipmemorystore.RegularMaintenanceJobService" <service android:name="com.android.server.connectivity.ipmemorystore.RegularMaintenanceJobService"