Odex vs DeOdex - EVO 4G Q&A, Help & Troubleshooting

I have researched a little bit on the subject, but I am still confused about the purpose of DeOdexing. Correct me if I am wrong, but doesn't DeOdexing decompile apks and allow for modification of apks? Why do some roms use a deodex while other use the default odex?
Also more importantly, if I were to flash a deodex rom, could I revert back to odex if I were to make a nandroid backup (prior to flashing) and restoring from the backup (or does this make a permanent change in the file structure)?
Sorry if I am way off basis on my interpretations of odex vs deodex, but this is all new to me.
Thank You,
RTC

Pretty sure I know this...
Deodexed ROMs allow the developer to more easily customize the phone interface.
For example, if you want to change icons or application configuration files. They are not packaged up in a deoxed rom. This allows them to be edited after the ROM is distributed.
There are alot of rom modifications that can only be flashed overtop of a deoxed rom. This is because they need to edit the system files that are packaged in a odex rom. This is where you have to pay attention.
You should not have to do a nandroid backup to flash between odexed and deodexed roms. When you flash a rom you are basically overwriting the system. A nandroid backup is probably overkill, but it will definitely work. The more nand bakups the better.

amw2320 said:
You should not have to do a nandroid backup to flash between odexed and deodexed roms. When you flash a rom you are basically overwriting the system. A nandroid backup is probably overkill, but it will definitely work. The more nand bakups the better.
Click to expand...
Click to collapse
he doesn't want to flash, quite the oposite he wants to NOT flash.
and yes, you can, while you deodex your phone, your original apks and it's odex files can be backed up, in fact it's a sugested step if not required, you can use those files later to restore your odexed apks.

WarDrake said:
he doesn't want to flash, quite the oposite he wants to NOT flash.
and yes, you can, while you deodex your phone, your original apks and it's odex files can be backed up, in fact it's a sugested step if not required, you can use those files later to restore your odexed apks.
Click to expand...
Click to collapse
Holy freaking necro, can people not read post dates, this thread is from july, around the time the evo was first released.
Sent from my Evo 4G using Tapatalk

Related

deodexed files deleted, can i use odexed?

So i put in a stock froyo rom that was deodexed. I originally had a rooted froyou that i pulled tons of .apk's and odex's out of /system/app and stored on my sdcard. When I put in my deodexed rom, i went in to /system/app and deleted all the .apk's that i had backed up from my other rom. It then dawned on me that maybe these were different than the ones i backed up since they didnt have odex files. Am i messed up? Will I be able to use my backed up files or do i need to reinstall to get the deodexed files?
Ya, I have a similar question and no one seems to know the answer. I want to reinstall some apps that have an apk and odex.

[Q] ? ROM flashing, deodexing, & Titanium ?

Currently stock 2.2 (3.29x), odexed ROM, rooted.
Questions:
1) Would this allow me to manually deodex my phone:
http://www.droidxforums.com/forum/droid-x-themes/4620-how-manually-deodex-your-phone.html
2) If I made full backups using Titanium from my odexed, stock ROM, can I restore those apps and data back onto a deodexed ROM?
3) When I flash a new ROM, I gather most of them will wipe all the apps and files from my phone. Is that correct? Under what condition will a new ROM flash NOT wipe the data? RUUs? I'm asking because I know 3.30x is coming.
4) When someone takes the release OTA 3.3x, root it, and deodex it, can I flash it over my stock odexed ROM and not lose any apps/data, as well as have everything work?
Thank you!
Bump--will someone please provide some guidance?
Another question: If I restore apps and data from one phone to another, with both phones operating (using the same gmail account), will it cause a problem?
I was wondering if Android apps install with unique IDs that would cause confusion/conflict between devices.
Thanks.
Trying again in hopes that I get some answers, in particular, #1. If I can manually deodex my phone with the stock ROM, I won't have to rebuild everything.
Later, I presume, I can just update using a deodexed/rooted RUU without losing anything?
snovvman said:
Currently stock 2.2 (3.29x), odexed ROM, rooted.
Questions:
1) Would this allow me to manually deodex my phone:
http://www.droidxforums.com/forum/droid-x-themes/4620-how-manually-deodex-your-phone.html
2) If I made full backups using Titanium from my odexed, stock ROM, can I restore those apps and data back onto a deodexed ROM?
3) When I flash a new ROM, I gather most of them will wipe all the apps and files from my phone. Is that correct? Under what condition will a new ROM flash NOT wipe the data? RUUs? I'm asking because I know 3.30x is coming.
4) When someone takes the release OTA 3.3x, root it, and deodex it, can I flash it over my stock odexed ROM and not lose any apps/data, as well as have everything work?
Thank you!
Click to expand...
Click to collapse
1.) No, that was made for a different phone and if you try you will get bootloops.
http://forum.xda-developers.com/showthread.php?t=795104
2.) Yes. I've done it going from Stock 3.29 to Myn's rom.
3.) You can flash any rom over any other rom and retain your data.
It does however cause major compatibly problems as most roms are designed differently.
You can just flash over an updated version of the same rom though.
i.e. Going from version 1 to version 2 of the same rom.
Ruu's will wipe everything back to stock. (and un-root I think.)
and 3.30 won't be an OTA it is only being shipped on new phones because they have a different hardware that requires the changes in 3.30.
If everything is stock you should be able to flash it over your 3.29 rom.
4.) I am not sure on this. Just make a Nandroid backup and try it.
If it bootloops or doesn't work, just boot to recovery and restore you Nand.
Nandroid Backup before you attempt ANYTHING.
xNotta said:
1.) No, that was made for a different phone and if you try you will get bootloops.
http://forum.xda-developers.com/showthread.php?t=795104
2.) Yes. I've done it going from Stock 3.29 to Myn's rom.
3.) You can flash any rom over any other rom and retain your data.
It does however cause major compatibly problems as most roms are designed differently.
You can just flash over an updated version of the same rom though.
i.e. Going from version 1 to version 2 of the same rom.
Ruu's will wipe everything back to stock. (and un-root I think.)
and 3.30 won't be an OTA it is only being shipped on new phones because they have a different hardware that requires the changes in 3.30.
If everything is stock you should be able to flash it over your 3.29 rom.
4.) I am not sure on this. Just make a Nandroid backup and try it.
If it bootloops or doesn't work, just boot to recovery and restore you Nand.
Nandroid Backup before you attempt ANYTHING.
Click to expand...
Click to collapse
Thanks so much for your reply. I read your thread on #1, subscribed, in hoping that there may be a solution. I'm confused by your response #3, and how it relates to post #3 on the thread you cited. I thought I read that you wanted to manually deodex because you don't want to re-set thing up? If a ROM flash (not RUU) will simply overlay, why would you need to re-set thing up?
A couple of follow ups--If I make a full backup using Ti-Backup from an odexed/OE ROM, doesn't the odex files get backed up with it? So when I restore onto a deodexed ROM, wouldn't that cause a problem?
I'm in the same boat as you. I want to flash to the new 3.30 dodexed ROM so I can remove some taskbar icons (and get the newer ROM), but I don't want to re-setup everything I have done with my OE Evo ROM.
But, if I understand you, I CAN flash the 3.30/deodexed/rooted ROM over my OE 3.29 odexed ROM and everything will remain?
Thanks again! (and for the Nandroid reminder too)
Edit:
I see why this won't work--it's an RUU, therefore it will wipe?
[Supersonic RUU 3.30.651.2 | Kernel-Build149] - Flashable Zips - Odex and Deodex Ver.
snovvman said:
I thought I read that you wanted to manually deodex because you don't want to re-set thing up? If a ROM flash (not RUU) will simply overlay, why would you need to re-set thing up?
Click to expand...
Click to collapse
In theory flashing over a similar rom should not cause a problem since all the files are the same.
So if that's right, you wouldn't loose any of your settings since it would kind of be like an upgrade.
But that's a good point. I didn't even think to just flash a DeOdex'd version of the same rom over my Odex'd rom.
The thing that stopped me from successfully de-odexing my rom was the framework-res.apk, any modification of the .xml's in that file would prevent the phone from booting. So I don't know if that will cause a problem if you flash the De-Odex'd rom on top.
Titanium Backup(TiBu) actually restores everything like home screen layouts, ringtones and settings and the donate version has hypershell that makes it so you dont have to click install on every app.
snovvman said:
If I make a full backup using Ti-Backup from an odexed/OE ROM, doesn't the odex files get backed up with it? So when I restore onto a deodexed ROM, wouldn't that cause a problem?
Click to expand...
Click to collapse
I can't be completely sure, but I wouldn't try restoring system apps.
When I switched to a DeOdexed rom I went though every backup and didn't restore any of the system apps that would have still been Odex'd.
But I imagine TiBu would just replace those system files with the original Odex'd ones which kind of defeats the idea of DeOdex-ing, lol.
snovvman said:
But, if I understand you, I CAN flash the 3.30/deodexed/rooted ROM over my OE 3.29 odexed ROM and everything will remain?
Click to expand...
Click to collapse
I think if you do that you would end up with DeOdex'd system apps but you would have to go though and delete the .odex files from /system/apps/.
It might not even work flashing a DeOdex'd rom over an Odex'd rom.
If it does work, your data should still be there.
snovvman said:
I see why this won't work--it's an RUU, therefore it will wipe?
[Supersonic RUU 3.30.651.2 | Kernel-Build149] - Flashable Zips - Odex and Deodex Ver.
Click to expand...
Click to collapse
That is actually the rom extracted from the RUU.
So a wipe is probably recomended, but I don't think rom's touch the part of the phone where our settings are stored so it shouldn't wipe. (if it works)
http://shipped-roms.com/shipped/Supersonic/<-- that's the official RUU files, but they will reset your recovery back to stock and probably remove root.
That's going to be a really long post, haha. xD
Anyways, I would say do a Nandroid Backup or two (just in case) and wipe data, cache, and dalvik and flash the 3.30 rom .zip that was in the link you posted.
Then use TiBu to restore everything with the exception of the apps with red names, as those are system apps.
You need to restart you phone after TiBu finishes restoring.
You can always go back to your original nand backup if it doesn't work out.
I was reluctant to leave stock but once you try a better rom you wonder why you didn't switch earlier.
Hopefully someone with more experience can add to what I missed.
Thank you again for taking the time to reply.
Is it true that only system apps are odexed? What about market applications? I understand the concept of not restoring (via TiBu) system apps, but is it possible that there are other applications use the odex file?
I'm curious whether the state of odex/deodex is a system-wide property, where, if the system (phone) is deodexed, new installed are laid down as deodexed, and that would be the oppsite to be true for odexed phones?
When TiBu backs up an app that is odexed, does it backup both files and later try to restore both, even onto a deodexed system?
I presume it would be okay to restore "data only" on the system apps (going from odex to deodex)?
Lastly, not that I'd want to, I presume running deodexed precludes any possibility of OTA updates? Also, what about system app updates, like the recent Visual Voicemail update? Will it get installed as odexed because it is OE?

[Q] Do I still need the files

I was wondering if I make a backup through clockwork and I need to revert back to the backup, do I need the files on my sd card that are included in the backup.
For example I root my phone and use a certain kernel and rom. I make a backup after this is installed. Can I remove the rom and kernel from my sd card or does it need to stay on there?
Thanks.
Yeah you can remove the rom and kernel .Zip's and everything will be fine..... as long as you keep all the files that the backup made (the .md5 and .img's)
theduce102 said:
Yeah you can remove the rom and kernel .Zip's and everything will be fine..... as long as you keep all the files that the backup made (the .md5 and .img's)
Click to expand...
Click to collapse
Yea I planned on keeping those, was just going to delete some of the zip files.
Thanks.

[Q] Deodexed flashed over stock rooted Odexed rom?

Hi all.
Perhaps this is a newbie query but here you go.
I've been flashing stock rooted OTA's from the beginning, and always chose Odexed over Deodexed I suppose because of file size. Now, I'm looking to diversify and have the ability to theme etc.
Can I flash a deodexed over an odexed rooted 4.53.651.1 OTA with out data loss?
I assume I can just wipe dalvik, and cache then apply yes?
The specific thread I'm referring to is here: http://forum.xda-developers.com/showpost.php?p=17642327&postcount=1
As I'd like to incorporate this with out flashing an entirely new rom. I'm cool with stock rooted goodness.
Thanks!
Best bet is to do a nandroid backup and try it out. If you have issues, just restore your backup.
If it doesn't work out for you, you can always just backup everything you need with Titanium Backup and an sms backup app if you want to save your messages. Then do a full wipe and flash the deodexed rom. The only data you will not be able to restore is your homescreen. It may restore, but widgets will not load.
I have found that it always helps my phone to do a full wipe every few weeks, even though I've only flashed updates of the same rom for the past few months. I could get away without wiping data, but I like a fresh start every now and then. Things run more smoothly, and I cut down drastically on my number of useless apps by not batch restoring everything.
Sent from my PC36100 using Tapatalk

[Q] Back up .Zip files

Easy question. Do I need to keep the original zip files on my phone in order for my backup/restore (s) to work correctly, or can I always restore my ROM's without the orginal files? Just looking to save space, I have 3 great ROM's now, Codename Droid, Gummy Nex & FoxHound. I change em up often.
If you are talking about the original install files you can delete them if you already have an nandroid of the ROM.
the .zip is just the installer. Once you have a backup made you will be able to restore that just fine.

Categories

Resources