diff options
| author | Riley Andrews <riandrews@google.com> | 2014-06-16 15:06:21 -0700 |
|---|---|---|
| committer | Riley Andrews <riandrews@google.com> | 2014-06-20 16:43:00 -0700 |
| commit | e4b7b294f37d9b64d6b7c1931e2c9bfb1a500d68 (patch) | |
| tree | 5a7481adbd875eaa1e74ef2e1dbc5f11c9323141 /rootdir | |
| parent | dbb93515c9a1a60a6e824e789920f43d625a8c2a (diff) | |
| download | system_core-e4b7b294f37d9b64d6b7c1931e2c9bfb1a500d68.tar.gz system_core-e4b7b294f37d9b64d6b7c1931e2c9bfb1a500d68.tar.bz2 system_core-e4b7b294f37d9b64d6b7c1931e2c9bfb1a500d68.zip | |
Add ability to boot from charger mode.
Add the ability to boot up directly from charger mode, instead of forcing
charger mode to initiate a full restart to launch 'full' android. This
should shave a few seconds off of boot time on supported devices (just
manta for now).
Change-Id: Ieec4494d929e92806e039f834d78b9002afd15c4
Diffstat (limited to 'rootdir')
| -rw-r--r-- | rootdir/init.rc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc index a176e03b2..08b08fe01 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -154,6 +154,31 @@ on init chown system log /sys/fs/pstore/console-ramoops chmod 0440 /sys/fs/pstore/console-ramoops +# Healthd can trigger a full boot from charger mode by signaling this +# property when the power button is held. +on property:sys.boot_from_charger_mode=1 + class_stop charger + trigger late-init + +# Load properties from /system/ + /factory after fs mount. +on load_all_props_action + load_all_props + +# Mount filesystems and start core system services. +on late-init + trigger early-fs + trigger fs + trigger post-fs + trigger post-fs-data + + # Load properties from /system/ + /factory after fs mount. Place + # this in another action so that the load will be scheduled after the prior + # issued fs triggers have completed. + trigger load_all_props_action + + trigger early-boot + trigger boot + on post-fs # once everything is setup, no need to modify / mount rootfs rootfs / ro remount |
