power.stats: Port power.stats HAL to Pixel 2

Bug: 120301393
Test: run vts -m VtsHalPowerStatsV1_0Target
Test: adb shell "lshal debug android.hardware.power.stats@1.0::IPowerStats/default"
Change-Id: Ib46e205651e0972dd4008976209aaf7dbff4d5f8
(cherry picked from commit 61d2125575)
Merged-In: Ib46e205651e0972dd4008976209aaf7dbff4d5f8
This commit is contained in:
Benjamin Schwartz
2018-12-20 11:16:20 -08:00
parent aef21de27f
commit 8a9a191958
2 changed files with 7 additions and 0 deletions

View File

@@ -168,6 +168,7 @@
/vendor/bin/oemlock-bridge u:object_r:hal_bootctl_default_exec:s0
/vendor/bin/hw/android\.hardware\.usb@1\.1-service\.wahoo u:object_r:hal_usb_impl_exec:s0
/vendor/bin/hw/android\.hardware\.power@1\.2-service\.wahoo-libperfmgr u:object_r:hal_power_default_exec:s0
/vendor/bin/hw/android\.hardware\.power\.stats@1\.0-service\.pixel u:object_r:hal_power_stats_default_exec:s0
/vendor/bin/chre u:object_r:chre_exec:s0
/vendor/bin/time_daemon u:object_r:time_daemon_exec:s0
/vendor/bin/imsrcsd u:object_r:hal_rcsservice_exec:s0

View File

@@ -0,0 +1,6 @@
# power.stats HAL needs access to rpm, and wlan sysfs nodes in /d/
r_dir_file(hal_power_stats_default, debugfs_rpm)
r_dir_file(hal_power_stats_default, debugfs_wlan)
# power.stats HAL needs access to the easel sysfs node
r_dir_file(hal_power_stats_default, sysfs_easel)