summaryrefslogtreecommitdiff
path: root/init.hardware.rc
diff options
context:
space:
mode:
authorAndrew Chant <achant@google.com>2018-06-21 17:30:13 -0700
committerAndrew Chant <achant@google.com>2018-06-27 16:11:59 -0700
commit5d40a8fc8786eb77ba5b7cf482bd1efab8aea059 (patch)
treee22534ed0dfb5818d4409809bddb78de0cd76dc4 /init.hardware.rc
parentf0ba8ba7dbecad1e75978c053a635f0f6e6db8b5 (diff)
crosshatch: pixelstats sysfs collector
Update pixelstats-vendor with a sysfs collector. Collects system reliability metrics from sysfs files and reports metrics once per 24hrs. Test: triggered SlowIos using slowio_write_us = 5000 saw 06-26 15:02:36.792 792 792 I sysui_multi_action: [757,1442,758,4,1443,2,1444,18] saw contents of slowio_write_cnt reset to zero after reporting. speaker impedance reporting for left & right speakers 06-26 14:53:21.295 792 792 I sysui_multi_action: [757,1445,758,4,1447,0,1446,0] 06-26 14:53:21.295 792 792 I sysui_multi_action: [757,1445,758,4,1447,1,1446,0] 0 as reported by drivers. Battery charge cycles reported as: sysui_multi_action: [757,1438,758,4,1439,0,0,0,0,0,4,8,10,10,29] verified timer by setting refresh interval to 5s. Bug: 71593375 Bug: 79996489 Change-Id: Ib5e0dd9bd640bada9ae944ae450df08ed7726dd6 Signed-off-by: Andrew Chant <achant@google.com>
Diffstat (limited to 'init.hardware.rc')
-rw-r--r--init.hardware.rc8
1 files changed, 8 insertions, 0 deletions
diff --git a/init.hardware.rc b/init.hardware.rc
index 8b2b4cf..7a7c40f 100644
--- a/init.hardware.rc
+++ b/init.hardware.rc
@@ -451,6 +451,14 @@ on early-boot
chown system system /sys/devices/platform/soc/a88000.i2c/i2c-0/0-0061/txlen
chown system system /sys/devices/platform/soc/a88000.i2c/i2c-0/0-0061/ccreset
+ # Permission for Pixelstats
+ chown system system /sys/class/power_supply/maxfg/cycle_counts_bins
+ chown system system /sys/class/misc/msm_cirrus_playback/resistance_left_right
+ chown system system /sys/devices/platform/soc/1d84000.ufshc/slowio_read_cnt
+ chown system system /sys/devices/platform/soc/1d84000.ufshc/slowio_write_cnt
+ chown system system /sys/devices/platform/soc/1d84000.ufshc/slowio_unmap_cnt
+ chown system system /sys/devices/platform/soc/1d84000.ufshc/slowio_sync_cnt
+
on boot
mkdir /dev/socket/qmux_radio 0770 radio radio
chmod 2770 /dev/socket/qmux_radio