mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-02-01 15:09:54 +00:00
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:
1
sepolicy/vendor/file_contexts
vendored
1
sepolicy/vendor/file_contexts
vendored
@@ -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
|
||||
|
||||
6
sepolicy/vendor/hal_power_stats_default.te
vendored
Normal file
6
sepolicy/vendor/hal_power_stats_default.te
vendored
Normal 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)
|
||||
Reference in New Issue
Block a user