yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Darietto:
Everything I did was:

-Flash echoe slim rom for note 3 n9005 (mj7 android 4.3)

-install apps from the play store

-flash beta3 zip

-set linux as type

-run the script (all)

Inviato dal mio SM-N9005 utilizzando Tapatalk
[Android Software/Hacking General [Developers Only]] jblazea50:
Is it possible to odex data/apps?
[Android Software/Hacking General [Developers Only]] hv6478:
Guys it seems like there are a couple of key issues for people coming up more than once. This is what I've noticed.

1) related to the while "Linux" setting. This is an app setting of Terminal Emulator.

Open Terminal Emulator > click the Menu button on your phone (or the 3-dot menu in the top-right corner of the app) > Preferences > scroll down to the option called "Terminal type" > tap it and choose "linux" from the menu > go back to the main app and start the instructions from the first "su" command.

2) script errors (this will specifically address errors writing to the system folder, not sure what else this might help.)

I HAD to change the permissions of my system folder for this to work. Some others may need to as well.

First get a root explorer app, I use "Root Browser" from the play store (link: https://play.google.com/store/apps/details?id=com.jrummy.root.browserfree) and install it. Most apps will have generally the same instructions for this part.

Open it and grant it superuser permissions (or you may need to grant it when you actually do the next step.)

Navigate to the root of your phone and them find the "system" folder > long-press it and choose "Permissions" > check all boxes, there should be 9 options in total, all of them should be allowed.

Once that change successfully occurs, go back to Terminal Emulator and try again. Keep in mind that you need to have done the first section of this post properly for anything about this script to work!

3) Apps optimizing at every boot. -- CORRECTION

If you have chosen to use "ART", this COULD happen to some apps upon reboot sometimes. That's considered normal. [Applies to 4.4 KitKat only]

It SHOULD not be happening if you're in "Dalvik" mode with 4.4 KitKat unless you've made some app changes yourself or wiped Dalvik cache.

However, many people have reported some 4.3 JellyBean ROMs doing this as a result of some sort of error (either script-related or otherwise - this is still a work in progress.)

THIS IS WHY IT IS CRUCIAL TO HAVE A BACKUP BEFORE DOING ANYTHING LIKE THIS!!

Also, don't be shy to share your experience here. It is, in fact, encouraged. It's the only way to keep perfecting these awesome releases by these excellent devs.

Enjoy!
[Android Software/Hacking General [Developers Only]] diego9016:
Worked great on Xperia Z1 RomAur v3.3.

There was an app that couldn't be odexed: SonySCV.apk. I have no idea what it is for or if it's safe to remove, but will it cause problems if that app couldn't be odexed?

Thanks
[Android Software/Hacking General [Developers Only]] MatrixDJ96:
Why have you setted 777 perm to system?
[Android Software/Hacking General [Developers Only]] chikiro:
i like your work thanks!! :D
[Android Software/Hacking General [Developers Only]] hv6478:
I was getting errors in the script telling me that the "system" folder is not writable. I ensured I was in "Linux" mode and I definitely was in "su" as well, happened twice. Only when I changed the permissions was I able to properly use the tool.

Visually (might help some figure out what I'm talking about):

X X X

X o X

X o X

If you can imagine the grid of 9 options, that's the default for the "system", where "X" is checked and "o" is not.

X X X

X X X

X X X

That's what I had to change it to (for lack of better way if showing it LOL) in order to properly ODEX. All filled in.
[Android Software/Hacking General [Developers Only]] MatrixDJ96:
For me my script works also with 755 perm
[Android Software/Hacking General [Developers Only]] hv6478:
May be worth mentioning that I have been trying this on SlimKat Alpha. I haven't yet tried it on houstonn's AOSP or PA builds - maybe they act differently from one another for some reason?
[Android Software/Hacking General [Developers Only]] pemell:
[MENTION=4944549]MatrixDJ96[/MENTION] Why did you make a new script? What's the difference?
[Android Software/Hacking General [Developers Only]] rignfool:
Because KitKat
[Android Software/Hacking General [Developers Only]] pemell:
[MENTION=4944549]MatrixDJ96[/MENTION] I get android is updating and optimizing all my 156 apps at EVERY boot. Crazy!
[Android Software/Hacking General [Developers Only]] rekrapg:
Yeh I built my own CM11 from scratch, ran this, and almost everything fails to odex - no real errors, just failed after failed. I'll give your idea a crack and see if it helps. Already running the PA gapps which are odexed (mostly), but not sure if/how to build cm odexed so this script is handy, just gotta get it working for me :)
[Android Software/Hacking General [Developers Only]] mrjaydee82:
Me too...but my phone is faster lol
[Android Software/Hacking General [Developers Only]] rekrapg:
Soo...

setup: CM11 'alpha' built by me for N4

PA GAPPS (partial odexed)

su in terminal, give it superuser.

set preference to linux

run odex command, comes back 'partially odexed' as expected

whether I then run sysapp, frame, or all - no difference. everything states failed. Reboots, optimises around 48 apps (each time).

Unable to change system folder permissions to something other than default (prob SELinux I assume or something in CM security)

I thought perhaps new KK security, so set SELinux to permissive - still failed on everything. Not sure what else I can try? Is there a log I can grab hold of that'll provide better info as to why it failed so I can pass onto you? I ran aLogcat but it didn't show anything, assuming not KK compatible or something.
[Android Software/Hacking General [Developers Only]] atomomega:
No problem man! Thank you for delivering such a great tool. For the time being I'll keep using the old version. :good:
[Android Software/Hacking General [Developers Only]] eushaun99:
Maybe you can compare the code with your old dexo script and see if there's anything suspicious?
[Android Software/Hacking General [Developers Only]] hv6478:
Apps optimizing at every boot.

If you have chosen to use "ART", this is normal and will happen on every single boot. (For now, not sure if this will be changed down the road)

It should NOT be happening if you're in "Dalvik" mode.

Just added that to my post form before.
[Android Software/Hacking General [Developers Only]] rignfool:
I'm not sure about beta3... But in beta2 the script didn't remount system as rewrite... So I had to do it manually... Which I'll bet is your problem as well
[Android Software/Hacking General [Developers Only]] rekrapg:
Ahh yeh cheers, recall reading that in the other thread, i'll give that a crack now!

---------- Post added at 08:33 AM ---------- Previous post was at 08:30 AM ----------

Yup, that was it - still needed the manual remount - on beta 3 - now all working nicely :)
[Android Software/Hacking General [Developers Only]] Darietto:
if i remember correctly art was introduced on 4.4. I'm on 4.3 :)
[Android Software/Hacking General [Developers Only]] hv6478:
You're right.

In that case, may the force be with you.
[Android Software/Hacking General [Developers Only]] 9600pro87:
It's a problem with the ODEX script. After you use it every boot you have a "android si optimizing"
[Android Software/Hacking General [Developers Only]] DiViNEX:
Maybe for certain Roms. I'm on 4.4 not using art and I don't have an issue with caches building on every boot.
[Android Software/Hacking General [Developers Only]] 9600pro87:
I think it's a random bug.
[Android Software/Hacking General [Developers Only]] hv6478:
Altered/corrected this for info and in my prior longer post.

3) Apps optimizing at every boot. -- CORRECTION

If you have chosen to use "ART", this COULD happen to some apps upon reboot sometimes. That's considered normal. [Applies to 4.4 KitKat only]

It SHOULD not be happening if you're in "Dalvik" mode with 4.4 KitKat unless you've made some app changes yourself or wiped Dalvik cache.

However, many people have reported some 4.3 JellyBean ROMs doing this as a result of some sort of error (either script-related or otherwise - this is still a work in progress.)

THIS IS WHY IT IS CRUCIAL TO HAVE A BACKUP BEFORE DOING ANYTHING LIKE THIS!!

Also, don't be shy to share your experience here. It is, in fact, encouraged. It's the only way to keep perfecting these awesome releases by these excellent devs.

Enjoy!

Sent from my Optimus G
[Android Software/Hacking General [Developers Only]] pemell:
hv6478 are you helping matrix with the development?
[Android Software/Hacking General [Developers Only]] mrjaydee82:
The people on 4.3 like myself getting the ROM updating on every boot...could this be the issue? I've just been digging to find a solution for the dev since I really love this script
[Android Software/Hacking General [Developers Only]] tjsooley:
Thanks any chance of making a deodexer tool?
[Android Software/Hacking General [Developers Only]] openmatrix:
Hi there,

I flashed this script on my tab 2 running unofficial cm11 build . Every time I tries to odex the ROM using script is showing failed on each app (yeah ! Su is is enabled)...can u suggest what to do ??
[Android Software/Hacking General [Developers Only]] Ariesdroid:
I am on Jermaine151 's RLS1 build of 4.4 and have been using ART for a few days now. I have read this through this thread and can't decide whether i want to open this can of worms yet....I have noticed a considerable difference in performance running ART though..Has anyone on RLS1 tried this yet??? ALso i downloaded the zip and its only 1.70mb?? is that right??
[Android Software/Hacking General [Developers Only]] rekrapg:
Yeh I had same on my own CM11 build.

so in terminal, after running su, and before running odex, remount system:

su
mount -o rw,remount /system
odex
[Android Software/Hacking General [Developers Only]] openmatrix:
OK , I'll try ??

EDIT:

I reflashed new su build and retried it.....voila succeeded...!!!! But I'm feeling a little lag now (maybe it's just feeling ,but don't know why ?)

Anyway thanks...☺☺
[Android Software/Hacking General [Developers Only]] MatrixDJ96:
I'm working alone :)

(Please read credits)
[Android Software/Hacking General [Developers Only]] MatrixDJ96:
NEW UPDATE

Changelog:

Odexer Tool 1.0 Beta 4

- Fixed Too Many Bugs (Lol)

- Updated Android Terminal Emulator

- 3 Flashable Zip For Different CPU (ARMEABI, MIPS, X86)

- More Safer (A Lot Of "If" Added :) )

- More Universal

- I Hope That This Version Is Without Bugs ;)

Thanks for your fantastic feedback (pro & vs) and please...report all bugs
[Android Software/Hacking General [Developers Only]] WiwiPouPou:
I could be perfect of you could made an app from your work who generates a recovery script to odex in recovery!?

You find the classpath from userspace then insert it in script, reboot recovery, execute and voila!

Envoyé depuis mon Nexus 4 avec Tapatalk 4
[Android Software/Hacking General [Developers Only]] mrjaydee82:
Nice..gonna reinstall my ROM and odex and see if it stops the updating every boot..I'll let you know
[Android Software/Hacking General [Developers Only]] MatrixDJ96:
In the future :)
[Android Software/Hacking General [Developers Only]] fendytrancers89:
beta 3 working great on my CM10.1

thanks..
[Android Software/Hacking General [Developers Only]] johnco1972:
Downloaded and used this today. Worked great on my galaxy nexus running KK4.4 ROM

---------- Post added at 09:47 PM ---------- Previous post was at 09:40 PM ----------

I ran the beta 3 on the Shiny 4.4 ROM. I added and removed a few system apps and switched to ART. Running this really smoothed things out. No reboots at all...
[Android Software/Hacking General [Developers Only]] Ariesdroid:
...

Beta 3 worked perfect!! Thanks!!
[Android Software/Hacking General [Developers Only]] jblazea50:
Are you going to add the ability to odex data/apps for kitkat?
[Android Software/Hacking General [Developers Only]] rekrapg:
So this version seems to work on cm11 without the need for remounting system. Thanks!
[Android Software/Hacking General [Developers Only]] datvui2211:
I 'm using galaxy y, bcm 21553, what ver should I use?

Gửi từ Galaxy Y bằng cách sử dụng tia X truyền từ mặt trời!
[Android Software/Hacking General [Developers Only]] MatrixDJ96:
Armeabi ;)
[Android Software/Hacking General [Developers Only]] gpvecchi:
Which one for Nexus 4, please?
[Android Software/Hacking General [Developers Only]] chachin:
all android phones use ARM cpu.. so why the other 2? btw nexus 4 IS arm and i don't know wtf is ARMEABI
[Android Software/Hacking General [Developers Only]] eushaun99:
Not really...there are a few devices that uses Intel chips are x86. ARM is ARMEABI I think, check the screenshot. I just don't know what MIPS is.
[Android Software/Hacking General [Developers Only]] käsebr0t:
The motorola razr i uses an x86-cpu by intel...

Gesendet von meinem GT-I9001 mit Tapatalk
[Android Software/Hacking General [Developers Only]] mrjaydee82:
Also if you're completely unsure about your CPU it'll tell you what you have within your build.prop
[Android Software/Hacking General [Developers Only]] qbanlinxx:
Quick question for you sir. I'm currently running your Sinless 4.3.1, I was just trying to figure out how to tell what Firmware version I'm on. I bought the phone and it was still on 4.1.2 stock Rom. Thanks for the help
[Android Software/Hacking General [Developers Only]] datvui2211:
I saw, thanks

Gửi từ Galaxy Y bằng cách sử dụng tia X truyền từ mặt trời!
[Android Software/Hacking General [Developers Only]] mrjaydee82:
From bootloader and adb type command

"fastboot getvar all"

It'll break it down for you...if you haven't updated firmware ever you probably have the old touch drivers and all also. To update the firmware note that you have to be s-off
[Android Software/Hacking General [Developers Only]] rignfool:
Please don't include the android terminal in your zip...
[Android Software/Hacking General [Developers Only]] mrjaydee82:
Just tried out the beta 4 with the correct CPU.. And when odex all it still builds every reboot...optimizing 150+ apps..I'm on Android 4.3

Edit: If you need me to test anything I'm down for whatever
[Android Software/Hacking General [Developers Only]] gpvecchi:
Beta 4 worked flawlessly for me, except an instant soft reboot at the end of process (is that right?)
[Android Software/Hacking General [Developers Only]] MatrixDJ96:
Yes :) (killall system_server)
[Android Software/Hacking General [Developers Only]] refthemc:
Flashed this yesterday and phone seems to be running a lot smoother. Only issue I'm having is the "optimizing apps" after every reboot. Galaxy Nexus running AOKP 4.3.1
[Android Software/Hacking General [Developers Only]] brobinson2102:
Beta 4 on 4.4 running fine.

Does this run a check at startup to look for new apps that might need odex'ing ? Or do I need to occasionally run the odex cmd in terminal?
[Android Software/Hacking General [Developers Only]] Darietto:
the app check issue persist on latest release. ( i have note 3 with android 4.3 ). I noticed that the first time i run the script there is an app that fail to odex (minimal....apk ) . If i run the script again the app is odexed but the problem persist
[Android Software/Hacking General [Developers Only]] DiViNEX:
I ran beta 2 and beta 3 flawlessly on pwncakes quantum for the i747. He just released a new 4.4 build so I'm gonna do a complete wipe and test out your beta 4 release. I'll report back with the results.
[Android Software/Hacking General [Developers Only]] berryman13:
I ran the beta 4 release, seems to be working just fine...I uninstalled a bunch of system apps AFTER odexing them so I'm gonna check the folder and manually remove the odex files if they didn't get deleted. But anyways it seems to be working just great!
[Android Software/Hacking General [Developers Only]] DiViNEX:
Nice, i would give you a thanks but my 8 thanks went mostly to pwn today hahaha
[Android Software/Hacking General [Developers Only]] MatrixDJ96:
I know this problem

I'll fix it in beta 5
[Android Software/Hacking General [Developers Only]] MatrixDJ96:
minimode-res.apk?
[Android Software/Hacking General [Developers Only]] Darietto:
hello [MENTION=4944549]MatrixDJ96[/MENTION]

i bricked my phone using your beta4 release. Everything was fine until i rebooted the phone and then i got a "system process stopped" error and after that the phone stopped working and automatically rebooted continuously

so i wiped data/cache and flashed the rom ( echoe slim v4 for note3 ) but it didn't solve the issue. I decided to flash stock rom with odin: same result!!

Please help me!
[Android Software/Hacking General [Developers Only]] MatrixDJ96:
What?????

This isn't a problem of my script but it is of your phone
[Android Software/Hacking General [Developers Only]] berryman13:
I gotta agree. Also you really should take nandroid backups before doing things like this, if you run into any issues then go back to where you were at before.
[Android Software/Hacking General [Developers Only]] DiViNEX:
I have been following this thread and I don't remember anyone having this problem.

Its either the rom or a user error, sorry to say. Reflash and try again :(

EDIT

By reflash I mean reflash your rom.
[Android Software/Hacking General [Developers Only]] mrjaydee82:
The script itself won't hard brick a phone...the Odin flash and recovery ROM flash should have fixed your issue..that's strange...try wiping system and all then flash the ROM or even try a different ROM
[Android Software/Hacking General [Developers Only]] Darietto:
i solved flashing this:

Script / Fix Brick Loop After restoring from TWRP Recovery_01.11.13

Thank you anyway :)
[Android Software/Hacking General [Developers Only]] berryman13:
Could someone explain the importance of switching terminal type from "screen" to "linux?" I ran the script without changing to linux like a moron and now I'm not sure what the repercussions are. It created 3 extra lost+found directories which I just deleted with root explorer, do I need to do anything drastic to fix this? I'm not running into any problems but I JUST flashed it so I'm assuming if I did something wrong then they'll come about in the near future.
[Android Software/Hacking General [Developers Only]] njstein:
So I've forgotten how to update a system app correctly. Do you update the app, then go in to system>app and delete the .odex, then re-odex? Or delete the .odex, then update, then re-odex? Or does it even matter? Thanks for the help!
[Android Software/Hacking General [Developers Only]] MatrixDJ96:
delete the .odex, then update, then re-odex :)
[Android Software/Hacking General [Developers Only]] MatrixDJ96:
Hello everyone!

A new surprise :) BETA 5!!!

Tomorrow I'll tell you all info but i've already uploaded it... so download!
[Android Software/Hacking General [Developers Only]] berryman13:
Awesome! Gonna nab it if I can find it, shouldn't be too hard. Going to de-odex everything and then re-odex with this new version. Is that how we are supposed to go about it when you release new builds? I only started using your script with beta 4 so this is my first update.
[Android Software/Hacking General [Developers Only]] BajoPrimate:
Hi MatrixDJ96, I've been trying your odexer in my L9 P760 (Android 4.1.2): with the beta 4 I got the annoying optimizing applications message every reboot, but with this new beta 5 all is going like a charm, quick and smooth. :)

Thank you very much for your marvelous work.

Cheers. All the best.

Edited: BTW, before trying beta 5 I've updated SuperSU 1.75.

Used remove classes.dex and Zipalign Enabled.

Sent from my L9 P76020L-EUR-XX unlocked & rooted
[Android Software/Hacking General [Developers Only]] poczynek:
Love the new beta but still optimising apps after every reboot.
[Android Software/Hacking General [Developers Only]] refthemc:
How do I "Dedodex" so that I can "Odex" it again with Beta5?
[Android Software/Hacking General [Developers Only]] MatrixDJ96:
To fix this problem you must activate remove classes.dex and zipalign :)
[Android Software/Hacking General [Developers Only]] MatrixDJ96:
If you odexed your rom with beta 4 you can deodex your rom removing all file .odex

After you beta 5 to reodex
[Android Software/Hacking General [Developers Only]] poczynek:
Ah got ya! Can i do that through Terminal Emulator? It says it is disabled in TE??? How do i enable? Thanks again!

EDIT

Done it and enabled! Now to test if it optimises ... give me a minute!

EDIT:

Bugger! Have enabled and still optimising ...
[Android Software/Hacking General [Developers Only]] MatrixDJ96:
Really?! it's a bug of your rom...
[Android Software/Hacking General [Developers Only]] MatrixDJ96:
Do this:

Factory Reset

Install original rom (deodexed)

Install my script

On terminal and set linux in terminal type (in settings)

Type su

Type odex

Type set

Type 1

Type set

Type 2

Type all
[Android Software/Hacking General [Developers Only]] poczynek:
Yeah I'd rather not factory reset if possible until I can see if anyone else still has the problem. It's not that big of a deal really as optimising only takes a minute or so.
[Android Software/Hacking General [Developers Only]] SkyboneNoya:
Factory reset, cache n dalvik then restore nand no go. I'll try tomorrow when I get a chance. Class in 6 hours.

Edit: I got my nand back up, flashed beta 4 hit odex all it rebooted after finishing.

I rebooted into recovery installed beta 5 again

Type su in terminal.

Type odex

Type set

Type 1

Type set

Type 2

Type all

it reset on me.

Rebooted and tried again, set and exit were the only commands available so I rebooted myself.

Now I went into terminal again, had all options hit all and Y to deodex and zipalign anyway, it rebooted (upgrading 28 apps again)

Sorry I can't be of much more help. Time is ticking away! lolll 2:38am gn
[Android Software/Hacking General [Developers Only]] Darietto:
ok i think there is a problem with the script or with my rom

Decive: Note 3 SM-N9005

ROM: Echoe V4 MJ7

Kernel: Tried with Stok and Faux Kernel with same results

What i did:

entered CMW

Wipe Data

Wipe Cache

Wipe Dalvik

Format sdcard

Flashed ROM

reboot

then

i installed my apps

entered cmw and installed your zip

opened terminal emulator, selected linux as terminal type then:

su

odex

set

1

set

2

all

the process completes and the phone reboots.

Then i opened terminal again, typed odex and it displayed:

framework: odexed

sysapps: partially odexed

so i typed sysapp

after reboot everything was fine.

So i manually rebooted the phone to check if it would have checked apps again and after boot there was no signal and the "android process has stopped working" ( poor translation, sorry ) error

flashing a new rom won't solve the issue.

So i entered cmw again and flashed this:

Script / Fix Brick Loop After restoring from TWRP Recovery_01.11.13

everything is fine now but sysapps are partially odexed.
[Android Software/Hacking General [Developers Only]] SkyboneNoya:
a few reboots fixes the data/connection but yeah I think I just loaded up my nand backup.

Beta 4 still works.
[Android Software/Hacking General [Developers Only]] Darietto:
i had the same issue with beta 4. rebooting or flashing a new rom doesn't solve the system process error
[Android Software/Hacking General [Developers Only]] chachin:
Ok i do this steps and when im done enter "all" it says "optimizing this and that .apk but allof them say "Failed!" :( dunno why btw

phone lg optimus g e970

rom: omni 4.4 by [MENTION=1986924]chadouming[/MENTION]

pa gapps 11/18 minimal which are suppose to be odex friendly.

thanks
[Android Software/Hacking General [Developers Only]] gpvecchi:
Beta 5: remove classes.dex clear my widgets on homepage, zipalign bootloops...