Related
Hi, I would like to De-Odex the rom I currently have on my phone.
Is there an easy way to do this?
I've read:
http://www.droidforums.net/forum/xeudoxus/47283-release-xultimate.html
and
http://www.droidxforums.com/forum/droid-x-themes/4620-how-manually-deodex-your-phone.html (there is also a post about this on here)
The xUltimate tool will not work for me, so I need another option.
Phone: HTC Evo
ROM: Stock 3.29 OTA
Rooted (ofc)
Thanks for the help.
Sorry if this is no help, but a deodexed version of the 3.29 OTA is posted somewhere in the dev section. Is there a particular reason why you want to deodex it yourself?
Sent from my PC36100 using XDA App
TheMagicalSock said:
Sorry if this is no help, but a deodexed version of the 3.29 OTA is posted somewhere in the dev section. Is there a particular reason why you want to deodex it yourself?
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
I've been switching between roms but I keep coming back to my original stock one. It's still odex'd and I would like to theme the battery icon on the status bar without having to set everything back up on a fresh rom. Since it reads half when 80% of my battery is remaining.
Thanks for the quick response.
Sent from my Evo using XDA App.
and you said this didnt work for you?
i didnt even know you could deodex your own rom!
going to try this soon!
Max_Pain said:
and you said this didnt work for you?
i didnt even know you could deodex your own rom!
going to try this soon!
Click to expand...
Click to collapse
It wasn't that it didn't work.
I just got an error with Java, not sure how to fix it. Some said to re install java, but i've installed JRE and JDK from 5u20 to 6u21 (32 and 64 bit). Everything I tried gave the same error.
I am going to try asking on their forum and see if they can tell me what I did wrong.
I have a feeling it has to do with the 3.29 OTA update. :-/
Good luck and if you get it to work please let me know your setup.
and if you can't run step 3 let me know... that way I am not the only one to seem that crazy.
option 1 and 2 just adb pulls your /system/apps and your framework.
just got stuck starting option 3:
Starting AccountSyncManager.odex
*Deodexing...
Error occurred while loading boot class path files. Aborting.
org.jf.dexlib.Code.Analysis.ClassPath$ClassNotFoundException....
lower it says
at org.jf.baksmali.baksmali.dissambleDexFile(baksmali.java:103)
and it just gives some more errors until i close it down
i was sooo excited to get this done!
Ahhh! I'll see what I can find out on their forums.
Despite the tutorial saying "Manually De-Odex Your Phone" I think it may be just for droid phones. It was posted in the Moto Droid sections of the forums.
Here is the error I was getting:
Code:
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.NullPointerException
at java.util.Properties$LineReader.readLine(Unknown Source)
at java.util.Properties.load0(Unknown Source)
at java.util.Properties.load(Unknown Source)
at org.jf.baksmali.main.<clinit>(main.java:69)
Could not find the main class: org.jf.baksmali.main. Program will exit.
Press any key to continue . . .
dang it...
i just updated my java and nothing, still same error. well let me know what they say. i was about to make an account to post over there but i'll let you do it then.
keep me updated!
Max_Pain said:
dang it...
i just updated my java and nothing, still same error. well let me know what they say. i was about to make an account to post over there but i'll let you do it then.
keep me updated!
Click to expand...
Click to collapse
If you want to add anything my post is located:
http://www.droidforums.net/forum/xeudoxus/85223-xultimate-errors.html
Both our problems have "org.jf.baksmali" involved.
Hopefully we'll have some answers soon.
well i ran a test and everything said pass, including the odex and deodex. i installed the latest java, and same problem. i had the phone originally as mass storage, so i tried under charge only, and still same problem.
i really hope we get a solution to this
I did some more reading and it seems that app is designed specifically for droid x phones.
I'm now going to try a more hands on approach using avabox...will update tonight.
Swyped from an HTC Evo on MetroPCS...
Max_Pain said:
I did some more reading and it seems that app is designed specifically for droid x phones.
I'm now going to try a more hands on approach using avabox...will update tonight.
Swyped from an HTC Evo on MetroPCS...
Click to expand...
Click to collapse
Were you able to get it DeOdexed?
I found this after some searching... It seems to be the LONG way to deodex an apk. It was written in 2009 so idk how reliable it will be.
http://androidnetwork.org/forum/viewtopic.php?f=11&t=55
Edit: Link to Avabox: http://forum.xda-developers.com/showthread.php?t=697459
[UPDATE] I tried Avabox and it de-odexed all of the files that I adb pulled. I copied the De-Odexed files back to their respective folder on the /system/, and deleted "rm /system/app/*.odex" (Removing all the .odex files) and rebooted.
I got stuck on the white "HTC Evo 4G" screen and could not get passed it.
I am not sure what I messed up. Maybe I need to resign the files? I'll try that tomorrow.
Let me know how your attempt went. :]
When I left for school I left the script deodexing my app folder...it seems to have done the job and there were no errors. It's doing the process for the framework files now.
Once I move it over to the phone we 'll see if it worked...
I'll update here when I find out...
Swyped from an HTC Evo on MetroPCS...
i just tried that too and i got stock in a bootloop.
the avabox script does deodex all the app files. it doesn't do that for the framework files...it seems it'll only deodex .apk files.
anyways, i deleted everything from my /system/app folder and then pushed over the deodexed apks...i also did this for the two apk files from system/framework and the phone did the bootloop thing. so i put back the original /system/framework files, effectively only leaving changed the contents of /framework/app/ and still, bootlooping.
i'm restoring right now...i'll try it some more at another time.
let me know if you figure it out!
I was reading some of the comments on this thread(http://forum.xda-developers.com/showthread.php?t=598026) They we're saying about problems with de-odexing the framework.
Do we need to resign system apps before we push them back?
I am optimizing my apks now, going to batch resign then try putting just the apks back on.
Well I messages avalaunchmods asking the same thing...if anyone knows it should be him...
Update if you get it working please!
Swyped from an HTC Evo on MetroPCS...
Unfortunately, I still don't have any good news. :[
I tried resigning the de-odexed apk's and replacing the ones on my phone.
This got stuck at the white HTC Evo 4G screen.
This failed
Then I optimized, signed, and zipaligned.
This threw me into an actual boot loop. (I was excited... It's the first boot loop i've gotten.)
This failed.
Here is some semi-less-bad news.
I used http://circle.glx.nl/ to make a flashable update.zip for theme-ing. I Flashed it with success and was able to get to the lock screen. Sense UI along with just about every other system app kept force closing.
But I was able to successfully (even though I got FC's) theme and boot using that kitchen.
I am going to mess around with the different settings there and see if I can atleast theme my phone.
Any luck with your attempts?
i was at school all day - no news from me. this is very discouraging though.
i'm surprised nobody else has chimed in! considering how many people are making and releasing roms, some people must know what's going on here
Good news (kinda)
I was able to theme my framework-res.apk without any errors or FC's.
I didn't do anything to De-Odex it but it accepted the theme when I manually edited it.
There must be an xml that scripts how the battery is displaying %'s
since I have 89% of my battery remaining but the themed battery is showing 80%.
I'll dig around and see where it is and add it to my next framework recompile.
We're you interested in just themeing or the whole de-odexing (apps & framework)
If you want to theme it i'll write up a decent tutorial on what I did.
If not I'll write up a quick tutorial for the next root newbie who wants to theme.
Going to test run it and make sure I didn't mess much up.
Edit3: The bad, it would appear that you can't modify the .xml's of the framework. You can only change the pictures.
So the battery wont be able to have the exact %.
Modifying of any .xml leads me to a boot loop.
Tips are appreciated on fixing this.
I'll keep trying.
so here is what i've learned.
i had modified both .com.htc.resources and framework-res before. those files, at least in my rom, are not odexed. everything else in the framework folder is a mix of files, .jar files and other formats, including services.jar, which is odexed. that's why if we change the services.jar file, without the phone being deodexed, it wont work.
that's why i want to deodex my rom. i have too many changes already and dont want to re-do them in another, deodexed rom.
my main interest in deodexing the rom is to have the working battery percentage on top (which used to work on THIS rom before, without deodexing???) and to have a transparent notification tray.
and from there being able to make any other changes as they come up...
i'll see when i have some more time to try out other options, but chances are you will have time before me, so keep updating!
Ive been running the latest fresh (3.5.0.1) on my EVO 4G with no problems, but i wanted to change the battery icon and possibly the notification icons. I tried using UOT (uot . dakra . lt/) to do this, and it doesnt seem to work.
I get stuck in an infinite boot loop with the fresh splash screen. Occasionally it will boot to my homescreen for a second, when i can see the changed icons in the notification bar, but before i have a chance to un-lock the screen, it goes back to the FRESH splash boot up screen...over and over. Only a battery pull stops it.
Ive tried both amend and edify scripting, and am getting the framework-res.apk files from the original ROM .zip file. I am flashing using amon-ra
Have any of you tried applying a theme like this to your Evos running FRESH? And if you were successful, what did you do?
I searched the forums for this for the last two days or so and have not found any specific posts or topics on this, i am sorry in advance if it is a repeat question....
Thanks in advance
Before you get flamed for posting in the wrong forum...
Have you tried wiping cache/dalvik after replacing your frame-res.apk?
I have used that kitchen successfully on Fresh before, so it should work.
If you search through my posts, there is a modified .apk for fresh with a battery circle (I can't repost now since I'm not at my comp).
fua1 said:
Before you get flamed for posting in the wrong forum...
Have you tried wiping cache/dalvik after replacing your frame-res.apk?
I have used that kitchen successfully on Fresh before, so it should work.
If you search through my posts, there is a modified .apk for fresh with a battery circle (I can't repost now since I'm not at my comp).
Click to expand...
Click to collapse
I didn't try that yet, perhaps that is where my problems lie. Thanks!
What forum should i be posting to then? i tried in the DEV forum for UOT but XDA wont let me contribute there until i post more elsewhere.
Mods feel free to remove thread if its in the wrong place
npsiwak said:
I didn't try that yet, perhaps that is where my problems lie. Thanks!
What forum should i be posting to then? i tried in the DEV forum for UOT but XDA wont let me contribute there until i post more elsewhere.
Mods feel free to remove thread if its in the wrong place
Click to expand...
Click to collapse
Technically, questions should go in the Q&A section. But you are asking about themes, and this is the theme section. Some people get pretty intense about it, a little too much if you ask me.
Anyway, hope the wiping helps.
npsiwak said:
Ive been running the latest fresh (3.5.0.1) on my EVO 4G with no problems, but i wanted to change the battery icon and possibly the notification icons. I tried using UOT (uot . dakra . lt/) to do this, and it doesnt seem to work.
I get stuck in an infinite boot loop with the fresh splash screen. Occasionally it will boot to my homescreen for a second, when i can see the changed icons in the notification bar, but before i have a chance to un-lock the screen, it goes back to the FRESH splash boot up screen...over and over. Only a battery pull stops it.
Ive tried both amend and edify scripting, and am getting the framework-res.apk files from the original ROM .zip file. I am flashing using amon-ra
Have any of you tried applying a theme like this to your Evos running FRESH? And if you were successful, what did you do?
I searched the forums for this for the last two days or so and have not found any specific posts or topics on this, i am sorry in advance if it is a repeat question....
Thanks in advance
Click to expand...
Click to collapse
Have any other mods been flashed to it before you tried this? That may be the problem because you are using the original framework res not the modified one
Sent from my PC36100 using XDA App
fdb8231 said:
Have any other mods been flashed to it before you tried this? That may be the problem because you are using the original framework res not the modified one
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
no mods flashed before it, just using the basic FRESH 3.5.0.1 ROM. Tried it again with the wiping of cache and davilik and it still gets stuck in a boot loop at the splash screen
I tried toggling verifications, as well as amend and edify scripting. Could a particular mod i was attempting to use cause the issue? (IE. some of the mod changes are not compatable with FRESH)
I will try with a simple change like only the battery icon to see if it works
I am in the same boat. Let me know if you figure it out.
I was wondering if somebody could modify this metamorph for me so it works with my DINC? I'm running Skyraider 4.0 (will be running 4.1 when I get the time to flash it...don't know if there will be much difference between the 2 or not...).
http://www.mediafire.com/?l34p6v7hsq5hhds
I tried using MM as is, but its trying to patch the wrong file I think, so it's not working properly. When I reboot, it just stays my normal signal bars. Wondering if somebody can get it to work?
Thanks in advance, I really appreciate it!
First off, do you you know where the files that you need to change are actually located? If not, where is this current MM theme trying to change them. Depending on the rom, signal bars are usually either located in system/app/SystemUI.apk or system/framework/framework-Res.apk
*It's IncREDible*
Ok, I went ahead and took a look at the theme you wanted. Looks like it was looking to change the files in the framework-res.apk. I changed the theme control file and the name of the file inside the theme. I'll post it here for you to try. Nandroid before you try this. You may get a SystemUI.apk Force Close when you apply this. Either try to get to the reboot menu, or just pull the battery and reboot the phone. Not sure how I can fix force closes, but it seems to happen to all the themes I put together. Dunno why.
Another thing that might need to be changed about this theme, it is only looking to change 5 files. So you may notice that it will show your old signal bars at some moments, and then the new circle signals at others. Let me know if this is the case and I can try to add the files that will need to be changed for all of them. Some ROMs are different so this may take trial and error to get it right for what you are running.
I hope this works for you Good luck.
Haven't tried to apply it yet; haven't had the time. Looked in my system/app folder and I don't see that I have even have a SystemUI.apk in there? Using root explorer to try and view it.
Ok, I downloaded Skyraider 4.1 and looked around for the signal files you want to change. Are you trying to change the 3g icons or the signal icons? It looks like both the signal icon and the 3g icons are located in the framework-res.apk for this particular ROM. So I went ahead and modified the theme again for that ROM. It should hopefully work.
Please let me know if it works and if I can help further.
Ok, tried applying the icon with MM, and rebooted. Didn't work; still has the normal GB signal icon.
And yeah, I'm not trying to replace the 3G icon; just the signal bars.
Hmm. Ok. I'll see if I can just build a MM theme from scratch. Actually, before I do that check one thing for me. Look on your sdcard for a folder named Android Themes. Then look for the folder of the theme we are trying to apply. See what is in that folder. If it is only the XML file. Then I will tell you what you need to do next. If the framework-Res folder is in there and all the icon files are inside that, then I will go ahead a rebuild the theme from scratch. Let me know when you can.
*It's IncREDible*
It has the framework-res folder as well.
It wouldn't be under the htc-resources apk would it?
Ok there are signal icons in the com.htc.resources apk. There are quite a few of them though. Can you take a screenshot and post it so I can see which icons are showing in your status bar? We'll get this figured out.
Using the stock GB icons that came with SR4.1. Here's the screenshot tho:
Edit: Just something that crossed my mind... I think the SD card I'm using is still in FAT, and not FAT32...that wouldn't make a difference, would it? I know it does for flashing, since it has to flash zips from fat32 format; not sure if that matters for MM or not since it's directly modifying the system.
Thanks for the help btw, really appreciate it.
Ok. I fixed the theme last night. I'll upload it later after I get out of school. I figured those were the icons that the ROM was using so that is what I had the theme change.
*It's IncREDible*
Thanks again, I appreciate it! I'll check it out probably after I get home from work, unless I do it over my break or something lol.
Hopefully this works. Let me know.
Just tried it. Applied it, got a some FC's and phone wigged out till I hit the Home button then my UI reloaded. Signal icons were gone totally. Rebooted my phone, still nothing. Shut down totally and turned back on and still no-go. Not sure which files its supposed to be...
Is there some other reference that needs to be changed to tell it to use those files?
Not sure why its not working. You might have better luck using Ninja Morph to change what you want. I made a step by step guide for using it if you wanna try.
*It's IncREDible*
Ok, I downloaded a theme pack for SR4.0, and it is a flashable one that changes both the framework-res.apk and the com.htc.resources.apk
Edit: Checked out another one by ACD168, for 4.1 that does stock icons... and it changes both of them as well.
Edit 2: Ok, I pulled both APK's from my phone, and the images are the modified versions... it must be pulling it from somewhere else then? Or using something else?
Edit 3: ok. Used root explorer to check out the apk's while on my phone, and each one has 2 res folders inside of them... I'm quite confused now... unless I should push them through adb while in recovery so it takes effect?
OK! I Got it to work!
Turns out the files that it was using were in the com.htc.resources.apk, but we were changing the wrong ones. The right ones are:
cdma_sys_4signal_x.png where the x is 0-4. I'm not sure where the null one is (the "no service" icon... i'll have to do some more digging for that one).
If anybody wants the new MM, I can upload it.
I may do some more changing, such as making it into a 6-bar signal one, and maybe changing the color from blue to green to match my other icons.
Glad you got it working. Amazing what you can do when you know where to look and what to change.
*It's IncREDible*
Haha yeah.. Thanks for the help though man, I appreciate it.
No prob. I Googled that theme and found the original thread for it. I think someone made a no signal icon. It might be in green. I know they did the main signal icons in red. That is what I'm using.
http://www.droidforums.net/forum/droid-themes/56592-3g-round-signal-icon.html
*It's IncREDible*
Ok, i changed up my soft keys a few times... as per this thread...
http://forum.xda-developers.com/showthread.php?t=1413582
Here is my problem... I changed them a few times with no problem. I even made my own and it worked fine... then after I changed it maybe a 6th time, the keys just vanished all together. I'm not talking that they are just blacked out, I mean the screen has streached out the full 4.65" and there is no slot for the keys. I have no way to navigate around.
I followed the "Easy Breezy Method - Using MetaMorph". I worked every time, except the last one. I have tried reapplying ones i knew worked, but no joy.
ANY ideas???
GinoSylum said:
Ok, i changed up my soft keys a few times... as per this thread...
http://forum.xda-developers.com/showthread.php?t=1413582
Here is my problem... I changed them a few times with no problem. I even made my own and it worked fine... then after I changed it maybe a 6th time, the keys just vanished all together. I'm not talking that they are just blacked out, I mean the screen has streached out the full 4.65" and there is no slot for the keys. I have no way to navigate around.
I followed the "Easy Breezy Method - Using MetaMorph". I worked every time, except the last one. I have tried reapplying ones i knew worked, but no joy.
ANY ideas???
Click to expand...
Click to collapse
Restore your last nandroid backup? If you didn't make one, then I'd run an adb backup and flash your ROM again:
Code:
adb backup -apk -nosystem -all -f /backup/backup.ab
Using -nosystem means your SystemUI.apk (which is probably hosed) won't be backed up (although I doubt it would back that up anyway). Then, restore using:
Code:
adb restore /backup/backup.ab
Curious, what was the last one you flashed?
I didn't make a backup because i'm running stock... stupid me..
The one i flashed that killed it was "grungetext"
I'm going to try flashing with the "Automatic Method - Images using Softkey Modder" ... that one doesn't require much from the phone itself... lets see what happens..
ok.. well doing the "Automatic Method - Images using Softkey Modder " didn't work.. i think i broke it...
Just noticed i don't have a notification bar either...
Your SystemUI.apk is borked. Find a stock one from whichever build you are on and push it to /system/app directory.
Metamorph has been very sketchy as it is kind of outdated and is not %100. ALWAYS just push images into apks manually. Its safer and you learn how to theme properly. Takes less time than Metamorph anyways.
Sent from my Galaxy Nexus using XDA App
Just install stock images through fastboot or a new rom..
Sent from my Galaxy Nexus using xda premium
mb02 said:
Your SystemUI.apk is borked. Find a stock one from whichever build you are on and push it to /system/app directory.
Sent from my Galaxy Nexus using XDA App
Click to expand...
Click to collapse
I'm just using the stock 4.0.2 on the Verizon LTE version... can you direct me to where i can find a clean SystemUI.apk and where to put it?
aside from not having a working UI, my phone is exactly the way i want it, i would rather avoid just flashing a new rom and wiping everything out.........
GinoSylum said:
I'm just using the stock 4.0.2 on the Verizon LTE version... can you direct me to where i can find a clean SystemUI.apk and where to put it?
aside from not having a working UI, my phone is exactly the way i want it, i would rather avoid just flashing a new rom and wiping everything out.........
Click to expand...
Click to collapse
I posted my 4.0.2 and 4.0.3 unmodified SystemUI.apk files here yesterday. Let me know if it works for you.
copkay said:
I posted my 4.0.2 and 4.0.3 unmodified SystemUI.apk files here yesterday. Let me know if it works for you.
Click to expand...
Click to collapse
THANK YOU THANK YOU!!
Yes, that worked... all back to normal.. now to get back to messing it up again
Ok - first off, I've done this a few times and searched it to death and I'm still not getting any results. It's probably one of those things that I've just skipped a step somewhere, but I'm going banana sandwich trying to solve it.
Basic change the icon of the Phone.
I know its in either Phone.apk or Contact.apk, so I've changed both by:
1 - 7z method, dropping the new file into the .apk
2 - apk_manager, from extract/rezip all the way to decompile/recompile
3 - akptool, similar to above
I've pushed, rebooted. Cleared cache, rebooted. No luck.
This damn blue phone just will not change. Currently running an old 4.0.2 ROM - LTE.
EDIT: Also tried TelephonyProvider just for giggles to see if it would work - no luck.
Like I said, I'm sure this is something simple, but at this point I'm starting to do more harm just for a SIMPLE change. Any suggestions?
it's within the Contacts.apk and no decompiling is necessary. 7zip will do the trick. i'd flash it, though. but it will work if you just replace that apk with root explorer and reboot.
Yeah - tried that. No luck. Only reason I went that far is because what I usually do did not work. I'm in the process now of starting from square one, going to re-flash ROM.
EDIT: Ok, so I pulled all 3 from /system/app/ and all have the altered image - but still getting blue phone. Anyone know where the heck its pulling the OEM image?
keatre said:
Yeah - tried that. No luck. Only reason I went that far is because what I usually do did not work. I'm in the process now of starting from square one, going to re-flash ROM.
EDIT: Ok, so I pulled all 3 from /system/app/ and all have the altered image - but still getting blue phone. Anyone know where the heck its pulling the OEM image?
Click to expand...
Click to collapse
You sure you're replacing the right image? The phone icon is in the Contacts apk at /res/mipmap-xhdpi. All you have to do is replace that image then push back to your phone
Sent from my Galaxy Nexus using xda premium
It seems MrVirginia has this covered but I'll say this anyway.
Both the phone and contacts/people icons are in the Contacts.apk/res/MipMap-Xhdpi folder, you don't need to decompile (as Virginia stated) as you aren't making any XML or .9.png changes. Just drag the res folder out of the apk and go into the folder path stated and drag the changed res folder back in.
Hope this helps.
-N
Thanks all.
Either I must have missed a step somewhere in there, or I'm a complete idiot (probably both).
I cleared all data, cache, etc.. Reflashed.. Pushed.. It's there now. Who knows. Thanks everyone for the help, though. Cheers.