dumpstate availible to dump data with below 2 permission: -r--r--r-- 1 root root -r--r----- 1 system system but /d/regmap permission is -r-------- 1 root root 1. we cannot change root to system with chown if the file node is root 2. we cannot change to read with chmod if the file node is root 3. try change permission in vendor_init causes sepolicy build fail with message rule neverallow Base on above results, we added new file node in kernel with available permission to dump needed data and dump it. Bug: 194941806 Test: adb bugreport Change-Id: Ieeb1adfb0351ceb33bf817cbef3663d41cdb8645 Signed-off-by: Ted Lin <tedlin@google.com> |
||
---|---|---|
.. | ||
android.hardware.dumpstate@1.1-service.gs101.rc | ||
Android.mk | ||
DumpstateDevice.cpp | ||
DumpstateDevice.h | ||
service.cpp |