[APP][4.0.3+ & GB][XPOSED] HideBatteryLowAlert

Search This thread

defim

Senior Member
Feb 18, 2012
2,744
1,489
Motorola Defy
Nexus 7 (2013)
Last edited:

yeeahnick

Senior Member
Aug 3, 2011
958
262
Can you add the possibility to have the warning on a custom percentage basis.

For example id like to have the warning pop up only when my battery is at 2%

If you add this i will uninstall Tweakbox and i will use your app because the only reason i use Tweakbox is for the battery thing.
 

Bajanman

Retired Forum Moderator
Jun 17, 2009
8,897
9,577
Los Angeles Ca.
Works EXCELLENT:thumbup: but I do notice that when it gets to the 5% on the battery. And the screens dims and stays that way because the battery is so low.:'(

That's when I seen that my brightness slider was gone?? :confused:
pygebaba.jpg
not sure why just reporting. Running Skynote TW Rom.

I'm going to turn off the battey module and see if it stays(brightness slider) when getting the notifications?

Edit::
Solved!!!! :)
I plugged in the charger and then the slider popped up.
henajeva.jpg


Guess it happens when it between the mark when the module actually stops sending out alerts!

Sent from my SAMSUNG-SGH-I317 using Tapatalk
 
Last edited:

defim

Senior Member
Feb 18, 2012
2,744
1,489
Motorola Defy
Nexus 7 (2013)

killoid

Senior Member
Feb 5, 2013
1,266
442
Done, could you try if it works and report it here? I have no device to test

@Bajanman
There are 2 warning levels, on my device:
config_criticalBatteryWarningLevel = 13
config_lowBatteryWarningLevel = 5

So maybe adjustment of them would be nice ( -> http://xdaforums.com/showpost.php?p=46446494&postcount=7 ). But if the battery is empty, no hack helps :)

okk i will report back later,now testing..

EDIT: it doesn't work for me. when my battery level reached 15% , the battery low warning as usual popped up on my screen.
 
Last edited:

killoid

Senior Member
Feb 5, 2013
1,266
442
What Android version does you use excatly? This should (only) work with 2.3.7. Please test and report. Btw, even it has same version as on market/xposed, this is another file...

i am using GB 2.3.6.i will test it but as u mentioned,it should (only) work with 2.3.7. so i am worried if it will work or not! :confused:
 

killoid

Senior Member
Feb 5, 2013
1,266
442
Without logs i dont know
* if it was possible to hook the function
* if the right function is hooked
* if xposed for GB even works

The best would be if you try it yourself:

Code:
	findAndHookMethod(
			"com.android.systemui.statusbar.StatusBarPolicy",
			lpparam.classLoader,
			"showLowBatteryWarning",
			XC_MethodReplacement.DO_NOTHING

i am just a noob & i am sry that i cant co-operate. :( but thanks for ur work! :good:
 

Top Liked Posts