yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] parsvbulletin:
Odex And Deodex In Android

WHAT IS AN ODEX FILE?

In Android file system, applications come in packages with the extension .apk. These application packages, or APKs contain certain .odex files whose supposed function is to save space. These ‘odex’ files are actually collections of parts of an application that are optimized before booting. Doing so speeds up the boot process, as it preloads part of an application. On the other hand, it also makes hacking those applications difficult because a part of the coding has already been extracted to another location before execution.

THEN COMES DEODEX

Deodexing is basically repackaging of these APKs in a certain way, such that they are reassembled into classes.dex files. By doing that, all pieces of an application package are put together back in one place, thus eliminating the worry of a modified APK conflicting with some separate odexed parts.

In summary, Deodexed ROMs (or APKs) have all their application packages put back together in one place, allowing for easy modification such as theming. Since no pieces of code are coming from any external location, custom ROMs or APKs are always deodexed to ensure integrity.

HOW THIS WORKS

For the more geeky amongst us, Android OS uses a Java-based virtual machine for running applications, called the Dalvik Virtual Machine. A deodexed, or .dex file contains the cache used by this virtual machine (referred to as Dalvik-cache) for a program, and it is stored inside the APK. An .odex file, on the other hand, is an optimized version of this same .dex file that is stored next to the APK as opposed to inside it. Android applies this technique by default to all the system applications.

Now, when an Android-based system is booting, the davlik cache for the Davlik VM is built using these .odex files, allowing the OS to learn in advance what applications will be loaded, and thus speeds up the booting process.

By deodexing these APKs, a developer actually puts the .odex files back inside their respective APK packages. Since all code is now contained within the APK itself, it becomes possible to modify any application package without conflicting with the operating system’s execution environment.

ADVANTAGES & DISADVANTAGES

The advantage of deodexing is in modification possibilities. This is most widely used in custom ROMs and themes. A developer building a custom ROM would almost always choose to deodex the ROM package first, since that would not only allow him to modify various APKs, but also leave room for post-install theming.

On the other hand, since the .odex files were supposed to quickly build the dalvik cache, removing them would mean longer initial boot times. However, this is true only for the first ever boot after deodexing, since the cache would still get built over time as applications are used. Longer boot times may only be seen again if the dalvik cache is wiped for some reason.

For a casual user, the main implication is in theming possibilities. Themes for android come in APKs too, and if you want to modify any of those, you should always choose a dedoexed custom ROM.
[Desire Android Development] huongwk:
Why it keeps on restart at htc's splash screen after i flash RSK Special Edition Deodexed. thanks. Help me please. Thanks
[Desire Android Development] halaros2:
Thank u very much for your nice comments we are glad for making u keep your phone :D. Yes our previous versions were deodexed. Odexed roms are a little faster and a little more stable BUT THERE IS ALWAYS A BUT :D can not be tweaked a lot as it comes for theming so if u like stock theme and not having problem with it use odex or else deodexed...

No mate rom is optimized for cm7/r2 and stock hboot I don't know how will aroma identify data++ hboot if it does like cm7/r2 it will probably work but you ll have a memory loss.

You can try both :D. No really I explain the main disadvantages and advantages at the post above. And a user also made a nice explain above my post ;)

---------- Post added at 07:24 AM ---------- Previous post was at 07:23 AM ----------

What hboot u use and what version? And did you full wipe and have the correct requirements?
[Desire Android Development] huongwk:
Hboot - 0.93.0001. stock hboot? yes. did format SD and full wipe
[Desire Android Development] halaros2:
Did you flash anything else after rom? Also is your ext4 partition at least 1gb. I can't check it right now I'm not at my pc but try reflashing and see if something went wrong!

Anyone else having problems booting with stock hboot???
[Desire Android Development] huongwk:
Didn't flash anything after flash rom. ext4 is more than 1GB. After u try it out. Let me know. Thanks for the help.

Flashed 3rd time and same problem.

Flashed to MildWild based on CyanogenMod7 no problem.
[Desire Android Development] bone069:
Does anybody know how to create UOT theme with odexed version? Can I normally put the 3 files out of the ROM without the .odex file?
[Desire Android Development] MattchuR:
@ huongwk, how long are you waiting at the HTC screen? Sometimes it can take well over 15 minutes during first boot.

Also have you tried pulling the battery then turning back on?

Good luck, hope you get it working,

Matt
[Desire Android Development] thanito:
@halaros2: I am not into theming ROMs, I only use battery percentage through rctweaks and comfortaa font through aroma installer, so if you think that I can do these changes in odex ROM I will try this..so?

Cheers
[Desire Android Development] pairofpints:
Thanks to RSK Team for another update. I've tried it but going back to 7.4.3 as, for me, it's more pleasing to the eye. Thanks again for your efforts in trying to sort out hTc Watch, guess it was just not meant to be. RSK 7.4.3, for me, remains the best Sense 3.5 Rom.

sent from my hTc Desire using a walker's severed finger
[Desire Android Development] halaros2:
I think you can't mate.

Yes you can mate no prob with using things that are already in rom they are all odexed... ;)

---------- Post added at 01:20 PM ---------- Previous post was at 01:13 PM ----------

Thank you very much for your nice comments mate... And really sorry for htc watch we can't find what might be causing the problem... I understand what you say about theming I like themed roms very much too. But you know most users have their own taste so stock is the best way to thank all users. :) but if you are a little into pushing files with adb or even with an app like es file explorer you can change the necessary files and you will have a themed rom ;). Not with the odexed version of course.

Anyone else having issues booting rom with stock hboot because I ll be home late at night so I can't test it? Thanks
[Desire Android Development] bone069:
It worked for me :)

I registered that it is not possible to enable xLoud in RCTweaks. Anybody else with this issue?
[Desire Android Development] huongwk:
The splash screen keep restart over and over again. i waited for quite a long time.
[Desire Android Development] heraSK:
i've tried latest version with stock hboot, full wipe, 1GB ext4. got past android splash screen, then stuck on boot animation (where it usually sits while a2sdsomething scripts do their magic). i've waited for 20 minutes which should be more than enough for the first boot after clean install. dunno, maybe i should have waited a bit longer? :confused::confused:

generic app2sd script, amaze cam, other options which were already highlighted by aroma installer.

thx!

EDIT: no reboots as was said some posts ago. just sits there.
[Desire Android Development] manmohan0339:
xloud

same for me.
[Desire Android Development] halaros2:
QUOTE=manmohan0339;28364759]same for me.[/QUOTE]

Flash this through recovery it should work!!! or push the apk in sd-ext/app_s and give right permissions
[Desire Android Development] halaros2:
I ll test it when i am home at night and i ll talk with Mr.Mefisto about this...

ALSO DONT FORGET FOR USERS WHO WANT VERY SMOOTH SCROLLING YOU CAN CHANGE ROSIE TO SEMI 3D OR FULL 2D THROUGH RCTWEAKS IN SETTINGS ;)
[Desire Android Development] mmathiou:
RSK SP Odexed

I have just upgrade to RSK SP Odexed. Using stock options and full wipe. The installation was smooth without any issue.

What it made me huge impression with this version is that in the past in my office I did not had a 3G reception.(in best case I had 1 bar but mostly it was 2G or 3G without bar). Now with this version the 3G is between 2 to 3 bars!

Well done RSK team!!:good: One more great ROM.:highfive:

PS.I did not refer above that ROM is veryyyy fast since this a common thing for RSK's ROMs!:D
[Desire Android Development] thanito:
Just had my first HTC Sense freeze and FC after odex install..

Hope it is the only one since I am leaving for the wknd :/
[Desire Android Development] MidnightDevil:
Nandroid always helps...
[Desire Android Development] jozef710i:
Hi my phone stuck on boot screen always always loading

Rom was smooth but when i restart now i cant boot
[Desire Android Development] halaros2:
Data ++ hboot I see at your sig???
[Desire Android Development] jozef710i:
No No stock

sorry i forgot and also i cant make logcat i only see this:

19:24:32.682 bin/sh: exec: line 1: logcat: not found bin/sh: exec: line 1: logcat: not found exec: line 1: logcat: not found

19:26:03.433 able to open log device '/dev/log/main': No such file or directory able to open log device '/dev/log/main': No such file or directory No such file or directory
[Desire Android Development] halaros2:
Mate I ve been testing this rom real hard for 2 weeks now never had an issue... Probably it is something random or it could be a bad flash... No worries ;) it is as stable as it gets...

---------- Post added at 06:33 PM ---------- Previous post was at 06:31 PM ----------

thanks for that... I ll see what it can be done!!! :D
[Desire Android Development] esperidon:
Stock hboot!!!

My friend i am on stock hboot(250mb on system) and running RSK Special Edition Deodex version without any problem! After your logcat i think you are not on a real stock hboot! Also for 3 hours i was testing Odex version and work without any problem! I give a lot of restart and no problem! Installing Games, apps no problem!

I think you must verified your "stock hboot"! Please download from this: https://sourceforge.net/projects/rskandroid/files/bravo_alphaspl.img/download

Flash it with fastboot commander from this:https://sourceforge.net/projects/rskandroid/files/FastbootCommanderV.1.51.zip/download or android flasher from this: https://sourceforge.net/projects/rskandroid/files/AndroidFlasher.zip/download

After you do that please in your Recovery mode(i use 4ext recommended by Mr.Mefisto) do "format your system" and after that full wipe!!!

I assure you that even on stock hboot and cm7r2 all it is perfect! We are a gang of 5 friends and all we have stock hboot on our old beloved desire bravo!!!

---------- Post added at 09:59 PM ---------- Previous post was at 09:50 PM ----------

I can give the details: after i flash Odex version on stock hboot(250mb on system, 147 mb on data, 40 mb on cache) off course i have 39mb free on system, 118mb on data and 38,8mb on cache!!!

And this is how i make my sd card: fat32 i have13,7gb (now i have free 5gb-i know you did not interested by me free space on my sd card:D) and sd-ext partition 1295mb!!!

Maybe it was for help!:p
[Desire Android Development] olive127:
Deodexed version installed on CM7r2, it's working flawless ;) very smooth.

I love the Sense 4 IME ! and the Sense 4 dialer as well.

However, I did not find the stock Sense 4 clock (not the "porno" one, lol :D), so, I installed the .apk found on xda and it's ok.

Thanks very much for this special edition, it runs very fast ;)
[Desire Android Development] jory9:
Can you gimme a link to the sense 4 clock widget please? ;D
[Desire Android Development] Mr.Mefisto:
Thanks for all users feedback!!!
[Desire Android Development] Mr.Mefisto:
You are a great user with perfect help!!! Thanks for this!!!
[Desire Android Development] jozef710i:
Thank u for your help at least you try but i already have stockhboot i have 4ext recovery and in info i see this numbers

System 250mb

Data 147,6mb

Cache 40mb

I flash other rom and no problem so i think problem is somewhere else
[Desire Android Development] esperidon:
I am 100% sure that it is not for RSK Special Edition rom`s!!! Glad to trying to help!!
[Desire Android Development] olive127:
http://xdaforums.com/showthread.php?t=1595236

Install Sense_4_Clock_V2_NoAppDrawerIcon.apk and set it as widget

It's for Desire HD but works fine on Desire
[Desire Android Development] zakkkkk:
use volume+ apk
[Desire Android Development] akhillad:
bootloops with odex version

Tried rsk se odexed version... but facing boot loops...

Performed full wipe...don't know what's the problem... flashed twice ...

Flashed version 7.4.3 once again nd everything's fine...

Any solution pl...
[Desire Android Development] mmike0:
Installed RSK SE deodexed version yesterday on cn7r2 hboot.

For a day is working without any problem.

Thanks for this ROM
[Desire Android Development] jory9:
It doesnt work with my weather , so.i aint gonna use it , still thx ;D
[Desire Android Development] HyperL:
Hey there, flashed the deodexed version, latest, with full wipe and everything, the rom is looking good, but I can't connect to wireless...tried another wipe and still had the same problem. 3G working fine but i need wi-fi too. Any ideas? Tried to find an answer in the forum but didn't...

I have stock hboot, with 1GB ext4
[Desire Android Development] shaked1:
Hello

Thnx for the rom. Been using for one day ,Deodex - cm7r2 - a2dsdx

Only problem is the crash of the default browser, sometimes when writing in the address line...

Besides, everything is cool. thanks again
[Desire Android Development] dancecore92:
Works fine for me, thanks :)
[Desire Android Development] mmathiou:
I believe it worth to try one more time ( following the steps that esperidon proposed to you) to check if the problem will be solved or not. Have you tried the Odexed version? If yes, Are you having the same issue as well?

PS.One day with odexed version and everything runs fast, smooth, without any problem! :-)
[Desire Android Development] akhillad:
Here's my md5 chevksum - 46359f07a1cbde7e72365828cd2f22ab

Can anyone confirm...
[Desire Android Development] esperidon:
This is md5 from sourceforge: 37d94f59107cff63c9877a42a9b2aaa6 for odex version!!!!
[Desire Android Development] seby_guritza:
Md5 RSK Special Edition Odex version: 37d94f59107cff63c9877a42a9b2aaa6

Md5 RSK Special Edition Deodex version: 551ff254ed7953857d036b0d638c8563

---------- Post added at 06:32 PM ---------- Previous post was at 06:30 PM ----------

A2dsdx with cm7r2 test it for 2 hours only browsering and no problem! I will try for all day to test more and i will give feedback!!

---------- Post added at 06:35 PM ---------- Previous post was at 06:32 PM ----------

What kind of wi-fi please if you can tell? I have a router and it is no problem, i try even on free wi -fi from my hall town, test it even in one hotel from my town, no problem!!! Please you could give more information about your wi-fi network!!
[Desire Android Development] HyperL:
I tried to connect to a wpa2-psk on a Linksys router. Works fine with any other rom. It actually connected to a open network from an edimax router...
[Desire Android Development] seby_guritza:
Strange, i have the same - Linksys on a wpa2-psk wi-fi! Really strange! I don`t know.....the karma...:cowboy: joke
[Desire Android Development] m4jkee:
instagram market issue (device is not compatibile with this version) on cm7r2

/edit: reboot fixed it
[Desire Android Development] HyperL:
Another strange thing, tried the odexed version with no luck and after that I tried the Aurora version and had the same issue...is there a problem with sense 3 roms on my device? Now I'm on wifi on Mokee and is working excellent on 802.11n
[Desire Android Development] jozef710i:
Ok i try reflash hboot and try again btw i m trying Deodexed version
[Desire Android Development] seby_guritza:
Use stock hboot from esperidon user put on thread! This one: https://sourceforge.net/projects/rskandroid/files/bravo_alphaspl.img/download
[Desire Android Development] jozef710i:
Yes i used now i restart phone and will see

btw what cpu freq are u using i set max to 1113mhz

I think now its everything ok im using sense 4 IME and im turn off arrow keyboard but when i switch to numbers i have arrows
[Desire Android Development] seby_guritza:
If you have turn off from tweaks does not work!!! I don`t understand why you choose Sense 4 Ime if you don`t want arrows! That is why RSK Team put in aroma installer No arrows Ime my friend!!! You can choose from beginning what you want it is much easier i think....i don`t know your choice, you can choose whatever you want, but you must know for sure what you want!!!
[Desire Android Development] jozef710i:
Ok i know its not big problem i just want let know when im using letters i dont have arrows :cyclops::cyclops: i can live with arrows :laugh:

Also i dont have full screen animations in clock widget i have selected option full screen animation, but this is not important anyone else have this "bug"??
[Desire Android Development] HyperL:
Solved, the problem was that my router was set on wireless n broadcast mode, and it seems that there is no 802.11n driver in this rom, switched to 802.11g and everything is working just fine.:good:
[Desire Android Development] seby_guritza:
I am happy that works on "g" my friend!!!
[Desire Android Development] Rotten Ross:
Anyone else having issues with sync?
[Desire Android Development] jozef710i:
Only with facebook calendar
[Desire Android Development] Rotten Ross:
Is that down to fb or the rom?
[Desire Android Development] jozef710i:
i think fb because i try Runnymade AIO and i have the same problem
[Desire Android Development] mmathiou:
xaxaxa.....:laugh::laugh:

:-):-):-)

This was a good one....Everybody is happy when "g" is working!!!!!!;)
[Desire Android Development] jozef710i:
I see what you did there :)
[Desire Android Development] seby_guritza:
;) You are the only one who got what i mean!!!!;)
[Desire Android Development] Mr.Mefisto:
FUN!!!

I see here much fun!!! I am glad to see that!!!Good users!!!
[Desire Android Development] hayabusa08:
Sorry guys where do i get the battery icon like the pics in the first post

Sent from my HTC Desire
[Desire Android Development] Amer:
When you are installing the rom

go into custom installation and from the option list , choose "Custom framework" (blue) not the stock htc one.
[Desire Android Development] crisagatie:
same for firefox. no reboot solved it, although works fine when installing apk from mozilla ftp.
[Desire Android Development] Lonely_Boz:
is there also german language pack for this ROM?
[Desire Android Development] halaros2:
:D :D :D

Mate I really tried every possible way to flash this rom odexed and deodexed the way you pm me and so many times with different option every time booted and running perfectly... I don't know what else to say just reformat all chech md5 check alignment check your hboot md5 (or flash the one mr.mefisto uploaded and reflash...

Hahaha yes a nice one like the "sense" of sense 4 clock we have in rom... :laugh:
[Desire Android Development] Mr Hofs:
Gonna try this one on my dad's desire.I gave mine to him and is running an old rom at the moment. But I still have the urge to flash the old biatch ! :D

Great work team !
[Desire Android Development] WatsonDue:
You cannot download Firefox from the play store on any desire, because Mozilla decided (for now) not to fix a critical bug that cause random reboots on this phone. So it's normal on any rom, also with stock one. ;)

EDIT: @rsk

What about a INT2SD-S version? It can give a good speed up to the rom. Try to contact pr0z0r! :)
[Desire Android Development] rjvrijn:
I gave my good old desire (without a sim) to my autistic son and ofcourse with the latest rsk rom. I installed the odexed version. Its fast and stable enough for him to click hundreds of times on different options. No lag is very importent for him and this rom will accomplish that as no other.

Thanks @RSK team for supporting the desire for so long time!
[Desire Android Development] jozef710i:
Hi i have one question why full screen anim doesnt work (Clock widget) i try replace

HtcClock3DWidget.apk with 3 others from other Roms but still nothing
[Desire Android Development] TMTYD:
hi people

I tried using the app rom toolbox lite the notification to change background and that in these:

​

After a reboot, the background is still black, how can I change this, because the font is not visible in this black background.

MFG TMTYD
[Desire Android Development] seby_guritza:
What full screen animation does not work?? Mine it is ok!!! You mean at any Clock widget from Htc that you choose from Widgets or what....i am not understanding very well, if you could try to tell me more specific!!!
[Desire Android Development] jozef710i:
Yes full screen animations with clocks (small and normal) only one animation work (when is Sunny):cowboy:
[Desire Android Development] seby_guritza:
Oaw....my friend seriously i tell you you have to many problems, last night it was a beautiful moon on my full animation clock (small-it is what i prefer)!!! Synchronize, internet..etc ... i don`t know what for sure what is your problem!!!
[Desire Android Development] jozef710i:
Thank u maybe i try download rom again. I used this rom in pass and i was happy with this rom no problems. And now when i flash rom i have only problems. I have only class 4 card in pass i had class10 but i think its not important too much
[Desire Android Development] halaros2:
Have u synced your weather info mate? Also see sd-ext/weather_s if all animations are there...

We ve reached signal of desire to another level where I used to have only gsm or no data now I have 3G or even H. Hope u all enjoy :victory:
[Desire Android Development] jozef710i:
Yes i synced my weather (i m not stupid :laugh:) On ext i dont have weather_s dir

(btw Weather videos in weather app are OK i mean animations after unlock phone)

Weather videos are here /system/media/weather/
[Desire Android Development] ferencz1:
for me everything works great, it is very smooth and fast, I use A2SDX ;) :) :) :)

I really love it ;)

Thank you for this lovely ROM!!!
[Desire Android Development] jozef710i:
Hi guys finally is everything Ok Animations working:good::good:

Now i install odexed version :D:D

Edit

This is f****** unbelievable now lockscreen doesnt work even shortcuts when i aply weather lockscreen no weater animation only background also when i aplly photo album lockscreen no photos

I dont know what im doing wrong sorry guys u must think i m an asshole or .....

I try flash cm7/r2 hboot
[Desire Android Development] halaros2:
Hey mate at aroma installer maybe you uncheck HTC pen? I remember issues when not installing this... You know a lot of htc apps are connected one another and when are uninstalled can cause troubles...
[Desire Android Development] Csernus:
Thanks you rom support. Many thanks.:laugh:
[Desire Android Development] vijendrahs:
Everything is fine, but CPU rating is showing 332 in quadrant even after overclock. So I reverted back to Runnymede AIO which is giving me 2233 CPU.
[Desire Android Development] cronus101:
Hahaha!!! Some flawed software gave you miss-guiding information, so you decide to switch roms! You do realise that those numbers mean nothing...right?
[Desire Android Development] jozef710i:
Yes i deselect almost all aps which i dont use Also almost all widgets

So now i install with default settings and i think now is everything ok for now only FB calendar cant sync but i had this problem also with runnymade AIO