summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorDima Zavin <dima@android.com>2011-08-24 15:28:23 -0700
committerDima Zavin <dima@android.com>2011-09-02 12:11:18 -0700
commitca47cef7491caf6072984d9d64c768717baad09a (patch)
tree5006f6414601e21b1141746ea150f13bcdb1da00 /rootdir
parentda04c52ab1036048520fca265cf02b61dca789e0 (diff)
downloadsystem_core-ca47cef7491caf6072984d9d64c768717baad09a.zip
system_core-ca47cef7491caf6072984d9d64c768717baad09a.tar.gz
system_core-ca47cef7491caf6072984d9d64c768717baad09a.tar.bz2
init: add charge mode handling
Introduces a 'charger' section that is processed when androidboot.mode supplied on the kernel commandline is "charger". In this mode, sections such as fs, post-fs, etc are skipped. Only the 'early-init' and 'init' sections of the init rc files are processed before processing the 'charger' section. Change-Id: If9eb6334de18f04cbcf2aab784578e2993615242 Signed-off-by: Dima Zavin <dima@android.com>
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.rc3
1 files changed, 3 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 8d6bf97..a5a0bc0 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -263,6 +263,9 @@ on boot
on nonencrypted
class_start late_start
+on charger
+ class_start charger
+
on property:vold.decrypt=trigger_reset_main
class_reset main