[HOW TO][EI22][ERA] Disable Full Battery Notification\Sound\ScreenOn - Epic 4G Android Development

How To: Disable Full Battery Notification\Sound\ScreenOn
Decompile SystemUI.apk using APK_Manger\APK_Tool or baksmali the classes.dex inside of it to your chosen directory.
In the directory:
Code:
\smali\com\android\systemui\statusbar\policy\StatusBarPolicy.smali
Change this:
Code:
[FONT=Arial].line 2026
const/high16 v1, 0x701
[/FONT] [FONT=Arial] invoke-virtual {v0, v1, v2}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V[/FONT]
To this:
Code:
[FONT=Arial]return-void[/FONT][FONT=Arial]
.line 2026
const/high16 v1, 0x701
[/FONT] [FONT=Arial] invoke-virtual {v0, v1, v2}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V[/FONT]
Plain and simply, adding return-void before .line 2026 skips past the invocation of 3 methods within addFullChargeNotification(), which are pretty self explanatory.
notify() - Creates the notification in the notification bar when the battery is full.
playTone() - Plays the sound when the battery is full
turnOnScreenWithForce() - Forces the screen on when the battery is full.
I didn't want to go this route, but the one time i tried removing this code (i only tried once). The notification bar would disappear when the Battery turned 100%.
This does NOT stop the light from turning blue.
This is the first time i've started a how to thread, so i hope this works for everyone. =P
Don't forget to hit thanks!

Nice work. And thanks for leaving the blue light. Need that!
Sent from my SPH-D700 using XDA App

kennyglass123 said:
Nice work. And thanks for leaving the blue light. Need that!
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
There was no invocation of the light in that method, so i wasn't about to start hunting it down.

hoffman1984 said:
This is the first time i've started a how to thread, so i hope this works for everyone. =P
Click to expand...
Click to collapse
Good howto and well-written explanation

lost_ said:
Good howto and well-written explanation
Click to expand...
Click to collapse
Thanks! =)
I tried my best... my first how to. lol

Already built this into my next ThunderHawk revision. Saved me the time of tracking this one down. Thanks! :-D
Sent from my SPH-D700 using XDA App

RandomKing said:
Already built this into my next ThunderHawk revision. Saved me the time of tracking this one down. Thanks! :-D
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
No problem! =)

I opted to remove the method call and the method entirely (arguably a little cleaner) - but thanks for the quick pointer to the location.

Like I said... I had issues with this... Maybe ill go back and do a full removal. Thanks for letting me know it could be done though....
Sent from my PG86100 using XDA App

Well... Seems to have worked the second time around... Maybe in all the excitement i deleted a bit more than i should have
Thanks for the pointer...

hoffman1984 said:
Well... Seems to have worked the second time around... Maybe in all the excitement i deleted a bit more than i should have
Thanks for the pointer...
Click to expand...
Click to collapse
It's amazing how touchy it can be... can't fill in the gaps at all, eh?
I presume you still preserved the full battery blue LED?

RandomKing said:
It's amazing how touchy it can be... can't fill in the gaps at all, eh?
I presume you still preserved the full battery blue LED?
Click to expand...
Click to collapse
Yes... LED is still on. I'll re-do this TUT later... Working a few things ATM. =)

Related

Backlight Control Tip

I just discovered a very simple way to control your backlight on your captivate. Just slide your finger left or right on your top task bar
. left to reduce brightness and right to increase brightness.
Try it out.
Sent from my SAMSUNG-SGH-I897 using XDA App
Awesome tip!
That explains why my screen would dim/brighten when I'd swype my that status bar for notifications. I had chalked it up to a glitch.
This does not work for me. Some of the things I have added? Beautiful Widgets?
m_1000rr6 said:
Awesome tip!
That explains why my screen would dim/brighten when I'd swype my that status bar for notifications. I had chalked it up to a glitch.
Click to expand...
Click to collapse
Ha, yea same thing was happening to me, so I decided to do some investigating, ie swyping my my finger ask around the screen till I found it..heh
Sent from my SAMSUNG-SGH-I897 using XDA App
Phredeee said:
This does not work for me. Some of the things I have added? Beautiful Widgets?
Click to expand...
Click to collapse
Really its like the top edge of the task bar....I dont have any apps that I think would influence that but it does it for me too
Do you have auto brightness off or on? Mine us on and it is not working.
Sent from my SAMSUNG-SGH-I897 using XDA App
madjsp said:
Do you have auto brightness off or on? Mine us on and it is not working.
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
True, when auto brightness is enabled this neat little trick is disabled.
great tip! I love it!
Sent from my SAMSUNG-SGH-I897 using XDA App
Wow, turned off auto brightness and works like a charm, you found a easter egg loool
cowballz69 said:
Wow, turned off auto brightness and works like a charm, you found a easter egg loool
Click to expand...
Click to collapse
I think is is the best way to control the backlight!!!....now i can keep it only as bright as needed at all times!
Awesome find. Thanks!!!
Sent from my SAMSUNG-SGH-I897 using XDA App
Is this phone awesome or what?
Thanks for the tip. VERY useful for saving battery.
jlluck said:
Is this phone awesome or what?
Thanks for the tip. VERY useful for saving battery.
Click to expand...
Click to collapse
i have to agree, i was really a big big big big big HTC Loyalist, and after my fuze, had decided to never buy another phone unless it was made by HTC... but with AT&T's failure to pick up one of the high end HTC Android devices, i decided to give the Captivate a go... and i am SUPER Impressed!!
WOW fantastic find!!! 99% of the time I use auto brightness, but this is a fantastic tip for adjusting the brightness quickly when needed.

(Request) FULL IncRevolution port to Skyraider

Ive found a thread with a port of increvolution, but it was a personal port, and it was edited by the person who posted the theme. so now i am asking you people to please port it to skyraider 3.3
i would like to keep the Espresso rosie
the person who is willing to do this for me will get a donation
thanks in advance!
EDIT: thanks to our very awesome dev, wes342, you can all enjoy Incredible Revolution on Skyraider! just visit this thread, give him the well deserved thanks, and dont forget to donate to him!
Click to expand...
Click to collapse
+1
I too am offering a donation for a port, or a completely reworked theme involving reds, blacks, and whites. PM me for more info if interested.
TheWizKid95 said:
Ive found a thread with a port of increvolution, but it was a personal port, and it was edited by the person who posted the theme. so now i am asking you people to please port it to skyraider 3.3
i would like to keep the Espresso rosie
the person who is willing to do this for me will get a donation
thanks in advance!
Click to expand...
Click to collapse
Nitrogenus said:
+1
I too am offering a donation for a port, or a completely reworked theme involving reds, blacks, and whites. PM me for more info if interested.
Click to expand...
Click to collapse
I will work on it for you guys
wes342 said:
I will work on it for you guys
Click to expand...
Click to collapse
thank you so much! take your time and thank you again
TheWizKid95 said:
thank you so much! take your time and thank you again
Click to expand...
Click to collapse
Any word on progress? I liked INCRevolution on Virtuous, but had to leave it (Virtuous) because of problems with Handcent, but loved the theme!
todd3835 said:
Any word on progress? I liked INCRevolution on Virtuous, but had to leave it (Virtuous) because of problems with Handcent, but loved the theme!
Click to expand...
Click to collapse
I'm still working on getting it to flash. Done with theme. Did you want it to be exactly like increv or did you want it to not have anything labeled. Like did you want me to remove the words that say inc rev from everything?
Sent from my ADR6300 using XDA App
Thank YOU!
wes342 said:
I'm still working on getting it to flash. Done with theme. Did you want it to be exactly like increv or did you want it to not have anything labeled. Like did you want me to remove the words that say inc rev from everything?
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
Personally, I do not mind the IncRev stuff. So long as the Android green that permeates everything is nonexistent, I shall be a happy rooter. And while the orange (highlighted selections, etc) does not bother me nearly as much, feel free to dispose of it as well. Hmmm... perhaps I should throw you some more money for a completely custom color scheme.
I cannot wait to check out the screens and deliver donation.
Nitrogenus said:
Personally, I do not mind the IncRev stuff. So long as the Android green that permeates everything is nonexistent, I shall be a happy rooter. And while the orange (highlighted selections, etc) does not bother me nearly as much, feel free to dispose of it as well. Hmmm... perhaps I should throw you some more money for a completely custom color scheme.
I cannot wait to check out the screens and deliver donation.
Click to expand...
Click to collapse
if you want to check out RedRaven rom
im just porting my theme to work with SR 3.3 and adding the increv stuff to it
got rid of about 95% of red
the market is now fully red
phone is fully red even the little green droid guy on call screen is red
most of the green icons are red
im just having trouble getting it to flash with SR 3.3
i may try a metamorph zip to flash it.
I like the inc rev I would leave it XD. I can't wait for this theme. Lol I'm not living virtuous until skyraider gets it. Thank you so much for porting XD
Sent from my ADR6300 using XDA App
wes342 said:
I'm still working on getting it to flash. Done with theme. Did you want it to be exactly like increv or did you want it to not have anything labeled. Like did you want me to remove the words that say inc rev from everything?
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
Thanks for working on it. I personally don't mind the INCRev logos. The theme from the Virtuous section of rom manager does technically work, but the problem is that you loose the "recently used" in the pull down menu by using the theme. Although if yours is more red than INCRevo then by all means, I'll give yours a shot =] I kinda like the red, it brings out the red of the speaker on the front of the phone I feel. Might be time to get a red case!
wes342 said:
I'm still working on getting it to flash. Done with theme. Did you want it to be exactly like increv or did you want it to not have anything labeled. Like did you want me to remove the words that say inc rev from everything?
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
thanks again! and i would not mind the increv logos, i actually kinda like them
and so do other ppl here
+1 for loving this for sky and for leaving the logos.
Sent from my ADR6300 using Tapatalk
sorry for the delay i just have so many projects that im working on right now its hard to
find the time to do everything.
i have caught up a bit so ill be able to focus on this a bit more
my main issues right now are
1. when flashing the theme it boot loops when you try to get the power menu by power button.
2. the recent apps in the task bar pull down.
so once i fix these issues i will have it working for you guys
wes342 said:
sorry for the delay i just have so many projects that im working on right now its hard to
find the time to do everything.
i have caught up a bit so ill be able to focus on this a bit more
my main issues right now are
1. when flashing the theme it boot loops when you try to get the power menu by power button.
2. the recent apps in the task bar pull down.
so once i fix these issues i will have it working for you guys
Click to expand...
Click to collapse
Perhaps ihtfp69 could assist?
I'm running 3.3.2 and loaded the R
IncREVolution theme that is supposed to work on,any DeOdexed Rom, and the power button also reboots the phone. It doesn't make it keep rebooting, just any time you press the power button, which is of course annoying..... may try the latest Virtuous release with IncrEVOlution
Sent from my ADR6300 using XDA App
todd3835 said:
I'm running 3.3.2 and loaded the R
IncREVolution theme that is supposed to work on,any DeOdexed Rom, and the power button also reboots the phone. It doesn't make it keep rebooting, just any time you press the power button, which is of course annoying..... may try the latest Virtuous release with IncrEVOlution
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
thats what happened to me too.
i even tried doing it with metamorph but it didnt change everything.
*cough* bump *cough*
progress check?
TheWizKid95 said:
*cough* bump *cough*
progress check?
Click to expand...
Click to collapse
Sorry guys I fried the power port on my laptop and I'm trying to get a new one.
I will get back to work on this when I get my new laptop.
Sent from my ADR6300 using XDA App
wes342 said:
Sorry guys I fried the power port on my laptop and I'm trying to get a new one.
I will get back to work on this when I get my new laptop.
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
I send my condolences regarding your computer, Sir.
wes342 said:
Sorry guys I fried the power port on my laptop and I'm trying to get a new one.
I will get back to work on this when I get my new laptop.
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
sorry about your laptop, hope it gets fixed soon!

[MOD] (6)Lockscreens + Power Menu + Clock Options + Accurate Batt for Trigger

Here is the mod as posted by corradokng HERE. I simply added an accurate clock using UOT Kitchen. The full battery color is a nice blue, and it shows the current percentage while charging. Hope you like it, and thanks to corradokng for the original post!
Download HERE
looking good! thanks!
Does this have the lockscreens?
yes U should try it out
Does it work with our GB deodexed version? I want the black status bar too.
Not sure...
I have not installed GB yet (I am waiting for CWM first), but I think this was designed for KD1. You can try if you like, but there is no way to back up your install ATM, so it is pretty risky.
overkillthemighty said:
Here is the mod as posted by corradokng HERE. I simply added an accurate clock using UOT Kitchen. The full battery color is a nice blue, and it shows the current percentage while charging. Hope you like it, and thanks to corradokng for the original post!
Download HERE
Click to expand...
Click to collapse
Awesome work! Any way to remove the auto scrolling text from the puzzle lock screen?
Than you.
Sent from my SGH-T959V using XDA Premium App
overkillthemighty said:
Here is the mod as posted by corradokng HERE. I simply added an accurate clock using UOT Kitchen. The full battery color is a nice blue, and it shows the current percentage while charging. Hope you like it, and thanks to corradokng for the original post!
Download HERE
Click to expand...
Click to collapse
Works great, many thanks! How does one pick the lock screen? Been looking around various settings, but I'm not exactly sure where it is.
crackpot said:
Works great, many thanks! How does one pick the lock screen? Been looking around various settings, but I'm not exactly sure where it is.
Click to expand...
Click to collapse
Settings. Display. Unlock screen.
thetrees13 said:
Settings. Display. Unlock screen.
Click to expand...
Click to collapse
Thank you, must have missed it, went through Display settings at least five times, lol.
will this work for bionic frost?
aznlpguitarist said:
will this work for bionic frost?
Click to expand...
Click to collapse
Nope its for trigger.
Sent from my SGH-T959V using XDA Premium App
Will this work for KD1? What will I do to install this cool MOD? Thanks!
Sent from my SGH-T959V using XDA Premium App

[GUIDE] CM9 Auto Brightness Values

*These values also work for CM7*
I personally take no credit for this as i was searching how to set proper settings for my auto brightness using Team DIRT v1.7, so i searched all over Google and came across these settings that were recommended by the user "brkshr" over at rootzwiki, so all credit goes to him as i'm only basically copying and pasting what he has over there, hopefully it's not a big deal, if so, we can always remove this. They seem to be working just fine for me, but if any of you would like to give it a go, go ahead. I'm not responsible if your phone blows up, make a nandroid backup before you ever play with your phone settings. Shout outs to Team DIRT, CM Team for everything they've provided to us for our beloved Evil (Evo) OG (4G). If you don't find it too much to ask for, please thank the guy i bit this off of. "brkshr"
Menu > System Settings > Display > Automatic Backlight
jrollercoasters said:
For anyone that wants haptic lights on in the dark I put the first 3 levels to 50 and it works perfect
Sent from my PC36100 using xda premium
Click to expand...
Click to collapse
*This would be under "Buttons" near the top.*
Light Sensor Filter - Enabled
Window Length - 5 sec
Reset threshold - disabled
Sample Interval - 5 sec
Light Levels - Use custom checked
Screen dim level - 1
Edit other levels - See attachments (Scroll to the bottom and select "Set number of levels, and type in 20)
Allow light decrease - Checked
Decrease hysteresis - 50%
Once done, click on "Save and Apply" and you should be good to go!
(Hope i didn't violate any rules, i gave credit where i could)
thanks for the guide want to use it but dont quite get the attachment.. im on CM7 reloaded rom and thought it would be the same had all the same stuff... just not as much values.. in other levels.. :/
jrollercoasters said:
thanks for the guide want to use it but dont quite get the attachment.. im on CM7 reloaded rom and thought it would be the same had all the same stuff... just not as much values.. in other levels.. :/
Click to expand...
Click to collapse
First, I think you mean Deck's Reloaded ROM. Second, if you want to emulate the number of levels in the OP, just hit the button at the bottom that says "set number of levels."
Sent from my PC36100 using XDA
shinesthru said:
First, I think you mean Deck's Reloaded ROM. Second, if you want to emulate the number of levels in the OP, just hit the button at the bottom that says "set number of levels."
Sent from my PC36100 using XDA
Click to expand...
Click to collapse
^what he said^
They didn't change to those values tho..
Sent from my PC36100 using xda premium
Oh nvm >.> I'm an idiot srry, will 10secs work for window length? You can't change it to 5 on cm7 appearntly ..
Sent from my PC36100 using xda premium
Excellent find Great way to lower the display usage of CM and save some battery!
For anyone that wants haptic lights on in the dark I put the first 3 levels to 50 and it works perfect
Sent from my PC36100 using xda premium
jrollercoasters said:
For anyone that wants haptic lights on in the dark I put the first 3 levels to 50 and it works perfect
Sent from my PC36100 using xda premium
Click to expand...
Click to collapse
cool, ill put that in the OP
madunix said:
cool, ill put that in the OP
Click to expand...
Click to collapse
I feel special haha
Sent from my PC36100 using xda premium
This should be stickied in general section cause this comes in handy in any cm based Rom.. which a lot ppl use and it works very fluent, productive, smooth, and gets the perfect ammount of brightness
Sent from my PC36100 using xda premium
Sorry for the noob question here but I've been away from aosp for awhile. Does this thread mean auto brightness is finally working properly in cm9 roms? And the compass works too? Did I miss when this bug got fixed?
mertin said:
Sorry for the noob question here but I've been away from aosp for awhile. Does this thread mean auto brightness is finally working properly in cm9 roms? And the compass works too? Did I miss when this bug got fixed?
Click to expand...
Click to collapse
It means you can perfect your brightness so its not so bright all the time.. you can customize with lux auto brightness (app) also
Sent from my PC36100 using xda premium
mertin said:
Sorry for the noob question here but I've been away from aosp for awhile. Does this thread mean auto brightness is finally working properly in cm9 roms? And the compass works too? Did I miss when this bug got fixed?
Click to expand...
Click to collapse
i haven't heard anything new on the compass so I'm assuming it's working just fine, i use googles maps without any issues so i would say yes it's fixed. as far as the auto brightness features, if you follow this guide, it will set your values up in a sense that it covers all types of lighting situations. i tried it out yesterday in doors and out, i'd have to say i was quite happy with the results. very responsive as well.
Am I doing something wrong? I tried following the steps here but my screen was so dim that I could barely see it indoors.
I am on Deck's Reloaded and I changed the number of levels to 20 and tried to mimic the settings but didn't have any luck. When I change the number of levels the "upper" value (that can't be changed) are all 0...Do I need to do something to change that? I tried just going through and setting it like in the attachments but maybe I did something wrong.
Dannyman23 said:
Am I doing something wrong? I tried following the steps here but my screen was so dim that I could barely see it indoors.
I am on Deck's Reloaded and I changed the number of levels to 20 and tried to mimic the settings but didn't have any luck. When I change the number of levels the "upper" value (that can't be changed) are all 0...Do I need to do something to change that? I tried just going through and setting it like in the attachments but maybe I did something wrong.
Click to expand...
Click to collapse
Change the entries under "screen" to something higher until it looks good to u. I like mine a little brighter, so I started with "0,80,0" as the first line, and then increased as I went down the list. Hope this makes sense.
drtwrk127 said:
Change the entries under "screen" to something higher until it looks good to u. I like mine a little brighter, so I started with "0,80,0" as the first line, and then increased as I went down the list. Hope this makes sense.
Click to expand...
Click to collapse
I ended up raising my values up a tad bit as well.. it has definetely been helping me get my screen brightness adjusted accordingly, which is great.
Sent from my PC36100 using xda premium
I think you guys misunderstood my question earlier. Last time I tried cm9 (about two weeks ago) the custom auto brightness settings could not be changed, they would revert as soon as you exit the menu even after hitting save and apply. Also the time it took to adjust to changing light conditions was +10 seconds and basically unusable. (I saw in the changelog it was this way because they werent able to get custom auto brightness and the compass working at the same time). So am I to believe this is not the case anymore?
mertin said:
I think you guys misunderstood my question earlier. Last time I tried cm9 (about two weeks ago) the custom auto brightness settings could not be changed, they would revert as soon as you exit the menu even after hitting save and apply. Also the time it took to adjust to changing light conditions was +10 seconds and basically unusable. (I saw in the changelog it was this way because they werent able to get custom auto brightness and the compass working at the same time). So am I to believe this is not the case anymore?
Click to expand...
Click to collapse
no longer the case. make sure your auto brightness is actually checked.. i was having issues until i realized it wasn't checked to begin with.
Works well on CM7 as well :thumbup:
Sent By Morse Code

Aosp lockscreen?

Is there any way to enable the aosp lockscreen over the touchwiz one that comes with stock on Ics? I found a few guides but I wasn't sure if they'd work or not on the blaze
Sent from my SGH-T769 using xda app-developers app
abser703 said:
Is there any way to enable the aosp lockscreen over the touchwiz one that comes with stock on Ics? I found a few guides but I wasn't sure if they'd work or not on the blaze
Sent from my SGH-T769 using xda app-developers app
Click to expand...
Click to collapse
I haven't put much energy into this in particular yet, but it's on the to-do list. If it's anything like the gingerbread build then it'll be a little work, but it'll happen.
*runs back to tinkering
Well, i found this:
http://forum.xda-developers.com/showthread.php?t=1689376
The only thing is that when I decompile android.policy.jar, I can't find what to modify in the lines of code the person specifies
abser703 said:
Well, i found this:
http://forum.xda-developers.com/showthread.php?t=1689376
The only thing is that when I decompile android.policy.jar, I can't find what to modify in the lines of code the person specifies
Click to expand...
Click to collapse
That guide seems a good place to start. If no one else gets to this before me, I'll take a look at things once I get a few other things finished up and let you know. And in the community spirit, if you try anything and it works feel free to report back with how you did it
I'll be sure to give you guys an update if I find anything, but I'm a bit stumped
Sent from my SGH-T769 using xda app-developers app
Looks like its an easy edit to force the lockscreen to be AOSP vs Circle. In the spirit of the guide you linked, here are my thoughts...
The .local v0 bit they reference in android.policy can be found in the createLockscreen method in LockPatternKeyguardView.smali, but I wouldn't quite follow what they say as to where things should be placed - mostly due to the fact that the CIRCLELOCK boolean doesn't exist in the stock android.policy. Instead I would focus my attention on an early conditional statement based on a boolean value that tells the method to go either down the Circle path or the AOSP path. If you eliminate that and replace it with something similar to what they posted in the guide you linked, it should work. I'll leave a little mystery to it for now, but if you don't want to try to figure it out I can tell you what to do more specifically - just wanted to give you a chance to tinker first
What's awesome is that the lockscreen works great right out of the box... this was not the case with the UVLF4 Gingerbread update so I was quite happy to see that.
Let me know if this helps

Categories

Resources