summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2019-04-24 09:51:09 -0700
committerLorenzo Colitti <lorenzo@google.com>2019-04-25 00:59:13 +0000
commit2e67b9bdc73d095997a3d68de0755591df1c7d5e (patch)
tree27458c73bc479593c83849757bd56649c12f058b
parentffa1bd7cb248c483622d51597f28e7db3e688fc2 (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 Merged-In: Ic8ebf6356e23489f6cd984d680ff9f1b4cbbe52d (cherry picked from commit c1eedfcd124a6370887d92da4d12cd43d0ef6799)
-rw-r--r--AndroidManifestBase.xml1
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"