yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] Mubasher96:
Didn't work on cm10

Sorry for being so late. My A'Level Examinations were going on. I've tested this on an xperia x10 running cm10 made by scritch007 but it failed to work. After enabling the module the device kept on restarting as soon as powered on. Sometimes it gave enough time to disable the module from the xposed installer but most of the times the phone rebooted instantly. The reboots were all soft reboots. I have attached a log taken from xposed installer. See if this is sufficient or do I need to provide another more detailed log and do tell me what type of log as I am completely new to taking logs.
[Xposed Framework Modules] tonyp:
No worries, I hope the examinations went fine.

Unfortunately I indeed need a full logcat to fix the issue, the Xposed Log doesn't contain enough details.

I do have a link in my signature which contains some details on pulling a logcat from your device via adb, I hope that helps.
[Xposed Framework Modules] treydev:
I don't really have time now to take a log with adb or catlog.

About the Test, I noticed your modules gets disabled if you reboot (after enabeling it), and enables again after another reboot. I had done a reboot right before full discharge by mistake and the phone shut down in default way. Waiting to test it again, this time with it enabled:D
[Xposed Framework Modules] treydev:
All right, here is the result on 4.0.4:

the phone reboots right before getting to 0% and immediately after it starts the default shut down dialog shows up and powers off. I belive if you can fix the reboot, the module should work as it won't be disabled.

Is this a bug with the module getting disabled after a reboot?
[Xposed Framework Modules] DIDIandroid1997:
Unfortunatly!

My lockscreen bugged a lot after a time. At morning time i couldn't even turn my screen on at morning after my phone laied there the night. Afzer disabling it everything is fine :/

S4mini cm12.1
[Xposed Framework Modules] tonyp:
All right guys, I will have to stop responding to anything reported that doesn't contain a log.

Not that I don't want to make this module compatible with every possible device out there, but if you can't show me a log I can't fix it, plain and simple. The first post contains further instructions on how to obtain logs.

I can't magically have a look into your device and pinpoint a problem that I do not have on my devices (where everything works as expected).

Additionally I finally got my hand on an Android 4.1 device to try out the app myself.

It seems like something is working differently there and the whole module might need a bigger rewrite for complete 4.0 and 4.1 support.

I'll postpone that until I can find some more time or see a greater demand.

I'm afraid to say that then there's nothing for me to do then and you won't be able to use the module.

Taking a log with the Catlog app shouldn't take you more than 5 minutes.

I tested it with CM12.1 without issues and thus doubt the issue is related (unless something profound changed in recent nightlies).

But then, without any logcat neither you nor I will know exactly.
[Xposed Framework Modules] pocvitaldo:
please include the function to completely disable critical battery shutdown, same as the abandoned DisableCriticalBatteryShutdown module but with compatibility with 5.1

My nexus 7 2012 keeps shutting down even when the battery is full at 4200 mV.

Thanks for your time and effort
[Xposed Framework Modules] bonny_k-9:
It does not work on my CM12. Phone just off, but it does not display a sign.
[Xposed Framework Modules] tonyp:
I released v0.99 of the module. It took me a bit longer than initially planned as I completely refactored the code for more stability.

In case your ROM isn't supported it should just fail without any negative side effects rather than cause soft reboots or other issues.

Further changes:

Added experimental option to show a shutdown button at the dialog

Added experimental option to completely disable the device shutdown. Be careful, you shouldn't use this when you don't know what you're doing. It's for devices that do not properly report their battery status or a one-time battery calibration.

I wrote more about this feature here.

Improved logging for unsupported ROMs which should help to expand the compatibility of this module

Minor bugfixes

Note that a paid pro version is required for the experimental options until they graduate into the normal version. This should hopefully be the last beta release. Please note that some Stock ROMs aren't yet supported (like LG ones) as they changed some android internals.

I'm planning to add support for LG ROMs but need to find the time. If something isn't working for you please always attach the Xposed Log to your bug report, it will help me to investigate the issues further.

As previously announced I can and will not address bug reports without logs.
[Xposed Framework Modules] mobihack:
Thanks for adding new features :)

Will test and report
[Xposed Framework Modules] pocvitaldo:
thanks so much i'll try the new feature and report
[Xposed Framework Modules] heldc:
Edit-My bad, I didn't realize you had to set time to disabled.

Prevent critical battery shutdown looked like it worked on my note 4 running CM 12.1, the 6.10 nightly. I got a 'prevented shutdown' notification, and shortly after the phone crashed. However, the phone immediately rebooted, which means the battery hadn't been fully depleted.

This happened several times.
[Xposed Framework Modules] pocvitaldo:
the completely disable shutdown is working flawlessly in my nexus7 (2012) on CM12.1

Thanks to the last update i can continue using lollipop on my tablet

Look at the reported % and mV screenshot

i don't know what is causing this but with Battery Shutdown Manager i solved this problem.

Thanks again
[Xposed Framework Modules] tonyp:
Wow, I can see how useful this can be with your particular issue, I'm glad I could help to soften such an annoying (probably hardware related) bug.

As someone who is actively using this feature feel free to post some further suggestions.

I e.g. just realized I didn't implement any way to get rid of the notification - so I'm thinking about adding another button to the notification to hide it. Or should it just vanish when it gets plugged in? I didn't go that route as it might be a useful info that your device tried to shut down when you were away.
[Xposed Framework Modules] heldc:
Personally, I'd like a way to get rid of the notification, but that it *not* automatically disappear on plug in. I like knowing how many times shutdown was blocked. :)
[Xposed Framework Modules] pyler:
As part of this module you can add feature to reboot/shutdown phone at specific time.
[Xposed Framework Modules] pocvitaldo:
Maybe an option to hide the notification could be useful but to me it is perfect as it is.

Thanks again
[Xposed Framework Modules] PIRATA!:
Someone reported working on Samsung TowchWiz rom??

I'm with Lollipop on Samsung S5.

Tnx.
[Xposed Framework Modules] pirasalbe:
If I plug my Nexus 6 with CM 12.1 during countdown it doesn't stop and when my mobile turn off it start charging
[Xposed Framework Modules] tonyp:
That's the second report for a Nexus 6 not disabling the dialog. This is really weired, as on my N5 (which basically is the same ROM) everything works as it should.

If someone manages to grab a log as indicated in the first post it would help me to pinpoint the issue of the error, if not we'll have to do some trial&error.

I might try to log errors to a file so it's easier for people to grab logs, unfortunately I believe it's not possible on shutdown as the shutdown event messes with the sdcard write one.

Hm I'm not sure if this is something for this module, as it's nothing that requires Xposed (and I believe a lot of apps already are able to do that).

It might be an idea to have a fully featured "Shutdown Manager" in the future, but for now I'd like to focus on the Xposed functionality.

So thanks for the idea, I'll keep it in mind.
[Xposed Framework Modules] tonyp:
I decided to end the beta phase for this module and release v1.0.

While the module might not support each and every ROM out there (especially vendor stock ROMs) the code contains a lot of safety nets now so you shouldn't run into any issues anymore (bootloops, hot reboots) and it should just "not work" in case you're on an unsupported ROM.

Changelog:

Improved shutdown dialog dismiss logic

Switched to the newest Android Support Library

Added Dismiss button to the "Disable Shutdown" notification

UI enhancements

Minor code improvements

The version can be found at the Xposed Repo and Google Play Store, as usual.

Feedback as always very welcome.
[Xposed Framework Modules] Yanghbr:
awesome, thank you.
[Xposed Framework Modules] pirasalbe:
This is with last version
[Xposed Framework Modules] tonyp:
Well, am I right to assume that you exported the log when you turned on your phone again after it shut down?

Your log shows that my module hooks the right classes, but noting related to the shutdown dialog.

Unfortunately the Xposed log gets cleared on shut down, so the log only contains log entries since you turned on your phone.

That's why it's so complicated to create valid logs for this particular xposed module (at least for Android 5.0+). When debugging this module I used wifi over adb, instructions for that are in the OP.

Without a valid log it's impossible for me to debug this issue any further unfortunately - and I'm not planning to buy a Nexus 6 myself currently so we're stuck until someone manages to record a true logcat of the shutdown (with the modules debug mode enabled of course).
[Xposed Framework Modules] Beyaz66:
Very good module. But it doesn't work with Xiaomi Mi2 on PAC-Man KK rom (+ khaon's custom kernel)

Hope this could support more devices/Roms in future.
[Xposed Framework Modules] Tundraswan:
Feature request

What about a feature where you can dismiss the dialog box, but then also create a countdown in the status bar (letting you use the phone freely whilst being informed of exact time to shutdown)?

Thanks for the module, very useful, could be even more useful to users with hot swappable batteries with Project ARA phones :)
[Xposed Framework Modules] Alexey71:
@tonyp

Hi, not three words translated to Russian, you can fix it?
[Xposed Framework Modules] tonyp:
The problem here is: I'm only using strings that are already included in your ROM. It seems that particular string hasn't been properly translated on your phone.

What exact ROM are you using? Could you upload your framework-res.apk from /system/framework, then I could take a look.
[Xposed Framework Modules] Alexey71:
cm12.1 official http://download.cyanogenmod.org/?device=mondrianwifi
[Xposed Framework Modules] Rootk1t:
[MENTION=3605868]tonyp[/MENTION]

I'm using this module on Sony Xperia Android 5.0.2.

Practically everything is working as promised, but i faced the following issue:

When countdown appears, i plug in charger, countdown disappears, but device doesn't indicate that it is charging.

In settings it states that it is discharging.

It stays on with 0% battery indication, and seems to use charger only for stay powered on.

So i have to disconnect and connect charger once again to start charging.
[Xposed Framework Modules] CrazyCypher:
Hello, just to notify you all interested in running this on Sense roms... App is working flawlessly on my phone and rom... Im using HTC M8 with S.Rom (ROM ported from M9 with Sense 7) :) So I can say it works on Lollipop 5.0.2 with Sense 7 :)
[Xposed Framework Modules] Jasraj012:
Hi guys,

Been using the app for a while now on a 4.4.4 kitkat Cyanogenmod unofficial rom for GT I9192. Worked great. No issues. However, once I flashed 5.1 Lollipop, the app thinks that I haven't enabled it on xposed,or I haven't rebooted, although I have. Please fix this. If u need any info just ask.
[Xposed Framework Modules] tonyp:
For all people who reported issues: please enable the debug mode in the app, then attach an Xposed Log and I'll look into it. Without that information I can't do anything.
[Xposed Framework Modules] Jasraj012:
So how is the log uploaded? I've managed to create it.
[Xposed Framework Modules] koko115:
Galaxy s6 edge OH8 works great with 30sec, and all experimental options.
[Xposed Framework Modules] pirasalbe:
I've always the same problem of shutdown even if I plug my Nexus 6, have you got any idea???

If needed I can try to take a log, but I don't know how to save it before the shutting down of my mobile
[Xposed Framework Modules] tonyp:
www.pastebin.com for example.

I don't unfortunately. It works like a charm on my devices.

Yes, I know that it's quite difficult to grab a log for this, but it's the only way for me to know what's going on exactly at your phone during the shutdown.

You need to use "adb over wifi" or maybe a log like Logcat which records everything (but it might get killed to early during the shutdown event).
[Xposed Framework Modules] nicesoni_ash:
Hi mate,

I got a message of its expiring that the beta expired and update to the latest but no new update is available. Is this project abandoned or a new version will be released to cover this?

Sent from my "GT-I9300/1+1" powered by Carbon Rom & Boeffla/ak Kernel

Fueled by 7000mAh ZeroLemon Battery
[Xposed Framework Modules] pikachukaki:
[MENTION=3605868]tonyp[/MENTION]

Currently not working for LG Stock ROMs due to internal code changes by LG.

to bad it isnt working on LG G3!!Will you be able to fix it??
[Xposed Framework Modules] tonyp:
That message shouldn't have appeared as the app is out of beta, sorry about that.

It's some left-over code I forgot to remove, you can just ignore it for the moment, no functionality is disabled or anything.

The app is definitely not abandoned, I've just been on holidays. I've been working on a bigger update, but due to this bug I'll push a quick fix update to get rid of this dialog.

Edit: Fix pushed. The PlayStore usually needs a couple hours to update it's index, until then the update can already be found here:

http://repo.xposed.info/module/com.thetonyp.batteryshutdownmanager

Thanks for letting me know!

I hope so. I'm planning to analyze the LG framework more closely again next week.

Unfortunately LG doesn't really make this easy as they spread the whole shutdown process into different classes - and it's obviously closed-source so requires reverse-engineering which isn't perfect.
[Xposed Framework Modules] Geoffxx:
I have an xperia Z1 with strange battery behavior after update from KK to LP here is a rough list of issues

1. battery drops from 60% to 1% suddenly then shuts down, 5 min charge brings it back to 60%

2. 80% battery drops to sub 20% after reboot

3. some situations I was able to run a video for 2hrs when battery was showing sub 10%

4. with 99% battery rebooting to recovery battery showing 12%

a lot of this is random and very obviously something not quite right with how the hardware is interpreting battery status (in my view largely incorrectly) and again this started happening after update to LP everything was fine up to that point

So I have decided to try your option to prevent shutdown completely, will see how it goes, what sort of damage if any could this cause, could it corrupt the OS or disable the phone entirely if not shutdown correctly - maybe prevent charging or something, I very rarely would have drained my battery completely when it was working properly - always on the charger in any 24hr period usually within 12hrs of usage (I have a dock)

anyway will see how this works out, I have a battery ordered but this may allow me to avoid replacement and properly recalibrate the battery i.e. actually run it down to an accurate 1% and reset the charge cycle - we shall see

edit - looking at a previous posters battery report profile (experiencing similar issues to me) it seems that google may have implemented some sort of safety protocol to falsely report battery % if the battery temp reached a certain level, so instead of saying phone is shutting down due to battery temp and writing code for it they have taken a lazy shortcut and are just executing already available code to shut the phone down which in turn causes all the battery stats to become nonsense and therefore cause issues with battery drain and charging cycles- I know 100% that I had none of these issues with KK, a google search shows a lot of people experiencing the same thing or similar

edit 2. just to confirm working on xperia Z1 5.1.1 - prevented shutdown @ 0% battery
[Xposed Framework Modules] tonyp:
I'm glad this works for you out of the box!

Regarding your assumption: As I studied the shutdown process of AOSP I can say with certainty that at least there the emergency shutdown for battery overheating is controlled differently.

Of course Sony could still do that in their own code or the kernel handles it (this is something that could be checked at the kernel source), but I doubt it.
[Xposed Framework Modules] Kemper_nejvetsi:
Hello, thanks for your work, man!

I'd like to ask on which battery percentage shutdown procedure is triggered?

Is it possible to adjust it by user?

Is shutdown triggered even when the screen is off?

My phone has very low critical battery threshold and when left to discharge completely, the battery is too low to even be detected by phone and I need to charge the battery outside of the phone by external charger. Your app could be a solution.
[Xposed Framework Modules] kxymm:
Hi, thanks for you work.

Nice module it delivers what it promises
[Xposed Framework Modules] Cyboy:
provide it for 4.1.2 JB too plz

thanks
[Xposed Framework Modules] tonyp:
So you'd like to initiate the shutdown at say 5% rather than 0%?

That could actually be possible, yes. I'll look into it.

So far there isn't enough demand for devices <4.2 to justify spending my rather limited time to add support to them I'm afarid.

I do have an older test version for 4.1 which I could send to you, I'll dig it up at some point.
[Xposed Framework Modules] Kemper_nejvetsi:
Yes, that would be great, thanks a lot.
[Xposed Framework Modules] GjorgiDxc:
Is the "Prevent Shutdown" feature still premium? It's the one thing I want to use, because my worn out battery keeps going 30%>1% all the time, but I can't actually purchase from the Play Store. :/
[Xposed Framework Modules] heldc:
It is, but there's a 'fake pro' option in the settings, for exactly that reason according to the change notes (I think that's where I saw the explanation).
[Xposed Framework Modules] GjorgiDxc:
Because the feature is in "beta", it's only available to real pro users and not to freeloaders. I think that is why I can't use it even if I have the Freeloader box checked. :/
[Xposed Framework Modules] tonyp:
Yes, that feature indeed is a "purchased pro" only feature and unfortunately will stay that for a while. It's a feature I implemented by request and will thus keep it for donators for some more time.

Please contact me via PM, I'm willing to make exceptions in some cases so I think we can figure something out.

The other two experimental features move to the normal version in the next release. Unfortunately it's really hard right now for me to find some free time to work on my Android Apps, the True Silent Mode module has some features in the pipeline as well which I'm lacking the time to bring to release status, but I hope to get it done within the next 2-3 weeks.

For this very module (apart from the features moving out of experimental status) I introduced heads up notifications for Lollipop as an option (so you can actually finish doing what you're doing before taking any action) and am planning to figure out if I can implement a "shut down at x% of battery" feature.

Unfortunately I don't have any news for broadening the compatibility of this module to other stock ROMs. Especially LG Stock ROMs completely changed the whole shutdown procedure and it requires a lot of time and work to follow that up and make the module compatible.

Any other ideas or feature requests?
[Xposed Framework Modules] Cyboy:
Thanks alot :)
[Xposed Framework Modules] UIT_GHOST:
not working on Sony Z3 dual D6633

Please give me solution..
[Xposed Framework Modules] Geoffxx:
I unticked the module and uninstalled it, now I cannot get it back - any ideas, how do I reinstall it, nothing is working

oh never mind I had the icon hidden in settings lol
[Xposed Framework Modules] sikohali:
thank you. It helped me a lot! :)
[Xposed Framework Modules] TarasDav:
I Lenovo A390, android version 4.0.4, how to make it work. Help me.
[Xposed Framework Modules] DIDIandroid1997:
Somenody experiencing a massive delay up to a minute when trying to activate the lockscreen? Screen keeps black. I had this issue with this module on cm12, cm12.1, cm13 on s4mini lte
[Xposed Framework Modules] nicesoni_ash:
No such issue here in op2 lollipop

Sent from my "GT-I9300/1+2" powered by Carbon/Blisspop Rom & Boeffla/ak Kernel

Fueled by 7000mAh ZeroLemon Battery
[Xposed Framework Modules] enetec:
Previsions about LG compatibility?
[Xposed Framework Modules] Alexey71:
When the fix is not a complete translation?

http://xdaforums.com/showpost.php?p=61791923&postcount=70
[Xposed Framework Modules] tonyp:
Battery Shutdown Manager v1.1

I finally got some time again to work on my modules, so here is the long promised v1.1.

It's been pushed to Google Play, so should appear in ~1-2 hours and will be in the Xposed Repo tomorrow.

Changelog:

Moved "Show dialog when screen is off" option out of experimental options (so you can use it now even when you're freeloading the app)

Removed the experimental option to show the "Power Off button" (now enabled by default!)

Fixed the "Connect your charger" bug reported by [MENTION=4896512]Alexey71[/MENTION] where the text was not getting translated for lots of languages. Google removed the string in Android Lollipop, so i had to include the translations one by one (initial language support: German, French, Hindi, Italian, Hebrew, Japanese, Korean, Dutch, Polish, Portuguese, Russian, Sinhala, Slovak, Slovenian, Serbian, Swedish, Turkish, Vietnamese, Chinese). If your language is missing please drop me a post here and I'll add it for the next release.

Lots of small code optimizations

Updated Android support library

As with the previous releases: All AOSP and Custom (CM etc.) ROMs should be fully supported, so are most ones which didn't change a lot of the core code.

Please note that 64bit devices are fully supported with the newer Xposed releases as well, previously reported bugs where caused by an error of Xposed (fixed here). So make sure to always run the most up2date Xposed build.

Unfortunately Stock ROMs where the vendor changed the shutdown process (like LG and partly Sony ones) are not compatible.

I don't see it getting implemented any time soon. It requires messing with decompiled code (as they obviously don't provide their source code) and it is extremely time consuming to develop a feature for a phone I don't own as I can't test my changes instantly but have to send it back and forth to testers. If there's an Xposed developer out there who owns a device that's not compatible contact me, then you could maybe work on adding compatibility.
[Xposed Framework Modules] francwalter:
Possible to test the "real" pro feature to disable Shutdown?

I wanto know if it is working on my device with my battery, before I buy it.

Thank's

frank
[Xposed Framework Modules] tonyp:
If the normal functionality of the app works the Disable shutdown feature should work as well.

If not I'll gladly issue a refund.

I should probably move the "Disable shutdown" option out from the experimental features, as it is fully tested. It's just a feature I'd like to keep as "buy only" as it's not in the main portfolio of the app and was implemented on request.