Guys, it's almost the end of 2015 now and android phones have been around for almost a decade, but that aside, lithium ion batteries have been around for quite a bit longer and nobody ever tried to calibrate them before android. There's actually a good reason for that... SURPRISE, SURPRISE!!! Lithium ion batteries simply don't need any calibration. There is also nothing in the android os itself that could be calibrated. And in 2015 there are people that still feel the need to calibrate their batteries and that is ridiculous. Don't get me wrong out there. I'm not saying that this module is useless or something. If you find yourself with dying battery and there's something urgent to do with your phone this module could squeeze some more minutes or hours by preventing your phone from shutting down but that's it. The reason your device could still work with 1% battery is very simple. Lithium batteries must not be discharged below a specific level because that could (and most definitely will) damage the cells permanently but the battery could still provide enough voltage for the phone to work even below that specification. Also the level of automatic shutdown is set reasonably above that minimum level to prevent undercharge. By disabling shutdown you simply leave the device to drain the battery to the point when the voltage drops below what it could work with and it dies. There is no way to predict if that voltage is above the minimum specification of the battery or not so doing that even once could damage your battery permanently and irreversibly.
The conclusion is very simple... DON'T DO IT!!! Seriously... Don't!
Guys, it's almost the end of 2015 now and android phones have been around for almost a decade, but that aside, lithium ion batteries have been around for quite a bit longer and nobody ever tried to calibrate them before android. There's actually a good reason for that... SURPRISE, SURPRISE!!! Lithium ion batteries simply don't need any calibration.
I just released v0.99 of my Battery Shutdown Manager module which contains the said feature to disable the device shutdown for Android 4.2+.
I've tested it on an Android 5.0 device. It should work for pretty much all AOSP and CM-based ROMs. If the basic functionality of the module (the shutdown countdown dialog) works, the "Disable Shutdown" option should, too.
Credits to @zst123 for initially coming up with this idea. I followed his approach with a notification which tells you that a shutdown got blocked but added a "Power Off" button so you can cancel it (see screenshots).
Note that it's an experimental options for now, which does require a purchased pro version (in case sth. isn't working as expected I'll refund the purchase of course).
Once it's been tested further I'll graduate it to the normal (free) version.
LG ROMs are known to be incompatible with the module because LG changes some android internals, it's quite likely that more vendors did so.
I'm planning to add support for LG ROMs but need to find the time.
If your device is incompatible it just shouldn't work without negative side effects except a failure in the Xposed Log.
In case you want please post in the module thead and I'll try to add support for your ROM, too.
|Thread Tools||Search this Thread|