Allow the shell to disable charging.

Bug: 204184680
Test: manual and through instrumentation
Change-Id: I1fe9b35d51140eccba9c05c956875c512de447b1
This commit is contained in:
Michael Rosenfeld 2021-11-17 15:48:47 -08:00
parent a394cfca86
commit 5425c870f9
2 changed files with 4 additions and 0 deletions

View file

@ -94,6 +94,9 @@ binder_call(shell, lpdumpd)
# userspace reboot
set_prop(shell, userspace_reboot_test_prop)
# Allow shell to set this property to disable charging.
set_prop(shell, power_debug_prop)
# Allow shell to set this property used for rollback tests
set_prop(shell, rollback_test_prop)

View file

@ -14,4 +14,5 @@ neverallow {
-init
-vendor_init
-system_server
-shell
} power_debug_prop:property_service set;