logd: Remove the dependency on system_server
This CL will allow all native processes to access
logd without users consent.
There will be no dependency on system_server.
Bug: 218293986
Test: Manually as the following:
1. running "adb logcat", then open a separate window to run
adb shell 'su root kill -STOP `pidof system_server`'
2. running "adb logcat", then open a separate window to run
while true; do adb shell 'su root kill -STOP `pidof servicemanager`'
&& sleep 60 && echo done; done
for around 20 min.
(The above two test cases don't crash logd.
The logd has the same pid, doesn't grow in memory use
nor open FDs.)
3.run adb shell 'su root kill -STOP `pidof logd`'
to kill logd. The device is still functioning as normal.
Ignore-AOSP-First: pending fix for logcat privacy issue
Change-Id: Ibca07653d844d09a24becd4738efd06259b589e5
2 files changed