summaryrefslogtreecommitdiff
path: root/dumpstate
diff options
context:
space:
mode:
authorSooraj Sasindran <sasindran@google.com>2018-01-02 16:01:56 -0800
committerSooraj Sasindran <sasindran@google.com>2018-01-11 09:53:00 -0800
commitbdf998d45f3bd5c8425b62d6bf0c8474120b059b (patch)
treec48a5415828cb43f5591582ce6d0e222f174ac4c /dumpstate
parent732f13199304d55f830c500bd9be441909d655a4 (diff)
enable power anomaly detection
Move connectivity monitor sepolicies to specific policy file Allow Power Anomaly detector to access /data/vendor/radio Fixes below errors 12-28 18:01:37.294 W/ectivitymonitor( 3619): type=1400 audit(0.0:13): avc: denied { search } for name="radio" dev="sda13" ino=1835015 scontext=u:r:radio:s0 tcontext=u:object_r:radio_vendor_data_file:s0 tclass=dir permissive=0 12-28 18:15:03.838 W/ectivitymonitor( 3621): type=1400 audit(0.0:18): avc: denied { read } for name="u:object_r:tel_mon_prop:s0" dev="tmpfs" ino=9592 scontext=u:r:con_monitor_app:s0:c233,c259,c512,c768 tcontext=u:object_r:tel_mon_prop:s0 tclass=file permissive=0 01-10 19:38:17.399 939 939 W rild : type=1400 audit(0.0:87): avc: denied { read } for name="u:object_r:tel_mon_prop:s0" dev="tmpfs" ino=17732 scontext=u:r:rild:s0 tcontext=u:object_r:tel_mon_prop:s0 tclass=file permissive= add power_anomaly_data.txt to be picked up in bugreport Test: tested by testing power anomaly detector and connectivity monitor Bug: 67058502 Change-Id: I8ad45d5e9cedde8f498627f97b35db27dfd2ea28
Diffstat (limited to 'dumpstate')
-rwxr-xr-xdumpstate/DumpstateDevice.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp
index 77261ce..82416dc 100755
--- a/dumpstate/DumpstateDevice.cpp
+++ b/dumpstate/DumpstateDevice.cpp
@@ -121,7 +121,8 @@ void DumpstateDevice::dumpModem(int fd, int fdModem)
"/data/vendor/radio/ril_log",
"/data/vendor/radio/ril_log_old",
"/data/vendor/netmgr/netmgr_log",
- "/data/vendor/netmgr/netmgr_log_old"
+ "/data/vendor/netmgr/netmgr_log_old",
+ "/data/vendor/radio/power_anomaly_data.txt"
};
std::string modemLogMkDirCmd= "/vendor/bin/mkdir -p " + modemLogAllDir;