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%?


When the device is on it is probably drawing more current than is available from the charging port. Make sure the automobile charging adapter you are using can generate sufficient current required by the device. On most electronics there is a marking (either embedded in the plastic or on a sticker) near the power adapter that indicates the voltage (V) and current (I) requirements for the device.

  • My device only draws 0.8A of current while the charger can supply 2.1A so I don't really think this is the case – Karol Szustakowski Apr 24 '19 at 5:36
  • Lithium ion batteries draw more charge current when capacity is low. The 20% cutoff may be by design to prevent a brownout condition for the processor. – Jim Fell Apr 24 '19 at 12:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.