diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2019-04-24 22:26:42 +0900 |
---|---|---|
committer | Lorenzo Colitti <lorenzo@google.com> | 2019-04-24 22:36:55 +0900 |
commit | e69eb5bbe4903f12fd8d6a743ee883e44da7dbda (patch) | |
tree | 184f07d6daf60454e5ba945027b6fb326105698e | |
parent | 1aad479b3a846735a86ac338ff5bfc0d23a3660f (diff) |
Make the network stack a persistent process.
The network stack should never be killed, because if it does,
recovering networking requires a reboot. Make the process
persistent to reduce the chances of it being killed by the OOM
killer.
Bug: 131046856
Test: builds, boots
Test: process oom_score_adj is -800
Test: process goes from "Persistent Service" to "Persistent" in dumpsys meminfo
Change-Id: Ic8ebf6356e23489f6cd984d680ff9f1b4cbbe52d
-rw-r--r-- | AndroidManifestBase.xml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/AndroidManifestBase.xml b/AndroidManifestBase.xml index d00a551..3da566f 100644 --- a/AndroidManifestBase.xml +++ b/AndroidManifestBase.xml @@ -24,6 +24,7 @@ android:label="NetworkStack" android:defaultToDeviceProtectedStorage="true" android:directBootAware="true" + android:persistent="true" android:usesCleartextTraffic="true"> <service android:name="com.android.server.connectivity.ipmemorystore.RegularMaintenanceJobService" |