• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Power on when charging but only when battery level is greater than 20%

Szustarol

Lurker
May 20, 2019
1
0
I have recently tried to fit a tablet into my car and I came across a problem with waking up the device without using the power button.
My solution is to boot the device whenever it is charging, but I have noticed that when the battery level is at 0%, the device boots and then immediately shuts down.
I have used this adb option to trigger this behavior:

fastboot oem off-mode-charge 0

However this boots the phone without checking the battery level and as I said -
if the battery is dead, the phone (or rather a tablet- Nexus 7 2012) turns off immediately -
it drains the battery faster that I'm able to charge it. Is there any way to make the tablet boot only if the battery level is greater than, say, 20%?
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones