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.