summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorDan Pasanen <dan.pasanen@gmail.com>2015-11-07 16:57:22 -0600
committerDan Pasanen <dan.pasanen@gmail.com>2015-11-07 16:57:35 -0600
commit8d6bc1cabe64c068b314e7090d70e30d01326df0 (patch)
tree819a344b0775406cef9b3cd7d0401fc80c4e5085 /init
parent66a88135a3dae7cfffe6549f0d19f0d2c54131e1 (diff)
downloadsystem_core-8d6bc1cabe64c068b314e7090d70e30d01326df0.zip
system_core-8d6bc1cabe64c068b314e7090d70e30d01326df0.tar.gz
system_core-8d6bc1cabe64c068b314e7090d70e30d01326df0.tar.bz2
init: fix logic for determining charger mode
Change-Id: Ib4dd630b760303f26c794997aee3a5920cbeaaf5
Diffstat (limited to 'init')
-rw-r--r--init/init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/init.cpp b/init/init.cpp
index 80d9b65..1c45795 100644
--- a/init/init.cpp
+++ b/init/init.cpp
@@ -1125,7 +1125,7 @@ int main(int argc, char** argv) {
// Don't mount filesystems or start core system services in charger mode.
char bootmode[PROP_VALUE_MAX];
- if ((property_get("ro.bootmode", bootmode) > 0 && strcmp(bootmode, "charger") == 0 &&
+ if (((property_get("ro.bootmode", bootmode) > 0 && strcmp(bootmode, "charger") == 0) ||
strcmp(battchg_pause, BOARD_CHARGING_CMDLINE_VALUE) == 0)
|| charging_mode_booting()) {
action_for_each_trigger("charger", action_add_queue_tail);