commit | a8295107d365fd2e0ec4711238fe4ce27dc5feed | [log] [tgz] |
---|---|---|
author | Jack Wu <wjack@google.com> | Wed Oct 12 00:49:27 2022 +0800 |
committer | TreeHugger Robot <treehugger-gerrit@google.com> | Fri Oct 14 07:09:39 2022 +0000 |
tree | cec33c3b4ae3ab27c825f0cf9e0f1eb2cd594624 | |
parent | 3b213341d05a5cc6d83e9c66711eae20210feb2a [diff] |
init: support boot.charger_mode feature 1. If the device is powered off by users, boot to charger mode after plugging in the charger. Otherwise, boot to OS. 2. Disable this feature by default 3. Enable this feature by persist.sys.boot.charger_mode.enable=1 Bug: 251680171 Test: can enter charger mode from power off Signed-off-by: Jack Wu <wjack@google.com> Change-Id: Ibd1f88c961d884d8e6f9d0019cf550fd0de1192d