From ca47cef7491caf6072984d9d64c768717baad09a Mon Sep 17 00:00:00 2001 From: Dima Zavin Date: Wed, 24 Aug 2011 15:28:23 -0700 Subject: 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 --- rootdir/init.rc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rootdir') 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 -- cgit v1.1