yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] guaneet:
i had the same problem when i was using stock kernel

you need init.d support and busybox installed. or you can just run a custom kernel
[Android Software/Hacking General [Developers Only]] kpirnie:
yeah unfortunately with my locked bl I cant use a custom kernel...

I'm hard bricked right now anyways... so can't do anything period
[Android Software/Hacking General [Developers Only]] pren22:
What happened,how did you hard bricked!
[Android Software/Hacking General [Developers Only]] tamingsarix:
Hey....my framework dosnt odex..just system/app..
[Android Software/Hacking General [Developers Only]] kpirnie:
f'in swapper2. formatted the wrong partition.... mmcblk0p3 I think it did.

was aiming at a Linux swap partition on my extSdCard but I guess swapper2 thought it kknew better:(

---------- Post added at 07:30 AM ---------- Previous post was at 07:29 AM ----------

don't odex your framework... you'll end up with a ton of fc's

---------- Post added at 07:32 AM ---------- Previous post was at 07:30 AM ----------

I have a DL jig on its way, but this is my daily driver of course :(
[Android Software/Hacking General [Developers Only]] tamingsarix:
And then reboot? Im using CM 4.2.
[Android Software/Hacking General [Developers Only]] hnizil:
works awesome , thanks .
[Android Software/Hacking General [Developers Only]] kpirnie:
hopefully just a quick question here . on kitkat nc1... why not odex /system/framework?

Rockin out with my Smartly Golden Eye. (Big thanks to [MENTION=1380660]iB4STiD[/MENTION] [MENTION=2284570]ted77usa[/MENTION] [MENTION=4631220]Venom0642[/MENTION] [MENTION=833788]rebel1699[/MENTION] [MENTION=4980764]Maribou[/MENTION] [MENTION=4708661]muniz_ri[/MENTION]) ~ Free 20G Cloud from Barracuda: http://copy.com/?r=vitraF
[Android Software/Hacking General [Developers Only]] Phenom2122:
If you have any odex files in /system/app or /system/priv-app you cannot odex the framework. You first have to remove any existing odex files. I odex framework with every fresh rom flash, never any FCs.
[Android Software/Hacking General [Developers Only]] kpirnie:
while i appreciate the response it really doesnt answer the question of ... why?

Rockin out with my Smartly Golden Eye. (Big thanks to [MENTION=1380660]iB4STiD[/MENTION] [MENTION=2284570]ted77usa[/MENTION] [MENTION=4631220]Venom0642[/MENTION] [MENTION=833788]rebel1699[/MENTION] [MENTION=4980764]Maribou[/MENTION] [MENTION=4708661]muniz_ri[/MENTION]) ~ Free 20G Cloud from Barracuda: http://copy.com/?r=vitraF
[Android Software/Hacking General [Developers Only]] Phenom2122:
No you actually asked the question of... why not? What exactly are you trying to ask?
[Android Software/Hacking General [Developers Only]] kpirnie:
exactly... yu said we cant... " If you have any odex files in /system/app or /system/priv-app you cannot odex the framework"

well... why not?

Ive odex'd the /system/app, /system/priv-app, and /system/framework on a couple other roms prior to building the zip... and they worked just fine.

why arent we supposed to do that? What are the pitfalls?

Rockin out with my Smartly Golden Eye. (Big thanks to [MENTION=1380660]iB4STiD[/MENTION] [MENTION=2284570]ted77usa[/MENTION] [MENTION=4631220]Venom0642[/MENTION] [MENTION=833788]rebel1699[/MENTION] [MENTION=4980764]Maribou[/MENTION] [MENTION=4708661]muniz_ri[/MENTION]) ~ Free 20G Cloud from Barracuda: http://copy.com/?r=vitraF

---------- Post added at 04:58 PM ---------- Previous post was at 04:55 PM ----------

i've also done this post rom install with a dexopt wrapper script and there were no issues

Rockin out with my Smartly Golden Eye. (Big thanks to [MENTION=1380660]iB4STiD[/MENTION] [MENTION=2284570]ted77usa[/MENTION] [MENTION=4631220]Venom0642[/MENTION] [MENTION=833788]rebel1699[/MENTION] [MENTION=4980764]Maribou[/MENTION] [MENTION=4708661]muniz_ri[/MENTION]) ~ Free 20G Cloud from Barracuda: http://copy.com/?r=vitraF
[Android Software/Hacking General [Developers Only]] Phenom2122:
That is why I answered the way I did, I apologise. I don't know who else said it is a bad idea to odex /system/framework but in my experience there is no problem. So there is no why. It is safe to odex /system/framework
[Android Software/Hacking General [Developers Only]] kpirnie:
thanks bud.

i know most files in there are jars...

Rockin out with my Smartly Golden Eye. (Big thanks to [MENTION=1380660]iB4STiD[/MENTION] [MENTION=2284570]ted77usa[/MENTION] [MENTION=4631220]Venom0642[/MENTION] [MENTION=833788]rebel1699[/MENTION] [MENTION=4980764]Maribou[/MENTION] [MENTION=4708661]muniz_ri[/MENTION]) ~ Free 20G Cloud from Barracuda: http://copy.com/?r=vitraF
[Android Software/Hacking General [Developers Only]] anagramgenius:
[MENTION=4944549]MatrixDJ96[/MENTION], can you make this tool like your other tool so that odexed apk replaces the deodexed apk with no classes.dex in it so that we don't have to manually flash those apk's in recovery?
[Android Software/Hacking General [Developers Only]] kpirnie:
on kitkat you wanna keep those. sont know the reasoning... but i tried a couple apps and they fc'd without classes.dex

Rockin out with my Smartly Golden Eye. (Big thanks to [MENTION=1380660]iB4STiD[/MENTION] [MENTION=2284570]ted77usa[/MENTION] [MENTION=4631220]Venom0642[/MENTION] [MENTION=833788]rebel1699[/MENTION] [MENTION=4980764]Maribou[/MENTION] [MENTION=4708661]muniz_ri[/MENTION]) ~ Free 20G Cloud from Barracuda: http://copy.com/?r=vitraF
[Android Software/Hacking General [Developers Only]] anagramgenius:
oh. i'm using 4.3JB. the universal script removes classes.dex. does it remove in kitkat too?

and this script also gives option to enable/disable remove classes.dex and zipalign. it would've been better if by enabling that option, we don't have to manually flash.
[Android Software/Hacking General [Developers Only]] kpirnie:
no.

Rockin out with my Smartly Golden Eye. (Big thanks to [MENTION=1380660]iB4STiD[/MENTION] [MENTION=2284570]ted77usa[/MENTION] [MENTION=4631220]Venom0642[/MENTION] [MENTION=833788]rebel1699[/MENTION] [MENTION=4980764]Maribou[/MENTION] [MENTION=4708661]muniz_ri[/MENTION]) ~ Free 20G Cloud from Barracuda: http://copy.com/?r=vitraF
[Android Software/Hacking General [Developers Only]] bharath_58:
there are 3 versions in the download link... which should i download??
[Android Software/Hacking General [Developers Only]] Hamidreza2010:
is it work on sony device roms?
[Android Software/Hacking General [Developers Only]] luqman98:
Yes.

ARMEABI ones.

1. Love doesn't need any reason.

2. Wanna speed up 3G (not 4G LTE)?

Here it is:

http://xdaforums.com/showthread.php?t=2586876

3. My blog

4. Press the thanks button if I really helped/assisted you.
[Android Software/Hacking General [Developers Only]] bharath_58:
Can i know the use of other two?
[Android Software/Hacking General [Developers Only]] UnitedOceanic:
Other CPU architecture
[Android Software/Hacking General [Developers Only]] yelkarama:
Hi

I'm currious to understand why classes.dex cannot be stripped from the APKs in KitKat.

Thanks!
[Android Software/Hacking General [Developers Only]] kpirnie:
so am I.

However, I have tried and ended up with a softbrick
[Android Software/Hacking General [Developers Only]] kpirnie:
Testing it out now, hoping I don't brick again.

I'll let you know my results.

I had to do it on my Linux box, as the ROM I am on does not have zip in the toolbox, onceI can confirm that it is ok to do, I'll post the script I used

---------- Post added at 10:30 AM ---------- Previous post was at 10:06 AM ----------

NO BRICK! and more space now in /system

I was able to remove classes.dex from /system/app /system/priv-app and /system/framework

The only "issue" all settings are gone, so I have to reconfigure google accounts, emails, etc...

Here's the script I used... it is a bash script and I ran it on my linux box after copying all the files over after odexing everything.

Change the 3 paths to suit your needs... if you decide you are going to run this straight on your device, you need to change the first line to #!/bin/sh

make sure you are rooted, make sure you have busybox installed, and make sure the zip binary is installed as well:

#!/bin/bash
SYSAPP=/media/MediaTwo/MyRom/FilesToOdex/system/app/
SYSPRIVAPP=/media/MediaTwo/MyRom/FilesToOdex/system/priv-app/
FRAMEWORK1=/media/MediaTwo/MyRom/FilesToOdex/system/framework/

for i1 in $SYSAPP*.apk $SYSPRIVAPP*.apk $FRAMEWORK1*.jar; do
echo "De-Dexing $i1..."
zip -d $i1 "classes.dex"
done

NOTE: If you only did app and priv-app, remove the $FRAMEWORK1*.jar from the loop
[Android Software/Hacking General [Developers Only]] minhdale:
root@SM-G900:/ # odex
Odexer Script 1.2
For All Rom & Device

Go to my webpage on xda to see more info
http://xdaforums.com/showthread.php?t=2527268

MatrixDJ96 - XDA Senior Member

Product model: GT-I9300
Android version: 4.4.2 (KitKat)

Framework is: Deodexed
System apps are: Odexed
System priv-apps are: /system/bin/odex[666]: -n: not found
Odexed

System free space: 305 Mb

Available command:

Exit from the script => exit

=> frame

Impossible odex framework
To odex it deodex system apps before
1|root@SM-G900:/ #

I cant odex framework help me. I already type odex - all.

Edit: never mind. I fixed it by deodex again.
[Android Software/Hacking General [Developers Only]] kpirnie:
fyi.

I did end up bricking.

However, it happenned after I remo ed the classes.dex and the tried to zipalign.

so if you use this make sure you zipalign first
[Android Software/Hacking General [Developers Only]] peter-k:
After numerous trying I came to the conclusion best odexing is the OEM odexing, second best is the self odexing that keeps orientation on the apk's and jar's odexed by factory FTF where a particular ROM originates from.

It does not provide any benefit odexing (preloading) each and every app that is in system/app. Smaller apk's which are used at boot-up, or are used on/off frequently are most effective odexed. Bigger apks are not useful to preload, I think doing so disturbs and degrades efficiency of virtual memory management. Dito for programs that sit in memory always anyway, an example is the home screen (launcher).
[Android Software/Hacking General [Developers Only]] kpirnie:
just curious... where u get the info about bigger apks i system/app?

my s4 now runs like an de-bloatwared s5 now that Ive odexed everything.

The only thing I have noticed is a slightly higher ram usage.. but not enough to be concerned about (450M with Vonage talpatalk and smart launcher continuously running... plus all the background crap)

using up 450M out of 2G is pretty darn good in my eyes...

Rockin' it from my Smartly GoldenEye 35 NF1 (muchas gracias:* [MENTION=1380660]iB4STiD[/MENTION] [MENTION=5767942]loganfarrell[/MENTION] [MENTION=4708661]muniz_ri[/MENTION] [MENTION=4631220]Venom0642[/MENTION] [MENTION=2284570]ted77usa[/MENTION] [MENTION=833788]rebel1699[/MENTION]* [MENTION=1380660]iB4STiD[/MENTION]) ~ 20GB free cloud https://copy.com?r=vtiraF

Check me out online @ http://kevin.pirnie.us

p.s. Not trying to start a fight or anything... just want to know how u got to those conclusions....
[Android Software/Hacking General [Developers Only]] peter-k:
It seems to me it does not make much sense to preload home for example, since it is or should be in the memory anyway. Id it's not, ten we have home redraw. If anything, these type of things that are bigger and running constantly should be resident, but not preloaded.

Preloading makes sense for items which are smaller and are used on/off, or at startup. Try to juggle with 3 balls, 2 tennis balls and one soccer ball. 3 tennis balls are a lot easier for me.

I had tried different scenarios, including a previously de-odexed ROM that I meticulously re-doxed by hand, according to the original. This had the lowest RAM usage, and operated smoothest.

It is my experience, not a link that I can give to you. We have 800 something available mb RAM only with our XV. If RAM usage idle is already 450 mb and you take say 250 of free headroom is needed, then there is not much left for apps actually running. That's why. For you the problem is not existent, not yet. I am sure they can occupy your 2 megs RAM also, somehow, sometime. Apps nowadays are like SUV's in the 5 million city.

NB: It seems all factory odexed aps are stated with core app: "true" in the manifest, and these are then preloaded in Android Core Apps. Re-Odexing does mark these apps? I didn't see that.
[Android Software/Hacking General [Developers Only]] kpirnie:
i try to think of it in terms of pc's. if windows or linux ran strictly from RAM and only wrote to the disk when a change needed to be made the end user experience ends up being a smoother faster running system... at the expense the OS takes in memory.

Personally... it makes sense then that the same should (notice the should) be true for Android... hence why I odex. Granted the I/O of NAND storage is pretty darn speedy... it still has a long way to go to catch up to ram... this of course does not mean you should or should not do it...

Rockin' it from my Smartly GoldenEye 35 NF1 (muchas gracias:* [MENTION=1380660]iB4STiD[/MENTION] [MENTION=5767942]loganfarrell[/MENTION] [MENTION=4708661]muniz_ri[/MENTION] [MENTION=4631220]Venom0642[/MENTION] [MENTION=2284570]ted77usa[/MENTION] [MENTION=833788]rebel1699[/MENTION]* [MENTION=1380660]iB4STiD[/MENTION]) ~ 20GB free cloud https://copy.com?r=vtiraF

Check me out online @ http://kevin.pirnie.us
[Android Software/Hacking General [Developers Only]] peter-k:
Kevin my apologies for the extremely lousy spelling on my previous post. I corrected the worst.
[Android Software/Hacking General [Developers Only]] kpirnie:
looked good enough from my house ;)

Im on a de-odexed rom right now... only real difference that Ive seen between odexing it... and keeping it de-odexed is its a minute amount snappier while odexed, while de-odexed boots faster LOL

Mind you tho... Ive uhh... made some tweaks ;)

my partitions are all mounted with the async flag... ive turned off ext4 journaling and am forcing everything to run thru java jit instead of the default compiler... among higher dalvik heap values... this puppy flies as if it was stock odexed with no TouchWiz garbage [emoji12]

Rockin' it from my Smartly GoldenEye 35 NF1 (muchas gracias:* [MENTION=1380660]iB4STiD[/MENTION] [MENTION=5767942]loganfarrell[/MENTION] [MENTION=4708661]muniz_ri[/MENTION] [MENTION=4631220]Venom0642[/MENTION] [MENTION=2284570]ted77usa[/MENTION] [MENTION=833788]rebel1699[/MENTION]* [MENTION=1380660]iB4STiD[/MENTION]) ~ 20GB free cloud https://copy.com?r=vtiraF

Check me out online @ http://kevin.pirnie.us
[Android Software/Hacking General [Developers Only]] galaxys s:
so good for tool :good: thanks
[Android Software/Hacking General [Developers Only]] swat4samp:
My device galaxy fit running aosp ics.

I still get android is upgrading at every boot even after i set remove classes.dex and zipalign. What should i do now :(

Edit: After installing optimized-system from sdcard, everything is fine :)
[Android Software/Hacking General [Developers Only]] Toagmeyer:
remove odex from rom http://imgur.com/QrSoN8k

Im currently running kitkat on my spr tablet smt217s

Was woundering if its possible to remove odex files so I could modify system files

stock system/apps/> are odex automatically when updated or stock firware flash

Device info

See attached

or link

http://imgur.com/QrSoN8k
[Android Software/Hacking General [Developers Only]] swat4samp:
Is is possible to odex individual system apps using this tool?
[Android Software/Hacking General [Developers Only]] kpirnie:
no. but once its installed dexopt-wrapper is installed with it

google for how to use it un Terminal Emulator

Rockin' it from my Smartly GoldenEye 35 NF1 (muchas gracias:* [MENTION=1380660]iB4STiD[/MENTION] [MENTION=5767942]loganfarrell[/MENTION] [MENTION=4708661]muniz_ri[/MENTION] [MENTION=4631220]Venom0642[/MENTION] [MENTION=2284570]ted77usa[/MENTION] [MENTION=833788]rebel1699[/MENTION]* [MENTION=1380660]iB4STiD[/MENTION]) ~ 20GB free cloud https://copy.com?r=vtiraF

Check me out online @ http://kevin.pirnie.us
[Android Software/Hacking General [Developers Only]] swat4samp:
WIll u please provide link here :o
[Android Software/Hacking General [Developers Only]] kpirnie:
C'Mon guy... really :confused: You're more senior than I am...

https://www.google.com/search?q=how...7.5866j0j8&sourceid=chrome&es_sm=122&ie=UTF-8
[Android Software/Hacking General [Developers Only]] swat4samp:
You think i don't know how to use google :eek: i have already searched and wondered if this tool can do it easily (his other script universal odexer has the option in settings itself) Don't be too smart man. And no offence
[Android Software/Hacking General [Developers Only]] kpirnie:
Well... I did post the answer to your initial question, and you should know that anything around here needs some reading and research anyways...

None taken :P :silly:
[Android Software/Hacking General [Developers Only]] altojd:
which one is for galaxy 5 with 2.50GHz Qualcomm Snapdragon 801 processor?
[Android Software/Hacking General [Developers Only]] luqman98:
ARM.

Sent from my Xperia E1 dual

1. Love doesn't need any reason.

2. Wanna speed up 3G (not 4G LTE)?

Here it is:

http://xdaforums.com/showthread.php?t=2586876

3. My blog

4. Press the thanks button if I really helped/assisted you.
[Android Software/Hacking General [Developers Only]] qtwrk:
i'm on KK 4.4 TW ROM

when i type "set" , terminal reports "you can't change settings"

and only commands it shows were "exit" "all" and other one i don't remember now,about "system app" i think.

and after run the script, /system/app and /system/priv-app are odex'ed , but framework remains same , it that supposed to be normal ? or did i do something wrong ?
[Android Software/Hacking General [Developers Only]] luqman98:
Try to run "frame" command .....

Sent from my Xperia E1 dual

1. Love doesn't need any reason.

2. Wanna speed up 3G (not 4G LTE)?

Here it is:

http://xdaforums.com/showthread.php?t=2586876

3. My blog

4. Press the thanks button if I really helped/assisted you.
[Android Software/Hacking General [Developers Only]] qtwrk:
Right... This is what happened, so to say, what if I don't reflash ROM but extract the files from zip /system/app and priv-app, put them inside system, can I "deodex" it this way?

Backing up and get back to you soon...
[Android Software/Hacking General [Developers Only]] Dennis.se.foon:
I believe that this script cannot odex the framework if there are any .odex files in system/app or in system/priv-app.

I suggest that you deodex the Rom, reboot, then try the "all" option. Easiest way to deodex is to delete all the odex files.

Sent from my own Galaxy
[Android Software/Hacking General [Developers Only]] qtwrk:
Got it, thanks for the tip [emoji39]
[Android Software/Hacking General [Developers Only]] Aly007:
So we can't do this in 4.4.2 ? I run MIUI ROM and I already odex it.

How do I zipalign ?

Btw, the .odex files are back after reboot, is this suppose to happen ? The script still says that I'm odex everywhere
[Android Software/Hacking General [Developers Only]] qtwrk:
If you have .odex files means you are odex'ed

If you do NOT have .odex files means you are DE'odex'ed
[Android Software/Hacking General [Developers Only]] raynan:
I'm getting the "failed" result for every app on each option. While I don't have a custom kernel, I do have init.d support and busybox installed and both are working. Any ideas why that is happening? Oh, and I'm using the ARM version of the tool on my SGS5 for AT&T.
[Android Software/Hacking General [Developers Only]] finneginsfast:
I hope this isn't too much of a stupid question but here goes...how can I tell if the rom I'm running is odexed or deodexed to begin with?
[Android Software/Hacking General [Developers Only]] hv6478:
First of all, this tool is awesome, thank you for your hard work on it.

I just wanted to mention, in case anyone is having any difficulties, that I had to change the permissions of my "system" folder to make this work. Before doing this I had errors about system not being accessible.

You fix this by using a root explorer (I used Root Browser) to make sure everyone has every permission, i.e. all boxes are ticked. Usually you just navigate to the root of the phone and long-press the "system" folder, and a menu will pop up to change permissions. After that, run the script as described in Terminal Emulator and everything should be successful. Reboot after, the apps will optimize, and you should be good. No FCs here.

Hopefully it helps someone. The odex'd ROM does start noticeably faster, it's working very well!

---------- Post added at 08:28 PM ---------- Previous post was at 08:26 PM ----------

Use a root explorer of some kind (I use Root Browser) and navigate to the "systems" folder, then open "priv-apps". If you see multiple files that end in ".odex" along with the ".apk" files (almost all of the different apps should have both of those files) then it is ODEX'd. If it's only ".apk" files you see, then it isn't.

You could also check in the "framework" or "app" folders as well, but "priv-apps" containing it should be a very reliable indication.
[Android Software/Hacking General [Developers Only]] mrjaydee82:
Is it suppose to go through the whole android is upgrading on every single boot?
[Android Software/Hacking General [Developers Only]] eushaun99:
[MENTION=4944549]MatrixDJ96[/MENTION] I think your new script deletes dalvik cache every boot.
[Android Software/Hacking General [Developers Only]] hv6478:
Not if you're in Dalvik mode, no. It is not doing it for me.

I'm not sure, mine seems fine. If you are in ART mode, it will optimize every boot from what I understand, regardless.
[Android Software/Hacking General [Developers Only]] MatrixDJ96:
Please can you give a link of your rom?
[Android Software/Hacking General [Developers Only]] MatrixDJ96:
Art and my odex script are completely different
[Android Software/Hacking General [Developers Only]] dhrtlockeroo9:
Hey bro finally succeed to create odex for app and framework thanks bro keep it up :thumbup:
[Android Software/Hacking General [Developers Only]] bone101:
This breaks multiple system apps like system ui , trebuched ....

On my ROM

http://xdaforums.com/showthread.php?t=2385250
[Android Software/Hacking General [Developers Only]] eushaun99:
I'm not on kitkat. I'm on 4.2.2. And it doesn't just show the android is upgrading text. It rebuilds the dalvik cache every boot.
[Android Software/Hacking General [Developers Only]] Denkov:
Works perfect!
[Android Software/Hacking General [Developers Only]] atomomega:
Same here. I had to restore a nandroid backup. I'm on 4.1.2.
[Android Software/Hacking General [Developers Only]] MatrixDJ96:
Restore a deodexed version and reinstall my last version beta 3 and try again
[Android Software/Hacking General [Developers Only]] MatrixDJ96:
NEW UPDATE

Odexer Tool 1.0 Beta 3

- Fixed A Lot Of Bugs

- Removed Support Of Preload (For Now)

- More Safer
[Android Software/Hacking General [Developers Only]] mrjaydee82:
On my ROM once I odex system apps and framework...every time I reboot it goes through upgrading android 150+ apps every time...any ideas?

Edit: I tried beta 3 and on android 4.3....if you need me to test anything let me know I have a spare phone to pop my Sim in
[Android Software/Hacking General [Developers Only]] atomomega:
Yeah that's what happened to me and to another guy a few posts above. The dalvik cache was getting wiped, that's why you saw that message.

I still need to try beta 3 and see if it no longer does that.
[Android Software/Hacking General [Developers Only]] gpvecchi:
On beta 3, odex command says that my system is partially odexed (that's the newly flashed terminal), but gives no optional commands. Typing all crashes phone.
[Android Software/Hacking General [Developers Only]] MatrixDJ96:
Please give more info
[Android Software/Hacking General [Developers Only]] mrjaydee82:
Still does it for me on beta 3
[Android Software/Hacking General [Developers Only]] KorhanKurt:
more info But sysytem Free Space 136 mb
[Android Software/Hacking General [Developers Only]] pren22:
this happened to me once what i did is first wright su then odex