[Q] what does deodexed rom mean..?? Need help Please - General Questions and Answers

i am very new to flashing and i just want a rom with CRT Off and Glow gesture animation but the problem is they Rom says Deodexed and i have no freaking idea of what it mean... I use a Galaxy S I9000 and its not flashed yet. Please help someone...
Thank you

Deodexed roms have a little bit worse performance, but are easier to mod.
Apps have .odex files which contain some data and optimisations. Deodexing means converting and putting that extra .odex file back into the .apk file.
(google or search for lengthy explanation)
tl:dr
It doesn't really matter which one you flash.

Related

[Q] How to modify a deodexed .zip ROM file?

I wanted to get some insight, direction and perhaps guidance on how to take the existing Deodexed ED2 ROM and get inside and make some edits, remove bloatware, replace Touchwiz with a different launcher etc. I am not looking to build a full blown custom ROM, I am just looking to edit a stock (yet deodexed) ROM to meet my needs.
Any help would be greatly appreciated so I can learn more about this process.
There are two ways you can do it. First way, that is usually a little easier to work with, is to extract the zip file, make the changes you want, and re-zip the whole thing. The other method is to just open the zip file (7zip or similar will make this a little easier) and add/delete stuff as you want. It eliminates the decompress/recompress part, but is a little harder to work with unless you know exactly what you want to do.
As far as figuring out what to remove and such, some files are named in a manner that they are easy to figure out (Mms.apk for example) and other files are not (Dlna.apk is AllShare). If you want to figure out what an APK file is, a good indication is sometimes opening it with say 7zip (they are essentially zip files) and extracting res/drawable-hdpi/icon.png and you can see what the icon is. Astro File Manager can also give you some info on the specific Apks, as can Titanium Backup I believe.
As for replacing things (like the launcher) it is as simple as taking one out and putting another in for most stuff. I will let you know that I had battery drain issues when I removed the stock TWLauncher, but I believe I know how to fix it then. A lot of stuff though, if you are replacing things, you'll want to do 1 or 2 things at a time and also be familiar with logcat as it is an invaluable tool when testing out ROM changes and problems.
Thanks imnuts, I will start to play with a zip file and go from there. As you mentioned the bloatware is in the system folder and not the data folder so perhaps I will just delete the bloat, and install GB Launcher on my phone and make it default so that TW is still there just not in use.
Hi,
a little late, but...
did you actually make this work? I'm trying the exact same thing, but my 4ext recovery always aborts the installation. Do I need to sign it or what is wrong?
Thanks a lot...
Please use the Q&A Forum for questions Thanks
Moving to Q&A

[MOD] Better Smooth Scroll + update.zip for deodexed XXKPQ

Hey, I've found a mod to framework.jar in this thread. Has somebody already tried it? Tomorrow I will try to apply this mod, unless someone tells me that it doesn't work.
EDIT1: Soo, have built the update.zip. I'm creating a nandroid backup. Let's see if it works...
EDIT2: Attached update.zip
I built an update.zip for stock deodexed XXKPQ ROM. I don't know if this also works in other Gingerbread ROM's. My try was based on an modified framework.jar from tarunagg's ICS theme in version 3.
Have fun, but remember: Flash via CWM at own risk!
Tried it... I can't feel any big difference
I wouldn't say no difference. My phone was quite smooth before, but i think it helped a bit.
If tarunagg allows me to publish a update.zip with his update script as base I will upload a cwm flashable file.
Edit: File attached to first post.
Yeah, I said no big difference, but it was my first impression. Now I can feel it more than before, especially when I scroll pages slowly. Thanks for the tip, and of course thanks to AndroidON

[Q] "smali" files on the I727? Can they be edited without Baksmali (Deodex)?

[Q] "smali" files on the I727? Can they be edited without Baksmali (Deodex)?
I've been looking into the coding on this phone for a while. I've made a couple of posts trying to figure out how to get Nfc enabled on this phone with no luck. So I am trying to look into it a bit further myself. I'm learning as I go, but I am trying to compare other phones files (and custom ROM files) with working Nfc with the stock ROM files on the SkyRocket to try and find clues as to which files are needed to start working on this. One thing I notice (difference) is there doesn't seem to be any "smali" files or code on the SkyRocket stock ROM. Can someone please tell me where they are located (I am rooted and use Root Explorer) on the Stock ROM or which files are used in their place?
Thanks.
**Edit**
OK, I've done a little more research and found out the "smali" code in an Odexed ROM is located in the Odexes. In order to work on them I am guessing they would need to be DeOdexed? Or is there a way to view and edit them without Baksmali?
typically bc
an odex file is renamed to class.dex and combined into the same apk
deodexing basically works likethis
every apk needs a set of instructions
thats the odex
so by removing the odex and turning it to a classes.dex
file we can remove the unwanted odex file
and speed up access to the files instructions
opens faster closes and caches faster i do beleive i could be wrong
but i know the general idea

[MODS][KPU] Pack for odexed/deodexed [24/05/12]

Hey guys,
I made these flashable zips to easly get a stock, but yet powerful, ROM.
This is for odexed KPU and deodexed KPU.
If you have any suggestions, leave a message.
Why odexed? Why not.
See this if you are interested in modding odexed apks.
Here the list of mods in this pack (and "how to" if you want to port them to other firmwares): see below for the updates
Lower brightness levels [services.jar, Settings.apk, SystemUI.apk]
Lower autobrightness levels [framework-res.apk]
1% battery mod [framework-res.apk]
AOSP lockscreen without haptic feedback [android.policy.jar, framework.jar]
SMS + No contact limit + No MMS convert + Sent time [Mms.apk]
Added support for LED notifications [services.jar] (this needs CyanogenMod liblights. See below.)
More smooth scroll [framework.jar]
Extended powermenu [framework-res.apk, android.policy.jar] (only "Reboot" option)
Autobrightness doesn't work properly. Basically the sensor determines the current ambient light every Xseconds. If the value is not so different from the previous lux value, it's ignored. That's good because it prevents random brightness changes, however it works well only with the stock values, while the values I set are too close and sometimes the brightness is "stuck". You should do some changes to prevent this: [1], [2]
FYI: the values I set are not that good. If anyone is interested and know how to change them, here is what I'm using now:
Code:
<integer-array name="config_autoBrightnessLevels">
<item>6</item>
<item>22</item>
<item>110</item>
<item>432</item>
<item>684</item>
<item>2780</item>
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>3</item>
<item>20</item>
<item>35</item>
<item>50</item>
<item>110</item>
<item>180</item>
<item>255</item>
</integer-array>
Note: Clear data for Messaging under Settings->Applications->Manage Applications (it won't delete your messages) to make the changes effective. The stock app can only save one date (sent or received), if you need both of them use another app.
Click to expand...
Click to collapse
I changed few things in the theme (I took some images from CyanogenMod 7).
If you don't like some images, see the last part of this post. (I also wrote why I can't add swipe to remove notifications)
No additional apps included, no apps removed, no data wipes, no kernel included, no tweaks.
Downloads:
odexed
KPU-mods-pack.zip
Restore: restore-KPU.zip
deodexed
KPU-mods-pack-deodex.zip
Restore: KPU-restore-deodex.zip
__________________________________
Extended powermenu with Screenshot option - thanks to cybert and for this.
[android.policy.jar, framework-res.apk]
odexed: extended-screenshot.zip
deodexed: extended-screenshot-deodexed.zip
__________________________________
CRT off effect: (enable animations: Settings->Display->Animation)
[framework-res.apk]
odexed/deodexed: crt-off-effect.zip [framework-res.apk]
__________________________________
Incoming Call Ringtone Flip to Mute (thanks to dhiru1602) + No increasing ring (thanks to YG007)
[Phone.apk]
odexed
flip-no-increasing.zip
Restore: flip-no-increasing-restore.zip
deodexed
flip-no-increasing-deodexed.zip
Restore: flip-no-increasing-deodexed-restore.zip
dhiru1602 said:
Sensor Usage
You might notice some Sensor Usage for Phone app. This is quite normal because the Sensors are used to check the Orientation of the phone. This would last only for the duration of the Call Ring. I have checked to see if the sensors are being stopped and It seems to work fine. Let me know if there are any issues, because if there is any issue with the sensors, it might lead to a battery drain.
Click to expand...
Click to collapse
dhiru1602 said:
Note: I have configured the sensor settings to be effective only when the phone is resting on a flat surface with the screen upwards. I have found that this type of configuration is required to prevent issues with phone going mute accidentally when its in your pocket and you receive a call. Unfortunately, I don't receive many calls to practically test it for accuracy. Hope it serves the purpose.
Click to expand...
Click to collapse
__________________________________
Toggle buttons shortcut: thanks to M_J_Nazari and _JKay_ for this.
If you longpress on a toggle button in the notification bar, you'll get to the respective setting page. [SystemUI.apk]
odexed: systemui-shortcut.zip
deodexed: systemui-shortcut-deodexed.zip
Flash the pack to restore the original file
__________________________________
6 Toggle buttons: http://forum.xda-developers.com/showpost.php?p=26461422&postcount=48
__________________________________
Additional zips:
(these should work on every stock rom)
Disable TouchWiz sounds
Sounds disabled: low battery, charger/usb plugged in, battery charged + boot sound (it simply renames some audio files in /system/media/audio/ui/ and /system/etc/):
disable-sounds.zip
Restore: enable-sounds.zip
disable-boot-sound.zip
Restore: enable-boot-sound.zip
Chainfire touchscreen tweaks
More info here. Probably you won't feel any difference
touchscreen-init.d.zip
Restore: remove-touchscreen-init.d.zip (or simply delete /etc/init.d/10touchscreen)
Button LED notifications
More info here. There's no need to use Lightflow, unless you need missed call notifications (Lightflow takes the control of your LEDs, so it's possible that some apps that natively supports LED notifications won't be able to use them).
You need to do a change in the kernel to fully support this feature.
liblights.zip
Restore: restore-liblights.zip
If you want to convert the partitions in ext4, use CF-Root-ext4-v1.3u1-Addon.apk. You can get it from here.
You can easly convert from and to RFS and check filesystem integrity.
IMPORTANT: Make sure you have at least 10MB of free space in /system before the conversion (you can see the amount of free space from ext4 Manager [CF-Root-ext4-v1.3u1-Addon.apk]), otherwise the conversion will fail, but there's no problem, the addon will automatically convert /system in RFS and restore all the files (the other partitions will be converted in ext4).
Click to expand...
Click to collapse
At this pace no one can stop you . Keep going and keep modding
Your the best modder i've seen so far... Thank you for sharing your mods with the Galaxy SL community...
With you skills maybe you can help porting CM9...
cool, may I only port mms.apk to phone (XXKPU) instead of all?
Additional note : when extract file using 7zip found Mms.odex file inside, do require that file to park in /system/app?
Thanks in advance.
u are an assett to this devise..!
i wud love to learn things from u..!!! and i will catch u for sure...dis is ideal.. odex=faster and that too with mods.. stock+fast..
no mods is the only thing dat deterred me from going to kpu.. i will make the leap now..
awwsome work brother..
The most usefull mod i've seen round here in months...clean without useless options. How about a flip to mute mod? Thank you.
calvinljh said:
cool, may I only port mms.apk to phone (XXKPU) instead of all?
Click to expand...
Click to collapse
Yes
calvinljh said:
Additional note : when extract file using 7zip found Mms.odex file inside, do require that file to park in /system/app?
Click to expand...
Click to collapse
Yes
klau7 said:
The most usefull mod i've seen round here in months...clean without useless options. How about a flip to mute mod? Thank you.
Click to expand...
Click to collapse
I don't know, if it's easy to do, I could do it, but I first need to see what are the changes needed.
Anyway I think you can use system deodexed app, even if your rom is odexed. You simply need to remove from /system/app both the .apk and the .odex files and replace them with the single .apk file. This is not a general rule, you can't replace all the odexed apks, and I'm not a 100% sure that a modded deodexed phone.apk will work (that's the apk you need to mod for "flip to mute").
You can try and if something goes wrong, you can always restore everything with a nandroid backup.
loSconosciuto said:
Yes
Yes
I don't know, if it's easy to do, I could do it, but I first need to see what are the changes needed.
Anyway I think you can use system deodexed app, even if your rom is odexed. You simply need to remove from /system/app both the .apk and the .odex files and replace them with the single .apk file. This is not a general rule, you can't replace all the odexed apks, and I'm not a 100% sure that a modded deodexed phone.apk will work (that's the apk you need to mod for "flip to mute").
You can try and if something goes wrong, you can always restore everything with a nandroid backup.
Click to expand...
Click to collapse
Hi bro, thanks with info, tried also with Odex file /system/app/ no working at all.
Mms.apk no limit doesn't work.
Sent from my Supercharged GT-I9003 with Beats Audio & Xloud
calvinljh said:
Hi bro, thanks with info, tried also with Odex file /system/app/ no working at all.
Click to expand...
Click to collapse
calvinljh said:
when extract file using 7zip found Mms.odex file inside, do require that file to park in /system/app?
Click to expand...
Click to collapse
Should I read the underlined part as "... found Mms.odex and my rom is deodexed ..."?
Use this (you don't have to use the .odex file): Mms.apk
erik07 said:
Mms.apk no limit doesn't work.
Click to expand...
Click to collapse
Sorry, I forgot to add this in the OP:
If it doesn't work, clear the cache, the Dalvik cache, and also clear data for Messaging under Settings->Applications->Manage Applications (it won't delete your messages).
Click to expand...
Click to collapse
Actually, you only need to clear data for Messaging, there's no need to clear the cache and the Dalvik cache.
http://forum.xda-developers.com/showthread.php?t=1065452
Do u think it is better a odexed system or a deodexed one? What are the advantages?
luiseteyo said:
Do u think it is better a odexed system or a deodexed one? What are the advantages?
Click to expand...
Click to collapse
The problem of an odexed rom is that modding, as you probably know, is harder and some mods don't work, unless you reodex the whole rom (there are some scripts here on xda that does it for you, but doing so you can't use your modded files on a stock rom, they'll only work in your reodexed rom).
The main difference is that Android doesn't have to generate .dex files for odexed apks/jars (no .dex files in /data/dalvik-cache/ for them"). This brings, as far as I know, these advantages:
The first boot requires less time (Android has to build .dex files only for apps in /data)
/system is a read-only partition, so it's really hard to corrupt odex files, while it's possible to have a corrupted Dalvik cache (I don't think this is a common issue, it never happened to me). This can also gives problems when you flash a zip because the .dex file made before the flash doesn't work with the new apk, but all these issues can be solved with a Dalvik cache wipe (=> point 1).
An odexed rom requires less space in /data (again, see point 1), but it also true that it uses more space in /system (deodexed apk size < odexed apk + odex size), but, as I said, /system is a read-only partition, so there's no need to have free space there.
But I really don't know if there's any difference in the performance of your rom.
I'm using an odexed rom because that's how it was when I flashed it. Plus I don't have any problem in modding odexed apk, I even made a shell script that helps me in that (maybe I'll release it, I have to clean the code first), so I had no reason to deodex my rom (the few mods I use are made by myself ).
Is it possible that you'll use these mod on a deodexed rom...? Or would it have conflicts...?
landono5 said:
Is it possible that you'll use these mod on a deodexed rom...? Or would it have conflicts...?
Click to expand...
Click to collapse
No, odexed apps can't be used in deodexed rom.
You should use this on a deodexed KPU
I think this is the right one, but I can't test it.
And you if you want to restore the original files you should use this
(to make an odexed apk you need to deodex it first, I already had these files)
good mods mate keep it up
Sent from my GT-I9003 using XDA
i know this sounds very noob but really wants to know this.if i use odexed rom,may i be able to delete samsung bloatware in /system/apps safely?
rarap said:
i know this sounds very noob but really wants to know this.if i use odexed rom,may i be able to delete samsung bloatware in /system/apps safely?
Click to expand...
Click to collapse
Yes. You can. But in this case you have to remove 2 files: application and odexed resources (they will lie in the same directory.
Отправлено с моего GT-I9003
than'k u sir'...
loSconosciuto said:
Hey guys,
I wanted to share these flashables zips to easly get a fast but yet powerful stock rom.
This is for odexed KPU
UPDATE: and deodexed KPU.
Here the list of mods in this pack (and "how to" if you want to port them to other firmwares):
Lower brightness levels [services.jar, Settings.apk, SystemUI.apk]
Lower autobrightness levels [framework-res.apk]
1% battery mod [framework-res.apk]
AOSP lockscreen without haptic feedback [android.policy.jar, framework.jar]
SMS + No contact limit + No MMS convert + Sent time [Mms.apk]
Added support for LED notifications [services.jar] (this needs CyanogenMod liblights. See below.)
More smooth scroll [framework.jar]
Extended powermenu [framework-res.apk, android.policy.jar] (only "Reboot" option)
There's no CRT off effect (maybe I'll provide an additional zip if someone wants it, it's easy to add)
I changed few things in the theme (I took some images from CyanogenMod 7).
No additional apps included, no apps removed, no data wipes, no kernel included, no tweaks.
Note:
Clear data for Messaging under Settings->Applications->Manage Applications (it won't delete your messages).
Downloads:
odexed
KPU-mods-pack.zip
restore-KPU.zip (use this to restore everything)
deodexed
(I didn't post it before simply because it overwrites most of the mods out there):
KPU-mods-pack-deodex.zip (not tested)
KPU-restore-deodex.zip
Additional zips:
Disable TouchWiz sounds
Sounds disabled: low battery, charger/usb plugged in, battery charged + boot sound (it simply renames some audio files in /system/media/audio/ui/ and /system/etc/):
disable-sounds.zip
enable-sounds.zip
disable-boot-sound.zip
enable-boot-sound.zip
Chainfire touchscreen tweaks
More info here. Probably you won't feel any difference
touchscreen-init.d.zip
remove-touchscreen-init.d
Button Led notifications
More info here. There's no need to use Lightflow, unless you need missed call notifications (Lightflow takes the control of your leds, so it's possible that some apps that natively supports LED notifications won't be able to use them).
With Lightflow you can't really control LEDs (we are still looking for a solution).
liblights.zip
restore-liblights.zip
If you want to convert the partitions in EXT4, use CF-Root-ext4-v1.3u1-Addon.apk. You can get it from here.
You can easly convert from and to RFS and check filesystem integrity.
IMPORTANT: Make sure you have more or less 10MB of free space in /system before the conversion (you can see the amount of free space from ext4 Manager [CF-Root-ext4-v1.3u1-Addon.apk]), otherwise the conversion will fail, but there's no problem, this addon is really well done and it will automatically restore everything.
Click to expand...
Click to collapse
will this work on deodexed KPQ? wanna try this out
Maybe, but if I were you, I wouldn't flash it.
This pack will replace a lot of framework files, that means you'll have an hybrid KPQ-KPU rom.
Probably all the mods here included exist for KPQ (it was and maybe it's still the most used rom), just look for them.
You can use all the additional zips, they are not rom specific.
PS: there's no need to quote the OP.

[Q] How to get GTAB P5113 Samsung Keyboard on CM10?

Not liking the Android Keyboard too much in CM10 JB for Galaxy Tab 2 10.1 wifi
so, looking for way(s) to get the Stock Samsung Keyboard app/apk from ICS to work on CM10.
Tried using Titanium Backup / restore, as well as, recovery update.zip options but no luck.
Any ideas on how to get this app as well as few other Samsung Stock apps to work on CM or other builds?
You need the APK (and odex if it wasn't deodexed) as well as the lib for the keyboard.
a bit mre detail plz
imnuts said:
You need the APK (and odex if it wasn't deodexed) as well as the lib for the keyboard.
Click to expand...
Click to collapse
Dude, is that an Audi? I am guessing you drive one, I do and Love it!
As for how to make the apps run, I have searched but confused about Smali, Baksmali etc. And don't think I am going the right direction here. So, if you could, plz post some steps as to how this is done. Also, where to find the lib and odex files...
I'd have to restore my original backup and extract the files and later restore the current running cm10. Since I have only one tab, it is not easy to experiment as it takes time for loading etc. If u can post some specific steps, I'll just take it from there for all the stock apps I need (I.e. calendar, memo etc.)
The easiest way to do it would be to pull the APK from a deodexed ROM, then you don't need to worry about an odex file. For the lib, I believe it is libXt9core.so or similar, and it will be in /system/lib/. Then all you would need to do is put the APK in /system/app and the lib in /system/lib and it should work for you.
Also, yes it is an Audi

Categories

Resources