This question already has an answer here:

I have an old Mediatek phone running Jellybean, and it works but the battery is rather bloated.

I keep it hooked up to a USB charger, and while it works I'm worried that the battery will catch fire. I can access the phone over ADB and have tried playing around with some ADB commands eg "adb shell dumpsys battery set ac 1" but as soon as I take the battery out the phone turns off.

Is there I way I can patch the rom or use an app to make the phone run from USB power? Thanks

It is rooted and I have ADB access. I've heard some phones will boot with a battery and you can remove and you can remove the battery once booted, but my phone doesn't do this.

marked as duplicate by beeshyams, Andy Yan, Dan Hulme May 30 '17 at 15:49

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • If your device is not one of those which can run without battery (I haven't seen but heard of them as in comment to above question ) - you can't run it that way. Battery management is at a lower level so ROM or apps can't help – beeshyams May 30 '17 at 10:40
  • 1
    Thanks, that makes sense that the rom isn't low level enough. You need to remove the battery in order to flash the phone so if it was possible with software it would need some pretty low level tinkering. I think it may be easier to go for a harware based solution :) – HypnoToad May 31 '17 at 22:10
  • The answer marked duplicate has a link for building such a charger. You can see if it helps – beeshyams Jun 1 '17 at 1:23

Browse other questions tagged or ask your own question.