Define power.battery_input.suspended property
Bug: 167636754 Test: on a device that has triggers configured for this property Test: adb shell setprop power.battery_input.suspended true to disable charging Test: adb shell setprop power.battery_input.suspended false to reenable charging Merged-In: I79209530d5355a59a1cb7a61c629339cd62f8eb1 Merged-In: I4692d84d5c137d11c6f648d15083614e707fdd07 Change-Id: I4692d84d5c137d11c6f648d15083614e707fdd07
This commit is contained in:
parent
fd735237e4
commit
8cad90e5f9
5 changed files with 15 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
||||||
keystore2_key_contexts_file
|
keystore2_key_contexts_file
|
||||||
mediatranscoding_tmpfs
|
mediatranscoding_tmpfs
|
||||||
people_service
|
people_service
|
||||||
|
power_debug_prop
|
||||||
profcollectd
|
profcollectd
|
||||||
profcollectd_data_file
|
profcollectd_data_file
|
||||||
profcollectd_exec
|
profcollectd_exec
|
||||||
|
|
|
@ -891,3 +891,5 @@ graphics.gpu.profiler.vulkan_layer_apk u:object_r:graphics_config_prop:s0 exact
|
||||||
# surfaceflinger-settable
|
# surfaceflinger-settable
|
||||||
graphics.display.kernel_idle_timer.enabled u:object_r:surfaceflinger_display_prop:s0 exact bool
|
graphics.display.kernel_idle_timer.enabled u:object_r:surfaceflinger_display_prop:s0 exact bool
|
||||||
|
|
||||||
|
# Disable/enable charger input
|
||||||
|
power.battery_input.suspended u:object_r:power_debug_prop:s0 exact bool
|
||||||
|
|
|
@ -70,6 +70,7 @@ system_restricted_prop(init_service_status_prop)
|
||||||
system_restricted_prop(libc_debug_prop)
|
system_restricted_prop(libc_debug_prop)
|
||||||
system_restricted_prop(module_sdkextensions_prop)
|
system_restricted_prop(module_sdkextensions_prop)
|
||||||
system_restricted_prop(nnapi_ext_deny_product_prop)
|
system_restricted_prop(nnapi_ext_deny_product_prop)
|
||||||
|
system_restricted_prop(power_debug_prop)
|
||||||
system_restricted_prop(property_service_version_prop)
|
system_restricted_prop(property_service_version_prop)
|
||||||
system_restricted_prop(provisioned_prop)
|
system_restricted_prop(provisioned_prop)
|
||||||
system_restricted_prop(restorecon_prop)
|
system_restricted_prop(restorecon_prop)
|
||||||
|
|
|
@ -4,3 +4,13 @@
|
||||||
#
|
#
|
||||||
type system_server, domain;
|
type system_server, domain;
|
||||||
type system_server_tmpfs, file_type, mlstrustedobject;
|
type system_server_tmpfs, file_type, mlstrustedobject;
|
||||||
|
|
||||||
|
# Power controls for debugging/diagnostics
|
||||||
|
get_prop(system_server, power_debug_prop)
|
||||||
|
set_prop(system_server, power_debug_prop)
|
||||||
|
|
||||||
|
neverallow {
|
||||||
|
-init
|
||||||
|
-vendor_init
|
||||||
|
-system_server
|
||||||
|
} power_debug_prop:property_service set;
|
||||||
|
|
|
@ -248,6 +248,7 @@ set_prop(vendor_init, zram_control_prop)
|
||||||
get_prop(vendor_init, boot_status_prop)
|
get_prop(vendor_init, boot_status_prop)
|
||||||
get_prop(vendor_init, exported3_system_prop)
|
get_prop(vendor_init, exported3_system_prop)
|
||||||
get_prop(vendor_init, ota_prop)
|
get_prop(vendor_init, ota_prop)
|
||||||
|
get_prop(vendor_init, power_debug_prop)
|
||||||
get_prop(vendor_init, provisioned_prop)
|
get_prop(vendor_init, provisioned_prop)
|
||||||
get_prop(vendor_init, retaildemo_prop)
|
get_prop(vendor_init, retaildemo_prop)
|
||||||
get_prop(vendor_init, surfaceflinger_display_prop)
|
get_prop(vendor_init, surfaceflinger_display_prop)
|
||||||
|
|
Loading…
Reference in a new issue