[MOD]*solved* Kill full battery popups/fix for apps that close on low battery level - Epic 4G Android Development

Disclaimer: I am not responsible for what happens to your phone-use at your own risk. Always do a nandroid backup before using mods
This is a port of untermensch's vibrant mod found here:http://forum.xda-developers.com/showthread.php?t=793653
untermensch said:
my first method did not seem to kill the popup, so I went after the showFullChargePopup() method
itself and this morning woke up and did not find the battery full popup.
to recreate:
1. decompile/de-odex services.jar/odex
2. open "com\android\server\status\StatusBarPolicy.smali" in a text editor
find ".method private showFullChargePopup()V" about line 2779
and remove the entire method all of it from ".method private showFullChargePopup()V"
to .end method
and delete this line at about line 3441
invoke-direct {p0}, Lcom/android/server/status/StatusBarPolicy;->showFullChargePopup()V
3. save, compile and re-odex as necessary
so what this does is completely strip the ability to show the popup
and the call to to the popup method.
Click to expand...
Click to collapse
Thanx and credit to him for getting us this far, now maybe we can get a bit more accomplished with it for our Epic's.
Here's what I have gotten to work from his instructions, it will kill the popup for full battery while charging when the screen is on.
Screen on Full Batt Popup Killer http://www.mediafire.com/?z73ynyvhb235jmx flash this in clockwork recovery on deodexed system(its just the service.jar but will eliminate any previous service.jar mods) we can always incorporate multiple mods in one service jar later
I am hoing to move forward with this and eliminate the screen off one and if possible kill the power off full battery vibrate alert.
Anyone one else care to join the cause while we wait on froyo?
So Firon took up the challenge and after many hours in irc we got the screen off and charging full battery popup zapped and it doesn't turn the screen on either. Coupled with the mod ported from untermensch we have 2 out of three solved. The vibrate that happens when the phone is off and charging is probably not going to be something we can change but if its figured out it will get put here as well.
To get the screen off/sleeping popup eliminated do the following:
Baksmali android.policy.jar and navigate to classout/com/android/internal/policy/impl/KeyGuardMediator.smali then remove the following line of code found on line 315:
Code:
invoke-virtual {v6, v0}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
Thanx again to Firon for doing the research on this and hanging around in irc while I put it to the test.
If you want both mods together flash this zip in clockwork on a deodexed system: no full battery popups mod
note that the above combined mods include android.policy.jar and services.jar so if you have any current mods done with those jars they will be over written. They can probably be combined so if you need it done just ask and I'll see what I can do.
Thanks to Firon for fixing some of those stock apps that close on low battery level:
http://firon.net/xda/batterymoddedAPKs.update.signed.zip <-- includes camera,music and videoplayer apks modded by Firon to work past 15% battery

I'll give it a try tonight. Use there a way to eliminate the pop up telling you the phone needs to be charged?
Sent from my SPH-D700 using XDA App

Also anyway to play music when the batt low indicator pops up? When my batt goes below 15 it won't let me play a song...
Sent from my Epic 4G

ravizzle said:
Also anyway to play music when the batt low indicator pops up? When my batt goes below 15 it won't let me play a song...
Sent from my Epic 4G
Click to expand...
Click to collapse
use winamp or player pro..it doesnt happen with those players. just the stock player does this

Glatt said:
use winamp or player pro..it doesnt happen with those players. just the stock player does this
Click to expand...
Click to collapse
Thanks for the tip, I tried out mixzing and got no shut off! Didn't know that
Sent from my Epic 4G

ravizzle said:
Also anyway to play music when the batt low indicator pops up? When my batt goes below 15 it won't let me play a song...
Sent from my Epic 4G
Click to expand...
Click to collapse
I made a mod for the music player to not die at 15%. I need to test it a little bit to make sure I didn't screw it up. If successful, I'll try extending the mods to the video player, and maybe even the camera.
raiderep said:
This is a port of untermensch's vibrant mod found here:http://forum.xda-developers.com/showthread.php?t=793653
Thanx and credit to him for getting us this far, now maybe we can get a bit more accomplished with it for our Epic's.
Here's what I have gotten to work from his instructions, it will kill the popup for full battery while charging when the screen is on.
Screen on Full Batt Popup Killer http://www.mediafire.com/?z73ynyvhb235jmx flash this in clockwork recovery on deodexed system(its just the service.jar but will eliminate any previous service.jar mods) we can always incorporate multiple mods in one service jar later
I am hoing to move forward with this and eliminate the screen off one and if possible kill the power off full battery vibrate alert.
I have begun searching for these other two instances. So far I have found one file in system/bin/charging_mode but don't know how to open it up to make changes,edits if it even does what I think it does and controls the vibrate when off and full from charging.
Anyone one else care to join the cause while we wait on froyo?
Click to expand...
Click to collapse
What vibrate specifically? I can help, but I don't know what you're trying to remove.

Firon said:
I made a mod for the music player to not die at 15%. I need to test it a little bit to make sure I didn't screw it up. If successful, I'll try extending the mods to the video player, and maybe even the camera.
What vibrate specifically? I can help, but I don't know what you're trying to remove.
Click to expand...
Click to collapse
When the phone is turned off and charging it vibrates when full. I don't like this and was hoping to find out how we could stop it. I have been searching endlessly trying to find what is controlling the charging while phone is off with no luck. Any help would be awesome man.
That other mod looks nice too, the music player one. I'd be happy to try the same with the camera if I knew what you did to the music player. Glad to help if I can.

I'm basically trying to drain my phone to 15% so I can test to make sure the apps don't break. My batteries are all fully charged, so it's takin' a while, even while trying to drain as much battery as possible... I can post the apk to try, and I'll document my changes later.
Edit: okay, initial version didn't work properly. Here's a fixed and tested version that will let you play below 15% battery. I'm moving onto the other stock apps now.
All you need to do is remove Music.odex, copy it to /system/app, and chmod 644 /system/app/Music.app
This should work on any ROM. I'll provide a flashable zip once I have all the other apps working properly.

And here's the camera app, also modded to remove the warning.
Just remove Camera.odex, copy the apk to /system/app/Camera.apk, chmod 644.
Tested on my phone, working great, incl. camcorder.
Workin on videoplayer now.
Edit: done with videoplayer! Attached. Delete VideoPlayer.odex
Edit2: flashable zip provided for all 3 of these. Should work on any ROM, deodexed or not. Flash in clockwork and you'll be good to go.
http://firon.net/xda/batterymoddedAPKs.update.signed.zip
Enjoy!

Firon said:
And here's the camera app, also modded to remove the warning.
Just remove Camera.odex, copy the apk to /system/app/Camera.apk, chmod 644.
Tested on my phone, working great, incl. camcorder.
Workin on videoplayer now.
Edit: done with videoplayer! Attached. Delete VideoPlayer.odex
Edit2: flashable zip provided for all 3 of these. Should work on any ROM, deodexed or not. Flash in clockwork and you'll be good to go.
Enjoy!
Click to expand...
Click to collapse
Flashed in Clockwork & caused bootloop, kept booting into stock recovery.
Also, I have a request, can you modify the fascinate music player with this mod too?

Do u think u can do the music mod with the fascinate music player app
Sent from my SPH-D700 using Tapatalk

Yea can you do that...mod the fascinate music player app...the one that was ported for the epic
Sent from my SPH-D700 using Tapatalk

Heres the apk just to make it more convenient for you & so you know exactly which one if you will do it for us.
Thanks in advance.

halfcourtshoes said:
Flashed in Clockwork & caused bootloop, kept booting into stock recovery.
Also, I have a request, can you modify the fascinate music player with this mod too?
Click to expand...
Click to collapse
Hm. What ROM are you using? It seems to work just fine on my own system (which is fully odexed), even when flashed through the zip.
Do you have an adb logcat of it failing to boot? I mean, you could just try copying the files and setting perms (644) by hand through adb.
And I could take a look later today.
Edit: re-uploaded the flashable zip. Maybe it'll solve the bootloops for some people. At least one person tested it on irc with success.
http://firon.net/xda/batterymoddedAPKs.update.signed.zip

OP updated with details on how the screen off/sleeping popup was eliminated as well as a flashable zip that has both popup mods in it. Read the note below the link as this can and will over ride any existing mods done through android.policy.jar and services.jar.
Thanx again to Firon for helping with this last addition

raiderep said:
To get the screen off/sleeping popup eliminated do the following:
Baksmali android.policy.jar and navigate to classout/com/android/internal/policy/impl/KeyGuardMediator.smali then remove the following line of code found on line 315:
Code:
invoke-virtual {v6, v0}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
Click to expand...
Click to collapse
Raiderep, I was able to Baksmali the android.policy.jar and get the KeyGuardMediator.smali file modified, but I am still at a loss as to what to do next. How do I get the modified folder/file structure saved back to the android.policy.jar (recompiled)? Can you please give me a quick step by step?
Thanks.

Firon said:
Hm. What ROM are you using?
Click to expand...
Click to collapse
The rom I'm using is actually a new rom that hasn't been released yet. It's fully deodexed though.
Firon said:
I mean, you could just try copying the files and setting perms (644) by hand through adb.
Click to expand...
Click to collapse
That's what I did I pushed them to /system & changed the permissions then drained my battery to test & they worked just fine.
Firon said:
And I could take a look later today.
Click to expand...
Click to collapse
Also, did you ever get a chance to look at the fascinate music player? Don't mean to bug you or nag, I know you're busy. ;P

hotwired34 said:
Raiderep, I was able to Baksmali the android.policy.jar and get the KeyGuardMediator.smali file modified, but I am still at a loss as to what to do next. How do I get the modified folder/file structure saved back to the android.policy.jar (recompiled)? Can you please give me a quick step by step?
Thanks.
Click to expand...
Click to collapse
Well if you got it baksmali'd already then you are halfway there. Simply smali it back into a .dex file and rename it classes.dex then stick it back in your android.policy.jar. Here's a post with examples of the commands(one of which you already used) http://forum.xda-developers.com/showpost.php?p=4152564&postcount=2 the commands need to reflect which version of baksmali you are using of course Hope that helps you.

halfcourtshoes said:
The rom I'm using is actually a new rom that hasn't been released yet. It's fully deodexed though.
That's what I did I pushed them to /system & changed the permissions then drained my battery to test & they worked just fine.
Also, did you ever get a chance to look at the fascinate music player? Don't mean to bug you or nag, I know you're busy. ;P
Click to expand...
Click to collapse
I have not. I will sometime this week. I was busy yesterday helping raiderep figure out how to stop the 100% battery wake/popup.
Would you be willing to try the reuploaded flashable zip?

Firon said:
I have not. I will sometime this week. I was busy yesterday helping raiderep figure out how to stop the 100% battery wake/popup.
Would you be willing to try the reuploaded flashable zip?
Click to expand...
Click to collapse
Awesome I appreciate that. & yes I'll flash it & post back my results.
EDIT: Not sure what you changed but I flashed it with no problems this time. Worked perfect.
Sent from my SPH-D700 using XDA App

Related

[REQ] Super Circle Battery with %

We need this.
http://forum.xda-developers.com/showthread.php?t=724778
That's really cool looking; I hope someone can figure out how to port it, but I imagine it shouldn't be too hard.
this kind of post belongs in apps and themes.....
i like it though just change the colors
and it would be very cool
I would like to see this too. It won't work as is?
Sent from my rooted Incredible w/ Flash
I installed the sense-eclair 2.1 "modaco" version, used clockwork to install zip, works fine for me.
Sent from my ADR6300 using XDA App
Ok after toying with my phone with the new battery Meter. I found that the search button reboots my phone.... don't know If its just mine.
Sent from my HTC Droid Incredible.
Be careful flashing these. They contain build.prop and wireless driver files that are not for your phone.
Thread moved to General.
egzthunder1 said:
Thread moved to General.
Click to expand...
Click to collapse
Actually, this needs to be in Development where I posted it due to the fact that it requires major editing of the stat_sys_battery.xml and stat_sys_battery_charge.xml files to allow it to display the actual battery percentage for each level, such as 99, 98, 97, etc.. Please put it back.
Agreed. I too would really like to see this develop into a reality for inc users. it would free up a spot on my notification bar.
I was able to edit the images and repack the latest nightly so now I have the circle battery meter. The 1% increment isn't working. I assume there must be an xml file to edit??? Can anyone shed some light on that?
Edit: This is on CM6 nightly
Wish this could be ported with the percentage over a battery icon. The circle icon reminds me too much of WinMo.
I'd love to get this on my phone along with something similar for wifi!
Can those of us using the SkyRaider (2.2) rom get a little love with this?
Sent from my ADR6300 using XDA App
I would love to get this..
how to modify xml files?
Hi all -- I would love to have this batt on my DI too...and honestly it doesn't look difficult from a theming perspective. But we need some way to extract the necessary XML files from framework-res.apk, modify them, then correctly re-encode them as binary and repackage into the apk.
If someone can point me to a tool, short of the using the full SDK to rebuild the apk from scratch, it should be a relatively quick mod...
*thread subscribed*
bcgaynor82 said:
Hi all -- I would love to have this batt on my DI too...and honestly it doesn't look difficult from a theming perspective. But we need some way to extract the necessary XML files from framework-res.apk, modify them, then correctly re-encode them as binary and repackage into the apk.
If someone can point me to a tool, short of the using the full SDK to rebuild the apk from scratch, it should be a relatively quick mod...
*thread subscribed*
Click to expand...
Click to collapse
You need to use AXMLPrinter2 to edit stat_sys_battery.xml and stat_sys_battery_charge.xml, which are located under /res/drawable/ in framework-res.apk. I just don't know what modifications to change.
this would be awesome!
xvenom89 said:
You need to use AXMLPrinter2 to edit stat_sys_battery.xml and stat_sys_battery_charge.xml, which are located under /res/drawable/ in framework-res.apk. I just don't know what modifications to change.
Click to expand...
Click to collapse
unfortunately AXMLPrinter2 only converts the XMLs from binary back into editable text -- it doesn't do the reverse. But if you use it and take a look at the XMLs, the modifications are actually pretty straightforward. In fact, the file is already set up to have an image for every 1% step, but images for 95 of those steps are undefined.
what we need is a tool that repackages the XMLs back into the APK appropriately -- i haven't found anything to do this, and i'm not skilled enough to use the SDK in full yet...
still would really love to see this...how can we get some love from the more experienced themers?
Madcaddie said:
I installed the sense-eclair 2.1 "modaco" version, used clockwork to install zip, works fine for me.
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
Madcaddie said:
Ok after toying with my phone with the new battery Meter. I found that the search button reboots my phone.... don't know If its just mine.
Sent from my HTC Droid Incredible.
Click to expand...
Click to collapse
i also just installed this. it also reboots my phone when quickly pressing the search button, but it does not reboot the phone when long pressing the search button. so far so good otherwise. i'm gonna try this for a day and see if any other problems arise, i have a nandroid backup i can go right back to at anytime, so no biggie.

Trouble with theme and fc's

I have been trying for the past 2 days now to try and put a theme together for my froyo rom...i modified over 4000 files in doing so. I pngoptimized the files before putting them back into their respective apk's...signed the apk's then put them into their respective theme package...i load the theme via recovery... phone boots up just fine but when i try and launch an app from either the home screen or from the drawer the app force closes...doesn't matter the app...it just force closes...now i have done themeing previously for my other rom and didn't have any of the troubles I'm having now...perhaps some ideas from you all can help me put this thing together before i whip another evo across the room please...yes i know...anger management...well putting roms and themes together usually works for me in place of a.m. now however its only making it worse!!! please someone help me!!! i have spent many many hours putting this together and would really love to see it work as intended!!! TIA!!!
Bill
Yay 4 Juggs said:
I have been trying for the past 2 days now to try and put a theme together for my froyo rom...i modified over 4000 files in doing so. I pngoptimized the files before putting them back into their respective apk's...signed the apk's then put them into their respective theme package...i load the theme via recovery... phone boots up just fine but when i try and launch an app from either the home screen or from the drawer the app force closes...doesn't matter the app...it just force closes...now i have done themeing previously for my other rom and didn't have any of the troubles I'm having now...perhaps some ideas from you all can help me put this thing together before i whip another evo across the room please...yes i know...anger management...well putting roms and themes together usually works for me in place of a.m. now however its only making it worse!!! please someone help me!!! i have spent many many hours putting this together and would really love to see it work as intended!!! TIA!!!
Bill
Click to expand...
Click to collapse
honestly, I'd start with the Rosie. Even though it just displays as the bottom bar, it's files have a lot to do with launching as a whole. Make sure that you're suing an actual 2.2 rosie as your base rather than a 2.1, because that will **** your world up off that bat.
A simple way to know is just taking that stock rosie I posted in the other thread, and pushing it into your theme. If it works, then your rosie is your problem.
i never touched the rosie for this build yet...im still in the test phase of the theme...again it loads fine till i try and launch an app...if i copy a theme to my phone that has a a modified rosie i get no problems at all...i.e. riptides froyo theme...
Yay 4 Juggs said:
i never touched the rosie for this build yet...im still in the test phase of the theme...again it loads fine till i try and launch an app...if i copy a theme to my phone that has a a modified rosie i get no problems at all...i.e. riptides froyo theme...
Click to expand...
Click to collapse
Honestly, I can't say I know then man. That's crazy.
im just gonna give up on themeing and stick to just building the roms...
Yay 4 Juggs said:
I have been trying for the past 2 days now to try and put a theme together for my froyo rom...i modified over 4000 files in doing so. I pngoptimized the files before putting them back into their respective apk's...signed the apk's then put them into their respective theme package...i load the theme via recovery... phone boots up just fine but when i try and launch an app from either the home screen or from the drawer the app force closes...doesn't matter the app...it just force closes...now i have done themeing previously for my other rom and didn't have any of the troubles I'm having now...perhaps some ideas from you all can help me put this thing together before i whip another evo across the room please...yes i know...anger management...well putting roms and themes together usually works for me in place of a.m. now however its only making it worse!!! please someone help me!!! i have spent many many hours putting this together and would really love to see it work as intended!!! TIA!!!
Bill
Click to expand...
Click to collapse
Had the same issue loading a theme on damage3.5 had to clear factory settings let the phone boot then re-install the theme
Oh of course I did the davik too
Yay 4 Juggs said:
im just gonna give up on themeing and stick to just building the roms...
Click to expand...
Click to collapse
This isn't said to be offensive, but how do you not have any idea of where u went wrong? Are you just doing batch installs of 50 things with no reboots in between?
Even from rom building, you should know better if that's the case.
You the man Juggs... you'll figure it out!
that's the thing i cannot figure out what is wrong as the only thing im doing is flashing the theme...nothing unusal or different about that.
Yay 4 Juggs said:
that's the thing i cannot figure out what is wrong as the only thing im doing is flashing the theme...nothing unusal or different about that.
Click to expand...
Click to collapse
Honestly, instead of flashing the whoel thing, I'd just install your base rom, and from there adb push each apk that you've modded individually. Reboot in between each apk. that way you'll know exactly which one you biffed.
so far framework-res went well...no issues
TJDuckett said:
Honestly, instead of flashing the whoel thing, I'd just install your base rom, and from there adb push each apk that you've modded individually. Reboot in between each apk. that way you'll know exactly which one you biffed.
Click to expand...
Click to collapse
I know so not like you to give up Jugs whats up with that?
Did you try the wipe?
just pushed com.htc.resources.apk...no issues with fc but no changes i made are not showing up...
Yay 4 Juggs said:
just pushed com.htc.resources.apk...no issues with fc but no changes i made are not showing up...
Click to expand...
Click to collapse
Are they signed properly?
On a side note new busy box 1.9 out lol and rommanager
i am assuming so...i am using the autosign.bat found here on xda...followed instructions said signed if no errors above...well there were no errors above...tried resigning and pushing resources but again...no such luck...no changes were made...doesnt even seem as if any of the framework changes were made...uggggghhhhhhhhhh
Yay 4 Juggs said:
i am assuming so...i am using the autosign.bat found here on xda...followed instructions said signed if no errors above...well there were no errors above...tried resigning and pushing resources but again...no such luck...no changes were made...doesnt even seem as if any of the framework changes were made...uggggghhhhhhhhhh
Click to expand...
Click to collapse
System apks aren't supposed to be signed.
My 2 cents..
I have never had success resigning .apk's
If you are replacing images you don't need to unzip the .apk's to get them in there. Also you don't need to unzip an .apk to optimize the .png's
Also, there are certain .apk's that DO NOT like being .png optimized. Png optimizing the HTC_IME.apk broke it on the Hero. I know there were a few others that either wouldn't run or would cause fc's on the Hero but I don't remember exactly which ones.
I have made several attempts since last night...the only apk's that were png optimized were the framework-res.apk and the com.htc.resources.apk...nothing else was touched as far as program apk's. I am truly at a loss with this...
Did you unzip and resign them?
Did you do more mods than just changing .png's?
If all you edited were .png's then if I were you I would try replacing the .png's without unzipping the .apk's before you give up on it.
I would be surprised if you didn't know this already so no offense, but in case you don't... open the .zip archive with 7zip or winrar and just drag and drop the new .png's into whatever folder they go into then push the .apk's to your phone via adb and reboot immediately.
You're so talented I'd hate to see you scrap the project
I am only editing png's from within 7zip not extracting but pulling from archive then saving back into archive...should i not sign the package at all?
Yay 4 Juggs said:
I am only editing png's from within 7zip not extracting but pulling from archive then saving back into archive...should i not sign the package at all?
Click to expand...
Click to collapse
nope, no need to sign them if that's how you're doing it
I will say though (i might be misunderstanding) what I do is open the archive drop the whole res folder on my desktop, close 7zip, make my edits, reopen the archive and drop the images back in the folder they came out of. I've had trouble keeping 7zip open while I'm working on an .apk, fwiw.

[request] Themed 3G icon

can anyone post up a themed version of the stock or new MIUI rom flashable 3G indicator, themed to match this (or both):
http://forum.xda-developers.com/showthread.php?t=788214
Thanks!
Do you mean you're after:
A theme for MIUI which has the 3G icons from that theme
or
That theme with the MIUI 3G icons?
Josh.
fllash said:
Do you mean you're after:
A theme for MIUI which has the 3G icons from that theme
or
That theme with the MIUI 3G icons?
Josh.
Click to expand...
Click to collapse
I would like the 3g icon from that rom to flash over SkyRaider 3.2
^Same^ but likt the one from the smooth blue theme that is a blue 3G indicator. Or JUST the stock HTC 3G indicator in blue if possible. Thanks
just pull it out of the framework and color it yourself, it's like 4 images
worm- said:
just pull it out of the framework and color it yourself, it's like 4 images
Click to expand...
Click to collapse
How do I do this?
Thanks
Funny. I was just going to post asking anyone if they had it in red. I would also like to know how to do it.
Contempt4You said:
Funny. I was just going to post asking anyone if they had it in red. I would also like to know how to do it.
Click to expand...
Click to collapse
I know. I really want it lol, because i kinda hate the 3G indicator in the theme i have currently, as it's hard to see the upload/download arrows, so i just wanted a flashable indicator so I dont lose the cool notification pulldown
I can edit it with photoshop if I can find it. Can anyone give me a hint to the file path?
EDIT: Hah...ok I suck and fail.
I found the apk and edited the images. Looked great. Put the apk back together. Unistalled the original apk and tried to install my modified apk. Would not install. I'm done with it for now. I guess I will read up on signing tomorrow although I thought I had read that system apps didn't need to be signed.
I'll play with it more tomorrow.
do adb pull /system/framework/framework-res.apk
And the images should n in the drawable-hdpi. Folder if not just look around until u find the images
Then pull the framework from your current Rom and replace your images with the images you want then repush your framework hack to the phone and reboot
Sent from my ADR6300 using Tapatalk
Contempt4You said:
I can edit it with photoshop if I can find it. Can anyone give me a hint to the file path?
EDIT: Hah...ok I suck and fail.
I found the apk and edited the images. Looked great. Put the apk back together. Unistalled the original apk and tried to install my modified apk. Would not install. I'm done with it for now. I guess I will read up on signing tomorrow although I thought I had read that system apps didn't need to be signed.
I'll play with it more tomorrow.
Click to expand...
Click to collapse
If you figure it out can you pack a zip of just the 3g icon in blue as well for me?
Thanks man
Thanks for the tips. With a little help from google, I was able to figure it out.
Which icon did you need exactly? The 3g toggle or the notification bar?
well, i did it and replaced some old icons with cooler looking ones, but the 3g icons (along with similar data icons) did not show up. all of the other ones showed up. also, i read a thread where this dude got 4g icons from another rom and installed them on his phone to make it look like he had 4g, but then hours later, he experienced loss of mobile data... and now i think i am too... any suggestions?
I'm sorry I can't help you. I am learning all this myself and wouldn't pretend to know where to start on that. All I can say is that if you are going to make any changes then backup early and often.
The 3g toggle icons I was looking for were in system/app. I merely reskinned them and dropped them back in.
Contempt4You said:
I'm sorry I can't help you. I am learning all this myself and wouldn't pretend to know where to start on that. All I can say is that if you are going to make any changes then backup early and often.
The 3g toggle icons I was looking for were in system/app. I merely reskinned them and dropped them back in.
Click to expand...
Click to collapse
i wanted notification bar icon
I'm running a theme and mine is already skinned. I think either way you would still have to adb push it onto your phone. I did some googling and took a crash course on changing system icons.
Once I figured it out, it made sense (i know that sounds stupid, but after i did it, I was like oh yeah I get it now). I know that's not a big help, but I'm new to this and wouldn't want to bork your phone. Maybe someone more knowledgable will come save the day.
Otherwise I would google in terms like editing apks and adb pull adb push etc. and maybe you will figure it out too.
Hell I can't wait to ruin my phone now that I am armed and dangerous =)
Contempt4You said:
I'm running a theme and mine is already skinned. I think either way you would still have to adb push it onto your phone. I did some googling and took a crash course on changing system icons.
Once I figured it out, it made sense (i know that sounds stupid, but after i did it, I was like oh yeah I get it now). I know that's not a big help, but I'm new to this and wouldn't want to bork your phone. Maybe someone more knowledgable will come save the day.
Otherwise I would google in terms like editing apks and adb pull adb push etc. and maybe you will figure it out too.
Hell I can't wait to ruin my phone now that I am armed and dangerous =)
Click to expand...
Click to collapse
Lol, i actuallly finally figured out how to extract the png's, so i am going to edit in photoshop, then replace the current images with the app ninjamorph.
*didnt work* left a huge blank space on noti. bar and when I rebooted to see if it would show, I bootlooped*
Well. I spent last night learning to resign edited apk files, so literally nothing on my phone is safe now.
Contempt4You said:
Well. I spent last night learning to resign edited apk files, so literally nothing on my phone is safe now.
Click to expand...
Click to collapse
Is there any way to pack the png's so that I can flash them or install as an apk?
Anyone know how I'd do this? I already have the edited png's.
Can I send any of you guys the folder with the icons and you can help me out with this?
Thanks again
It seems the easiest way to change or theme icons is to not unzip them. Just open them with 7zip and make your changes, then close it. They will stay compressed and all of the info and size will remain intact.
Once changed you will have to resign the apk or zip file.
I spent the better part of 2 hours reading up on it using these forums and google, but I do not in any way feel knowledgable enough to instruct you on the finer points. There are oodles of topics on editing apk's and signing them when you are finished.
The steps seem pretty clear:
1. download or pull apk
2. open with 7zip
3. make changes keeping sizes and file names the same
4. close
5. re-sign the apk or zip file (most likely have to delete the existing files to the original signing which will be replaced with your own)
6. push or install the zip or apk (make sure the original app is uninstalled prior to reinstalling the changed app)
There are various methods and tools. The most helpful thread I found on signing is here: http://forum.xda-developers.com/showthread.php?t=473580
I hope this covers it all and is helpful to you. I am new at it and can only tell you to backup everything and if you are unclear on any of it, then don't attempt it.
Read all the posts related to it. There is great info and plenty of feedback on known issues or mistakes others have had.

flashable smoothsense+translucent notification tray+dropdown mod. Requests now open.

HERE IS THE MUCH AWAITED MUCH WORKED ON AND MUCH FAILED (BUT NOW WORKING) FLASHABLE MADE BY ME. this is only my third flashable, but works perfectly. the problem was (for those of you paying attention) is that my update script was not compatible with the lengthy smoothsense mod.
credit for smoothsense goes to faster3200
credit for the translucent tray goes to xeudoxus & fxn
credit for the dropdown mod (i think) goes to manup or virus, not sure who
credit for screenies and testing goes to _metalhead_
i take only the credit for composing the flashable
i hope you all enjoy this great flashable. looks really nice. looks even better with ava's customized espresso rosie that was a part of his v7 rom. as far as i know, the file is nowhere to be found (except here), so i will post here for all of you to enjoy. credit goes to ava. upload not working so link: http://db.tt/MxWNgDc
enjoy, flashers of the evo world.
and also, if you already have themes installed, send me your framework-res.apk and services.jar and i will do the best i can.
Because this seems out of date for the new OTA somehow, I am trying to create a new version. This takes some time, and is not number one on my priority list. (what is number one is a 3 command root kit for the new ota so people will stop asking for an easy way to root). the new version will also include the power controls in the notification tray by jschisurf. i will start once he releases the 4g toggle publicly.
Until then, i am taking requests to port and/or combine this mod. Send me your framework-res.apk and services.jar. Both are located in the system framework folder. I will do the best i can.
Nice work dude! And it's manup456 who you want to credit for the translucency.
i think i am right on the translucency, and there is some contradiction over who did the dropdown bar. if somebody knows for sure, please post.
Can you create a zip with just smoothsense to be use with Metamorph?
Sent from my PC36100 using XDA App
ask faster3200
Just flashed...very nice mod! Thanks man!
Very cool. Thanks for the great job!
Sent from my EVO using XDA App
Flashed and kept reseting on me at the home page!
Sent from my PC36100 using XDA App
Raheem387 said:
Flashed and kept reseting on me at the home page!
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
Same here. Using Fresh 3.3.0.1.
Thank you very much appreciated. All I needed was the smooth sense. Thanks again.
Awesome mod! I just flashed the white battery icon w/% ...http://forum.xda-developers.com/showthread.php?t=819568 and it wiped out your mod, settting it back to the white tray. I prefer your mod better so I flashed back..is there any way you can combine the two? I tried flashing the battery mod over yours and it reset it. I also tried flashing the battery mod and then yours and it reset the battery to the stock one I had before. Is it even possible to combine the two?
my zip contains stock battery with percent. if you send me your framework-res.apk (with the other person's battery theme on it) and your services.jar, i will happily make you a combination. you can find both of these in your /system/framework folder. pm both of these to me (or email, [email protected]) and i will combine my theme minus battery percent with your theme that already has the battery percent that you want.
dk
dkdude36 said:
my zip contains stock battery with percent. if you send me your framework-res.apk (with the other person's battery theme on it) and your services.jar, i will happily make you a combination. you can find both of these in your /system/framework folder. pm both of these to me (or email, [email protected]) and i will combine my theme minus battery percent with your theme that already has the battery percent that you want.
dk
Click to expand...
Click to collapse
Awesome man! Thanks! Email sent!
new version will be out hopefully soon with the power controls in dropdown bar mod. i have my work cut out for me... also, i am trying to develop a simple root kit for hboot 2.02.
Tried this on my stock rooted 3.3.....3 went into bootloop do like it too bad
Like i said, new version coming soon.
dkdude36 said:
Like i said, new version coming soon.
Click to expand...
Click to collapse
How's the new version coming?
Wondering if you can make the smooth version with regular sprint slider on bottom instead of the android and notifications word on the bottom. I really just want a translucent tray with the battery percent mod in it. I would gladly donate for it. Please think about it.
My next version will be a metamorph, so no more worrying about different frameworks! I am waiting on the 4g power toggle by jschisurf to start a new version. Dukins send me your framework-res.apk and services.jar in system framework folder. I will make you a custom version immediately. My email is [email protected]. Thanks for your continued intrest.
Dk
dkdude36 said:
My next version will be a metamorph, so no more worrying about different frameworks! I am waiting on the 4g power toggle by jschisurf to start a new version. Dukins send me your framework-res.apk and services.jar in system framework folder. I will make you a custom version immediately. My email is [email protected]. Thanks for your continued intrest.
Dk
Click to expand...
Click to collapse
That sounds cantonese to me. Can you put this in layman terms for me?

[Q] 10% Battery icons for Tranquility 3.0

I've been trying to modify Tranquility 3.0 to use 10% increments instead of the default 20% with the icons found in this thread: 821606
(Apparently a link to another topic is an "outside link" and I'm not allowed to post it. Just replace this topic's ID with that one and you'll find the thread I'm talking about)
So far I've been able to boot with the correct icons but I get strange force closes and weird patterns, especially in the little loading bars and in the volume bars. It's odd.
I've attached the .pngs and .xmls I would like to use - can anyone build a working framework-res.apk for Tranq's dark theme to use these icons/xmls, or at least tell me where I've gone wrong in creating my own?
Sunblood said:
I've been trying to modify Tranquility 3.0 to use 10% increments instead of the default 20% with the icons found in this thread: 821606
(Apparently a link to another topic is an "outside link" and I'm not allowed to post it. Just replace this topic's ID with that one and you'll find the thread I'm talking about)
So far I've been able to boot with the correct icons but I get strange force closes and weird patterns, especially in the little loading bars and in the volume bars. It's odd.
I've attached the .pngs and .xmls I would like to use - can anyone build a working framework-res.apk for Tranq's dark theme to use these icons/xmls, or at least tell me where I've gone wrong in creating my own?
Click to expand...
Click to collapse
No thread identified. But upload the tranquility framework and i'll try.
yawdapaah said:
No thread identified. But upload the tranquility framework and i'll try.
Click to expand...
Click to collapse
Thanks, I appreciate it.
Sunblood said:
Thanks, I appreciate it.
Click to expand...
Click to collapse
Be careful I don't have Tranquility so I can't test it. Use it at your own risk.
Thanks
http://www.mediafire.com/?4c2ynglf5bzzpk5
I'd be interested to know if it works out after the edits. On that note if you guys wouldn't mind if it does work I can get it off t oP3 so he could add it into his next update of TranQ.
will2live said:
I'd be interested to know if it works out after the edits. On that note if you guys wouldn't mind if it does work I can get it off t oP3 so he could add it into his next update of TranQ.
Click to expand...
Click to collapse
Well if you have tranquility, you can try it out. I've already uploaded the file.
Thanks
yawdapaah said:
Well if you have tranquility, you can try it out. I've already uploaded the file.
Thanks
Click to expand...
Click to collapse
Well I do have it and run it, but atm I don't have the device in my possession. I lent it to a friend to use as they are waiting for a replacement so I'm using one of my other devices right now. If I get it back prior to hearin or seeing as reply here I will check it out tho.
will2live said:
Well I do have it and run it, but atm I don't have the device in my possession. I lent it to a friend to use as they are waiting for a replacement so I'm using one of my other devices right now. If I get it back prior to hearin or seeing as reply here I will check it out tho.
Click to expand...
Click to collapse
Thank you. I've been rom-whoring recently and have settled down with Fission . If I install tranquility, I'll test it myself as well. GL
Nope, not working - now I just have a bootloop. Thanks for the effort though - maybe someone else could have a go at it?
Your best bet is to take the original DX-Tranquility_3.0.zip and modify it then install it again. Since this ROM does not require a wipe.
I did have issues at first when I tried to extract the zip then make my changes, but this link helped me figure out how to do it through 7zip. Once you are in the correct location you can add your new images to the “drawable-hdpi” folder.
I have done this and added different battery icons, changed the notification bar and replaced the "Verizon Wireless" text.
FYI:
I added "stat_sys_battery_0.png" through "stat_sys_battery_100.png" in increments of 10 with 5 and 15 added but it is still reporting 20% increments.
L8
@ Sunblood: how did you install it?
tonm156 said:
Your best bet is to take the original DX-Tranquility_3.0.zip and modify it then install it again. Since this ROM does not require a wipe.
I did have issues at first when I tried to extract the zip then make my changes, but this link helped me figure out how to do it through 7zip. Once you are in the correct location you can add your new images to the “drawable-hdpi” folder.
I have done this and added different battery icons, changed the notification bar and replaced the "Verizon Wireless" text.
FYI:
I added "stat_sys_battery_0.png" through "stat_sys_battery_100.png" in increments of 10 with 5 and 15 added but it is still reporting 20% increments.
L8
Click to expand...
Click to collapse
I'll concur as that is the same thing I've done to make some changes to framework-res. Its actually pretty simple to do once you have the files you want to add, and know the location of where they need to be. Kinda just turns into a drag & drop and you are done.
As for the reporting of 20% increments like you mention. I asked P3 about it and it is a thing with the X and the way the software is done by Moto/VZW. He has yet to get it working to report in 10% increments even if you have the images there.
I have seen other ROMs report that have 10% increments working but my guess if they are once that are fully built from source which TranQ is not.
yawdapaah said:
@ Sunblood: how did you install it?
Click to expand...
Click to collapse
Pushed to /sdcard with adb, moved to /system/framework/framework-res.apk with adb shell. Rebooted.
As for the 10% increments, that's achieved by editing the .xml that tells the OS what images to use at what battery percentage. Replacing already-used images is easy, but the .xml is encrypted. You'll have to use APKTool to decrypt it. The difficulty comes from re-encrypting properly.
You don't have to build from source to get the 10% working. I've done it for NexTheme and Revo for ApeX.
The file I uploaded was created via the same process. Only problem is that i'm not using Tranquility and can't test it. Furthermore, the level of P3droids mods may cause any changes to the framework to bootloop. I'll try to test it when I get home.
http://androidforums.com/droid-x-all-things-root/210016-nextheme-10-circle-battery-mod.html
yawdapaah said:
You don't have to build from source to get the 10% working. I've done it for NexTheme and Revo for ApeX.
The file I uploaded was created via the same process. Only problem is that i'm not using Tranquility and can't test it. Furthermore, the level of P3droids mods may cause any changes to the framework to bootloop. I'll try to test it when I get home.
http://androidforums.com/droid-x-all-things-root/210016-nextheme-10-circle-battery-mod.html
Click to expand...
Click to collapse
first off that is good to hear seeing as I've been told otherwise by many different people. And seeing as I don't know enough in general to question them I don't.
That said if you are willing and had the time if you could PM me the info on what needs to be changed I'll try it out myself. Least of my concern is a bootloop or brick to be honest. I have anything and everythign I'd need to get it back running again no matter what happens as it is pretty much next to impossible to completely brick one of these devices as long as you don't mess up the actual bootloader which would not be an issue in this case.
will2live said:
first off that is good to hear seeing as I've been told otherwise by many different people. And seeing as I don't know enough in general to question them I don't.
That said if you are willing and had the time if you could PM me the info on what needs to be changed I'll try it out myself. Least of my concern is a bootloop or brick to be honest. I have anything and everythign I'd need to get it back running again no matter what happens as it is pretty much next to impossible to completely brick one of these devices as long as you don't mess up the actual bootloader which would not be an issue in this case.
Click to expand...
Click to collapse
Easy peasy. Long read but very simple process.
http://androidforums.com/droid-x-all-things-root/210021-how-10-battery-themed-framework-apks.html
yawdapaah said:
Easy peasy. Long read but very simple process.
http://androidforums.com/droid-x-all-things-root/210021-how-10-battery-themed-framework-apks.html
Click to expand...
Click to collapse
Thanks give me something to mess with over the weekend while watching some football seeing as my golf season has come to a close iwth it being so dam cold around here already.

Categories

Resources