Android 9.0.0 Release 0.12 (PPR2.180905.005,taimen/walleye)
battery: fix retail mode not working

Charging was not disabled in retail mode. The charging disable
path was not executed because the priority of charger present
check was higher. Separate the check of charger in/out and
charging enable/disable to fix this.

Bug: 110489408

Change-Id: If0180621903ec20a969cb22359e03a76eb3bd8aa
Signed-off-by: Jack Wu <wjack@google.com>
1 file changed