deodexed files deleted, can i use odexed? - Droid Incredible Q&A, Help & Troubleshooting

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.

Related

Odex vs DeOdex

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

[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] 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.

[Q] Clockworkrecovery no files found

First of all I am a novice when it comes to this sort of thing. I was running Paradigm 2.3.5. Created a clockworkmod backup using version 5.0.x.x (can't remember the exact version). I then wiped data, wiped cache, installed Paradigm 3.1, installed gapps, and booted. Well I decided I wasn't ready to re do everything I have done to my phone and I wanted to go back to my previous backup. I restarted into recovery, but when I attempted a recovery I get no files found. The files are still there if I look through a usb connection. I understand this has something to do with the /0 folder and moving from 4.1 to 4.2 android. I'm not sure what to do here I just want to restore my phone to before all of this mess. I also understand there are other topics on this issue, and I have been looking through them for hours now, but I can't seem to get anything to work. Please help.
Edit: I was able to download a file manager and transfer the clockwork backups into the correct clockwork folder and then restore to my previous rom. I still would like to know if it is possible to flash a new rom without losing all of your files and apps.
ddrawer said:
First of all I am a novice when it comes to this sort of thing. I was running Paradigm 2.3.5. Created a clockworkmod backup using version 5.0.x.x (can't remember the exact version). I then wiped data, wiped cache, installed Paradigm 3.1, installed gapps, and booted. Well I decided I wasn't ready to re do everything I have done to my phone and I wanted to go back to my previous backup. I restarted into recovery, but when I attempted a recovery I get no files found. The files are still there if I look through a usb connection. I understand this has something to do with the /0 folder and moving from 4.1 to 4.2 android. I'm not sure what to do here I just want to restore my phone to before all of this mess. I also understand there are other topics on this issue, and I have been looking through them for hours now, but I can't seem to get anything to work. Please help.
Edit: I was able to download a file manager and transfer the clockwork backups into the correct clockwork folder and then restore to my previous rom. I still would like to know if it is possible to flash a new rom without losing all of your files and apps.
Click to expand...
Click to collapse
You shouldn't lose your files if you wipe unless you wipe sdcard (in a custom recovery). You can save data and apps with titaniumbackup.
Sent from my Galaxy Nexus using XDA Premium HD app
mrgnex said:
You shouldn't lose your files if you wipe unless you wipe sdcard (in a custom recovery). You can save data and apps with titaniumbackup.
Sent from my Galaxy Nexus using XDA Premium HD app
Click to expand...
Click to collapse
Yes I never lost any files they were still on my sdcard, but there was an sdcard\ and an sdcard\0 with duplicate folder except one of the duplicates were empty. So your saying if I do a back up with titaniumbackup then flash a new rom that uses android 4.2.2 or 4.3 I can then restore with titaniumbackup and have all my old data and apps on the new rom?
Do a search on the GNEX Development forum for the current version of CWM. 6.0.4.0 was just posted earlier today.
Sent from my Galaxy Nexus using Tapatalk 2
Sorry to be so annoying with this, and I really appreciate everyones help. To clarify, I just installed CWM 6.0.4.0. If I now make a backup with CWM, clear files/factory reset, clear cache, and flash latest rom, I can then boot and it will be like nothing changed as far as my app configurations and data goes? If not, is there a way to do that? Will titan do that for me?
ddrawer said:
Sorry to be so annoying with this, and I really appreciate everyones help. To clarify, I just installed CWM 6.0.4.0. If I now make a backup with CWM, clear files/factory reset, clear cache, and flash latest rom, I can then boot and it will be like nothing changed as far as my app configurations and data goes? If not, is there a way to do that? Will titan do that for me?
Click to expand...
Click to collapse
Think of CWM as an image bu of your phone. If something messes up when you flash that latest rom, you can restore the bu and all will be back to the way it was pre-flash. TiBU will backup your apps and data, so after you do a clean flash you can restore them. My personal preference for a clean flash is to let the Play Store restore my apps, then use TiBU to restore the data for my user apps. I've found TiBU to be a bit of a crap shoot when it comes to system apps. There's always a bit of work involved with a clean flash, but it's not too much and will usually save some headaches.
Sent from my Nexus 7 using Tapatalk 4
Well this weekend I decided to flash CM 10.2. I backed up to titanium, I backed up to cwm latest version, factory reset, flashed CM 10,2, flashed gapps, booted, play store repopulated my apps. Open titanium backup "no backups found", tell it to detect the backup folder on whole device, no backups found. So I just ran my cwm restore and when I boot I get a whole new error. When I try to browse my files with astro file browser I get "cannot downgrade database from 2 to 1". What is wrong now?
Edit:
I just tried to do another cwm backup because I was going to move around some files through usb, it took forever and then in the end failed because the boot image was messed up. It said something about free space so I deleted all but the most recent cwm backup and then the backup that failed before was able to finish. After doing that I booted again and I was able to browse my files with astro again. So that isn't an issue anymore, but there has got to be something wrong with my file structure that this keeps happening.
I have two 0 folders, is that normal. From root I have storage\sdcard0\0\0 and that contains my data from before I started any of this flashing from 4.1. storage\sdcard0\0 has duplicate folders of storage\sdcard0\0\0 but they are empty. There is also a folder called sdcard in the root folder. So obviously there is a huge mess here. Is there a tool I can run to clean it up, or can someone tell me how the file structure is supposed to be so I can just move things back the the way it should be.
Edit 2:
I ended up copying the files in the deepest 0 folders out to the 0 folder above them then removing the deepest 0 folder. I now have sdcard\0 which only has a clockworkmod folder with a recovery file in it, and storage\sdcard0\0 which when I go into the 0 folder I get routed to sdcard\0. Everything seems to be working fine still. I'm thinking about just combining the sdcard0 with the sdcard and removing the sdcard0 since I'm currently on android 4.1. Then with everything cleaned up I might give it another go.

Categories

Resources