-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from ralph950412/rice
sm8350-common: googlebattery: Add IGoogleBattery
- Loading branch information
Showing
9 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
type sysfs_charge, sysfs_type, fs_type; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
type hal_googlebattery, domain; | ||
type hal_googlebattery_exec, exec_type, vendor_file_type, file_type; | ||
|
||
init_daemon_domain(hal_googlebattery) | ||
|
||
r_dir_file(hal_googlebattery, sysfs_batteryinfo) | ||
|
||
allow hal_googlebattery sysfs_charge:file rw_file_perms; | ||
allow hal_googlebattery self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl; | ||
|
||
hwbinder_use(hal_googlebattery) | ||
add_hwservice(hal_googlebattery, hal_googlebattery_hwservice) | ||
get_prop(hal_googlebattery, hwservicemanager_prop) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
type hal_googlebattery_hwservice, hwservice_manager_type; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# allow SystemUI to find and bind Google Battery HAL | ||
allow platform_app hal_googlebattery_hwservice:hwservice_manager find; | ||
binder_call(platform_app, hal_googlebattery) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# To allow Settings to find and bind Google Battery HAL | ||
allow system_app hal_googlebattery_hwservice:hwservice_manager find; | ||
binder_call(system_app, hal_googlebattery) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# To find and bind Google Battery HAL | ||
allow turbo_adapter hal_googlebattery_hwservice:hwservice_manager find; | ||
binder_call(turbo_adapter, hal_googlebattery) |