mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-02-01 07:50:47 +00:00
Add a full binderized implementation for Power hal Many subsystems (e.g.wifi) could be living on an independent power island (sourced from VBatt directly) and might even have their own dedicated XTAL to source their clocks. Since these SOCs are capable of autonomously operating (while the platform is in one of the sleep states), they are still drawing power from the VBatt. Hence it is critical to understand the (SOC) level low power statistics as well when the battery level changes and be able to find any correlation in event of unexpected battery drain. This commit adds the support of the Power Hal 1.1 to wahoo based devices(that includes Muskie/walleye). This includes the new api for wlan specific power stats Bug: 29339696 Test: Manual Change-Id: Iee4e38f2d9ced31f8b6a333b535fa1d9a302ec26 Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
10 lines
377 B
Plaintext
10 lines
377 B
Plaintext
allow hal_power_default perfd:unix_stream_socket connectto;
|
|
allow hal_power_default perfd_socket:sock_file write;
|
|
|
|
userdebug_or_eng(`
|
|
# debugfs entries are only needed in user-debug or eng builds
|
|
allow hal_power_default debugfs_rpm:file { open read getattr };
|
|
|
|
allow hal_power_default debugfs_wlan:dir search;
|
|
allow hal_power_default debugfs_wlan:file { open read getattr };
|
|
') |