OSDN Git Service

Make the network stack a persistent process.
authorLorenzo Colitti <lorenzo@google.com>
Wed, 24 Apr 2019 16:51:09 +0000 (09:51 -0700)
committerLorenzo Colitti <lorenzo@google.com>
Thu, 25 Apr 2019 00:59:13 +0000 (00:59 +0000)
commit7d04541c1a59992f299ccc3bea6d769f3a5e94e9
tree1bd8d888f554f09406dcc9580387aa6212496422
parentcbfe50d70c9c45ec63f7242fc0d19f8c9f882d81
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)
packages/NetworkStack/AndroidManifestBase.xml