Modifying framework-res in CM6.1 RC1 causing massive force closes - EVO 4G Themes and Apps

I modified the graphics for notification tray power widget to not look so.. bland.
They were all regular PNGs except for the on/off graphic which I handled as a .9.png. I started off by pulling the apk from my phone via ADB, decompiled it via APK manager, put in my modified graphics, and then used APK Manager to recompile, sign, repush the APK. I've done this in HTC ROMs before without any problems but with CM6.1 I'm getting mass force closes, can't really do much unless I push back the original APK. I'm not sure what's wrong, the modified graphics are there and look good but something is wrecking havoc.

don't resign it. that usually is what causes the problems skip that step and see if it works

saf100792 said:
don't resign it. that usually is what causes the problems skip that step and see if it works
Click to expand...
Click to collapse
Just as I expected: boot loop.
Hmmm... I have no idea what's causing the force closes..

Thats weird i just modified mine to give it a clear taskbar. i used winrar but i didn't recompile or sign the apk just extracted the images,edited them, and then pushed em back in the apk.

saf100792 said:
Thats weird i just modified mine to give it a clear taskbar. i used winrar but i didn't recompile or sign the apk just extracted the images,edited them, and then pushed em back in the apk.
Click to expand...
Click to collapse
So you just dragged and dropped the graphics into winrar/apk replacing the old files?

yup everything worked fine

saf100792 said:
yup everything worked fine
Click to expand...
Click to collapse
Thanks. I just nandroid'd back to CM6.0 stable, got to go out but will try this when I get back. I'll probably post it up if it works. Very minor tweaks but still better.

Related

Blue Market

Alright, I grabbed a few of the different blue market apks, and pushed them to my phone, but then my market turns back green if I goto application and clear data on the app it returns to blue anyway to fix this?
No one can help?
XAnimal said:
No one can help?
Click to expand...
Click to collapse
Shore, I can help. The reason that your Market keeps going from blue to green is that Google recently updated their Market app. from rev 1710 to 1713. Your phone automatically receives the update, and when it does it goes from blue to green. Theres no way to pull the uddated apk out of the phone as far as I know. To get the blue back got to Manage Applications>Market>Uninstall Updates. It'll turn back to blue. For some reason, this sticks better if you're not using a2sd. Dont know why, atoz350 discovered that and I have found it to be true.
So is it just stored somewhere different or are the updates in the dalvik or what?
gomorrah said:
Shore, I can help. The reason that your Market keeps going from blue to green is that Google recently updated their Market app. from rev 1710 to 1713. Your phone automatically receives the update, and when it does it goes from blue to green. Theres no way to pull the uddated apk out of the phone as far as I know. To get the blue back got to Manage Applications>Market>Uninstall Updates. It'll turn back to blue. For some reason, this sticks better if you're not using a2sd. Dont know why, atoz350 discovered that and I have found it to be true.
Click to expand...
Click to collapse
worked perfect for me thanks so much
Alright figured it out, it installs the updated apk to /data/app so I edited it and resigned it attempted to resign at least, pushed it back to /data/app/com.android.vending.apk got a force close I guess my resign didn't work as I took the res folder from the old apk and replaced it, So I rm'd the apk in /data/app and pushed the new edited one to /system/app/ and it force closed aswell I have included the new market.apk for someone to fix because I have failed horribly.
XAnimal said:
Alright figured it out, it installs the updated apk to /data/app so I edited it and resigned it attempted to resign at least, pushed it back to /data/app/com.android.vending.apk got a force close I guess my resign didn't work as I took the res folder from the old apk and replaced it, So I rm'd the apk in /data/app and pushed the new edited one to /system/app/ and it force closed aswell I have included the new market.apk for someone to fix because I have failed horribly.
Click to expand...
Click to collapse
You can't resign it. Just take the original file, edit the pngs and close the apk. If you resign it, you'll get a FC.
Yea I tried without resigning it Im fairly new to theme, I moved the res folder from the old to the new and it still FC's
XAnimal said:
Yea I tried without resigning it Im fairly new to theme, I moved the res folder from the old to the new and it still FC's
Click to expand...
Click to collapse
The reason it kept fc'ing was because you cant just exchange the res folders. There are more files contained in the updated version than in our previous one. That being said, here is the updated Market app.
gomorrah said:
The reason it kept fc'ing was because you cant just exchange the res folders. There are more files contained in the updated version than in our previous one. That being said, here is the updated Market app.
Click to expand...
Click to collapse
Thank you for the awesome
gomorrah, ive been lookin at alot of your post an see that you have a brain in your head...without it being swollen ( an ass to us noobs), with that said.... thank you!
I need to figure things out a lil more so i just keep readin an tryin...havent bricked it yet (htc Hero sprint )..lol. I have rooted, ROM'ed, an themed... but know i want to make my own themes but still havent got the swing of things..all this adb, push, pull stuff is givin me a headache.. I dont think im doing bad considering I'm a low level tech.(only had a computer for 3 years now) But yet again you the man!
Using:
Sprint hero..rooted
Damage control 2.0.8 ROM
Black and Blue v2 theme
gomorrah said:
The reason it kept fc'ing was because you cant just exchange the res folders. There are more files contained in the updated version than in our previous one. That being said, here is the updated Market app.
Click to expand...
Click to collapse
I got the blue market vending.apk but where do I push it to?
derekstory said:
I got the blue market vending.apk but where do I push it to?
Click to expand...
Click to collapse
adb remount
adb push vending.apk /system/app

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.

[Q] Metamorphing Rubix 1.0

So last night, I was fiddling with Metamorph trying to change the battery indicator in Rubix 1.0. Very simple change as it's only 11 .png's, but on reboot the theme had applied, but everything was force closing. I have to assume it's a signature/permissions issue, but I never had this problem at all with any of the theming on my Eris.
My question is if this is a DX specific problem or a Rubix specific issue? Since Nand restores don't seem to work correctly with Rubix, I don't really care to experiment anymore with it, so any input would be nice.
What do the experts think is going on here? Am I just an idiot, or is this phone truly the spawn of the devil?
I used ninja morph to do the same thing. I haven't had any problems. It sticks. It takes longer. But I couldn't figure out meta morph.
Would you mind writing a short tutorial on the meta morph process?
I examined a theme that Fabulous created and tried altering his xml file for my theme but got an error from meta morph.
Sent from my DROIDX using XDA App
I'll give ninja a try, but I'll be damned if I want to reflash this thing if it hoses up again.
There's a great tutorial on how to Metamorph HERE.
I've found that editing the xml's of other themes usually confuses the app and causes an error when you try to unzip. I think it's a name mismatch thing or something. You can manually unzip it and then just use "Apply Existing". This has always worked for me.
Update on the NinjaMorph approach, it still causes everything to Force Close. I swear this phone is evil.
I don't know how you did it, but this is making me an angry person.
erishasnobattery said:
Update on the NinjaMorph approach, it still causes everything to Force Close. I swear this phone is evil.
I don't know how you did it, but this is making me an angry person.
Click to expand...
Click to collapse
I really don't know much about theming, and even less about metamorph. I stumbled through using Ninjamorph to replace the drop down notification panel (wanted transparent) and it worked just fine on Rubix 1.0
That's all I've tried to do though.
erishasnobattery said:
I'll give ninja a try, but I'll be damned if I want to reflash this thing if it hoses up again.
There's a great tutorial on how to Metamorph HERE.
I've found that editing the xml's of other themes usually confuses the app and causes an error when you try to unzip. I think it's a name mismatch thing or something. You can manually unzip it and then just use "Apply Existing". This has always worked for me.
Click to expand...
Click to collapse
Make a nandroid backup. If anything goes wrong, just to an advanced restore of /system only. You'll be back up and running within 5 minutes.
Sent from my DROIDX using Tapatalk
Zaphod-Beeblebrox said:
I really don't know much about theming, and even less about metamorph. I stumbled through using Ninjamorph to replace the drop down notification panel (wanted transparent) and it worked just fine on Rubix 1.0
That's all I've tried to do though.
Click to expand...
Click to collapse
Yeah, I was able to replace the pull-down as well, but anything in the status bar itself is causing nightmares, I don't know why, as it's the same .apk. Got me. I'll fiddle.
Man- I am sorry about that bro. Ninja morph was all good for me. Didn't cause any problems. I guess I should have issued that standard...
"I take no responsibility blah blah blah..."
Hope I didn't cause you to much grief. I wonder why it would work for some and not for others? I used the original images from rubix1 framework-res. Is that where you said you pulled your images from?
Just curious.
thepolishguy said:
Man- I am sorry about that bro. Ninja morph was all good for me. Didn't cause any problems. I guess I should have issued that standard...
"I take no responsibility blah blah blah..."
Hope I didn't cause you to much grief. I wonder why it would work for some and not for others? I used the original images from rubix1 framework-res. Is that where you said you pulled your images from?
Just curious.
Click to expand...
Click to collapse
They were actually from Incognito, which I can flash over Rubix with no issues, but I'm not a fan of the whole theme, just a few of the icons and what not. I'm bored at work today, so I'll just continue trying to screw it up until it works.
I edit the framework-res on most ROMs I use as I like the round clock myself. That said I've found the best wya to cause the least headaches is to pull the framework-res.apk from the ROM you are going to install. Then using 7-zip open the framewor-res.apk ( don't extract or decomplie it) and just drop the *.png's files in the /res/drawable-hdpi folder. Once done closeout of 7-zip. Then double click in the *.zip of the ROM I'm going to use and drop the now edited framework-res.apk into the frameowrk folder the ROM. All said and done put the updated/edited ROM on the sdcard of the device and away you go to install it.
Example currently I'm running a mix of Tranqulitiy 2.3.8a along with the Incognito theme in orange and a modified framerwork-res.apk. Most of the framework is still P3's stuff but I put the round clock in his framework-res along with all the edited files from the Orange frameowrk-res.apk of the Incognito theme so it matches.

[MOD]*solved* Kill full battery popups/fix for apps that close on low battery level

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

Categories

Resources