diff options
author | Dima Zavin <dima@android.com> | 2011-08-30 10:46:09 -0700 |
---|---|---|
committer | Dima Zavin <dima@android.com> | 2011-09-04 15:41:36 -0700 |
commit | f48b23688c1303212c65e470af9f9f3892e98f8e (patch) | |
tree | 99c5dd020b9be61e79f2d3e78936e24f5bc0986b /include | |
parent | ca47cef7491caf6072984d9d64c768717baad09a (diff) | |
download | system_core-f48b23688c1303212c65e470af9f9f3892e98f8e.zip system_core-f48b23688c1303212c65e470af9f9f3892e98f8e.tar.gz system_core-f48b23688c1303212c65e470af9f9f3892e98f8e.tar.bz2 |
core: Add a standalone charger UI binary
This can be launched from an 'on charger' section in init, which
is processed if androidboot.mode=charger is supplied on kernel
command line.
This is a standalone binary that has a simple "user interface"
and allows the standard production kernel to run while charging.
This removes the burden from the bootloader to get low-power mode
working.
Currently, the device will "power-on" (i.e. reboot) into normal
mode if the power key is pressed for X seconds, and will also
power down the device if the usb/ac cable is removed for Y seconds.
Change-Id: I780594b99211cb09de7f8519a69c5962eb91348a
Signed-off-by: Dima Zavin <dima@android.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/private/android_filesystem_config.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/private/android_filesystem_config.h b/include/private/android_filesystem_config.h index fc71a1e..048864c 100644 --- a/include/private/android_filesystem_config.h +++ b/include/private/android_filesystem_config.h @@ -213,6 +213,7 @@ static struct fs_path_config android_files[] = { { 00750, AID_ROOT, AID_SHELL, "sbin/*" }, { 00755, AID_ROOT, AID_ROOT, "bin/*" }, { 00750, AID_ROOT, AID_SHELL, "init*" }, + { 00750, AID_ROOT, AID_SHELL, "charger*" }, { 00644, AID_ROOT, AID_ROOT, 0 }, }; |