yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Haminjuri:
Hi

i want to deodex my rom by this tool, but after select "myrom" folder (with correct subfolders), occurred following error, while "boot.oat" existed in framework subfolder:

jre is installed in this path: C:\Program Files\Java\jre1.8.0_45

and i create a new variable (variable name: PATH and variable value: C:\Program Files\Java\jre1.8.0_45/bin ) in Environment Variables, is it correct? or this error related to this?

thanks
[Android Software/Hacking General [Developers Only]] carl1961:
you need jdk

http://www.oracle.com/technetwork/java/javaseproducts/downloads/index.html
[Android Software/Hacking General [Developers Only]] Haminjuri:
thanks

but no success
[Android Software/Hacking General [Developers Only]] mapleshadow:
Awesome!

I ask, Android wear system?

I tried deodexed moto360 5.0.2 of the framework file system, can not boot, always in the startup screen.....................
[Android Software/Hacking General [Developers Only]] kamalmawa:
Did you set the Java path and restart your PC as described here ? https://www.java.com/en/download/help/path.xml
[Android Software/Hacking General [Developers Only]] solologo:
java check failed ?

I have installed java indeed.
[Android Software/Hacking General [Developers Only]] DankHeals:
"Framework Folder Not Found"

Well that's interesting, seeing as I know this ROM is functional and I've followed these vague instructions to a T.

EDIT: I'm sorry, I shouldn't be having an attitude with you-- my kid is driving me crazy.
[Android Software/Hacking General [Developers Only]] Alex-V:
ok..i just found out that 2.5 gives me many problems in deodexing s6 edge 64 bit..now i use 2.4 with rename all arm64 to arm with zero problems..

anyway..big big thanks for this nice tool..good work :)
[Android Software/Hacking General [Developers Only]] aureliomilitao:
Please,

i use this program but

in process various errors

FAILED - Copy error in various APPS why ?

https://www.imageupload.co.uk/image/ZgSK
[Android Software/Hacking General [Developers Only]] hlxanthus:
Many of the actual play store apps like new stand and play music will fail. No worries, simply replace them with actual apks from the play store. Just make sure to extract and delete any libs found within (I use 7zip to open, extract and delete all without actually extracting the apk) and replace the outdated ones.

Sent from my Nexus 6
[Android Software/Hacking General [Developers Only]] MOHD TAQI:
Can anyone help me . I don't understand the procedure. Any video to explain the way ?
[Android Software/Hacking General [Developers Only]] Er. Aditya:
i am new to these stuff , i wanted to know that i deodexed android.policy.jar and there's no classes.dex present
[Android Software/Hacking General [Developers Only]] carl1961:
If you see no classes.dex then your deodex job failed.
[Android Software/Hacking General [Developers Only]] Tech 4 9:
OK... So I'm attempting this and not getting very far. Downloaded Oc1 ROM and JBD. I THINK I have the variable path set for Java, but how would I know, I have the ROM unzipped but I'm not seeing folders at all let alone a "system" folder.

JBD is not finding the ROM or any part of it under "browse". Any help appreciated.

(BTW... with all the good support and awesome downloads available on XDA, why the HECK isn't there a deodexed OC1 ROM out there already?! It should be well known that WE ALL NEED IT for xposed. Honestly I can't believe a deodexed OC1 ROM didn't pop up for download THE NEXT DAY.)
[Android Software/Hacking General [Developers Only]] elliwigy:
jbd will show the java path on main screen if set up properly.

also, did you extract a rom.zip or a tar file? if you have a system.img then it will not find it as it has to be the /system folder with all the stuff inside it.

---------- Post added at 09:40 AM ---------- Previous post was at 09:37 AM ----------

can you elaboate a bit more? I have a s6 edge 64 bit and jbd shows everything successful but every app fcs when i run the rom.. any help is appreciated?
[Android Software/Hacking General [Developers Only]] PIRATA!:
I need to get this straight.

I have a fresh download stock rom for my S5 Prime (Samsung Galaxy S5 Prime SM-G906K with Qualcomm Snapdragon 805 cpu).

I need to know how to come from that to a flashable rom.

Lets say I have just downloaded MY_STOCK_ODEXED_LOLLIPOP_ROM.zip

Inside it ther's the MY_STOCK_LOLLIPOP_ODEXED_ROM.tar.md5 file

If I rename it in a .tar file and open it with WinRAR, I see some .bin files, some .img files, some .mbn files, and some .img.ext4 files.

The huge file more then 2Gb it's the system.img.ext4 file that it should be the base stock firmware containing all the system files.

Now I think I should extract it...right?? How do I do that??

And after having extracted the three folders I need (/system/app/ , /system/priv-app/ and /system/framework/), how do I repack them in some flashable file like MY_STOCK_LOLLIPOP_DEODEXED_ROM.tar.md5 so to flash it with Odin like I do with stock firmwares??

........Or are there other methods for flashing a Deodexed stock firmware??

Thank you.
[Android Software/Hacking General [Developers Only]] elliwigy:
you need to read up lol.. easiest way is on linux pc to extract img files.. if not i use cygwin and dsxida kitchen to extract the img files.. then you just select the system folder in joeldroid and then create the rom.zip by building rom option in the kitchen..

theres lots more to it then just extracting especially if on windows since windows has trouble extracting img files.
[Android Software/Hacking General [Developers Only]] PIRATA!:
I found this post:

So you say that the only other things needed are cygwin and dsxida kitchen for building a rom?

Have you made it yongur self with success??

Will it trip KNOX its flashig?
[Android Software/Hacking General [Developers Only]] elliwigy:
i suggest you read up and study a bit more because its not simple.. you have to have the right tools and setup properly to successfuly build a rom.. you need to use a kitchin which most likely you need to set up cygwin (unless you are on a Linux build pc) before you even attempt.. once you set it up, you need to extract the tar file to kitchens original folder (the system img's boot img's and what not) then use the kitchen and follow the instructions to extract them.. then you need to use joeldroid to deodex the system folder and then use the kitchen to build the rom into a zip that is flashable in a custom recovery..

nothing in the process will trip knox.. if you unlocked your bl and use cwm or twrp recovery you most likely already tripped your knox..

however if you use root like ping pong root and multisystem or flashfire to flash the rom wothout a boot.img and without flashing a custom kernel or unlocking the BL then i dont think it will trip knox.. you should read in your respective device thread for knox tripping information.
[Android Software/Hacking General [Developers Only]] PIRATA!:
Thank you.

I'm already in the Deodexing phase.

I'm reading and downloading stuff for cygwin and dsxida kitchen.

About the KNOX, I was thinking to root with KingRoot and so keep it not triggered, and so not using any custom rcovery.

I am searching if it is possible to make a kitchen android rom with only pure stock and only deodexed with all stock things inside, so stock kernel, bootloader and modem, so to have some Odin file to flash without any custom recovery.

Do you know if it's pissible?

If It's not possible to make such a flashable file, I'll go for tripping KNOX and root with CF-Root and install Philz recovery so to flash my deodexed kitchen stock Lollipop rom.

At least in this case I'll have a custom recovery for troubling with Xposed.
[Android Software/Hacking General [Developers Only]] carl1961:
You really only need a working meta-inf folder for your phone from a full rom installer. and if you want it deodexed use the deodexer tool
[Android Software/Hacking General [Developers Only]] PIRATA!:
Installed last JDK 8u45 and the Boot.oat error is still there.
[Android Software/Hacking General [Developers Only]] elliwigy:
ive used 2 seperate deodex tools and not one is succesful.. i always get errors.. i wish there was a more in depth guide because simply deodexing doesnt work for most people..

i wish someone could deodex my rom for me lol
[Android Software/Hacking General [Developers Only]] PIRATA!:
You mean a flashable .zip file with stock rom inside?
[Android Software/Hacking General [Developers Only]] tangcla:
Would you be able to outline steps required to get the deodexed files back onto the phone? I tried putting the /system/app, /system/framework and /system/priv-app in a flashable zip file and it gets stuck on the pulsating blue LED and Samsung boot screen.
[Android Software/Hacking General [Developers Only]] elliwigy:
if you do not know how to use a kitchen then i would wait for a dev to put out a deodexed rom..

i was able to successfully deodex a rom finally! i did have a few apks not deodex but i copied from another variants deodexed rom the few apks and replaced in rom.zip and it worked!

not sure why gmscore and bluetooth apks didnt deodex properly..
[Android Software/Hacking General [Developers Only]] tangcla:
The problem is that I require a specific variant of the ROM to have full functionality - and most ROM chefs will not be using this variant as their base.

I'd be happy to pay someone a few dollars to create a stock deodexed ROM for me.
[Android Software/Hacking General [Developers Only]] elliwigy:
it worked for me.. i only took the gmscore.apk from a g925f for my g925v.. of course some things will not be advised but gmscore is pretty standard for most androids.

it took me forever just to figure mine out lol. i still have some minor issues also so im not one thatd volunteer lol. you need someone more seasoned than i
[Android Software/Hacking General [Developers Only]] yashkadam0012:
boot.oat not found error plz help
[Android Software/Hacking General [Developers Only]] PIRATA!:
I made a flashable .zip to flash back deodexed files that should work: http://xdaforums.com/showthread.php?p=60978565
[Android Software/Hacking General [Developers Only]] slicetwo:
Would this allow me to take the stock TW 5.0 ROM from this thread - http://xdaforums.com/att-galaxy-s5/general/how-to-update-to-g900aoca-5-0-keeproot-t3076803 - deodex it, and then flash it to my phone? I'd love to have the stock ROM with the option to use Xposed.
[Android Software/Hacking General [Developers Only]] elliwigy:
try it and let us know. This tool is a batch deodexer.. that is all it does.. it will deodex the rom but everything else who knows.

we dont even know what phone you have or what carrier or anything to answer your question
[Android Software/Hacking General [Developers Only]] slicetwo:
Good point. Galaxy S5 g900a on AT&T already running rooted stock TW Lollipop from the thread I mentioned.
[Android Software/Hacking General [Developers Only]] PIRATA!:
I already see a deodexed version of that rom at your link...
[Android Software/Hacking General [Developers Only]] :
just to mention to you all, this will not work on Android M Preview (without modifications)

they changed the boot.oat extraction
[Android Software/Hacking General [Developers Only]] Shawn5162:
Ymm...CM 12 is ALREADY DEODEXED...:/
[Android Software/Hacking General [Developers Only]] serajr:
Congrats!!

Thank you so much!!!
[Android Software/Hacking General [Developers Only]] osas514:
I don't think so

It's still odexed

Decompiling system ui with apktool_2.0.0rc3.jar actually reveals no smali folder which I think is only available on deodexed rom

Am actually trying to deodex my rom to use 3minit battery mod
[Android Software/Hacking General [Developers Only]] KenTcN:
unlucky I use this wonderful tool deodex Samsung n9005 lollipop tw version ,not cm ,in the window it show all success but when I try to flash it to my phone,it can't boot.
[Android Software/Hacking General [Developers Only]] Shawn5162:
I had the same issue on Moto G 2014...The ROM didn't boot
[Android Software/Hacking General [Developers Only]] joeldroid:
can you send me some of the files which are causing the error, I will investigate and get back to you.

I can't promise any eta as I'm down with Viral Flu... might take a few more days to recover :(
[Android Software/Hacking General [Developers Only]] raynan:
Aw, man... That's no fun. I don't think any of us expect you to fix anything with that.
[Android Software/Hacking General [Developers Only]] DoctorStrange96:
Got this error here when I try using a deodexed systemui:

E/AndroidRuntime(23548): FATAL EXCEPTION: main
E/AndroidRuntime(23548): Process: com.android.systemui, PID: 23548
E/AndroidRuntime(23548): java.lang.VerifyError: Rejecting class com.android.systemui.keyguard.KeyguardViewMediator because it failed compile-time verification (declaration of 'com.android.systemui.keyguard.KeyguardViewMediator' appears in /system/priv-app/SystemUI/SystemUI.apk)
E/AndroidRuntime(23548): at java.lang.reflect.Constructor.newInstance(Native Method)
E/AndroidRuntime(23548): at java.lang.Class.newInstance(Class.java:1572)
E/AndroidRuntime(23548): at com.android.systemui.SystemUIApplication.startServicesIfNeeded(SystemUIApplication.java:115)
E/AndroidRuntime(23548): at com.android.systemui.SystemUIService.onCreate(SystemUIService.java:31)
E/AndroidRuntime(23548): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2763)
E/AndroidRuntime(23548): at android.app.ActivityThread.access$1800(ActivityThread.java:148)
E/AndroidRuntime(23548): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1375)
E/AndroidRuntime(23548): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(23548): at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime(23548): at android.app.ActivityThread.main(ActivityThread.java:5312)
E/AndroidRuntime(23548): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(23548): at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime(23548): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901)
E/AndroidRuntime(23548): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696)

Does anyone know what may be causing this? No error was shown during the deodexing process.

Moto G 2013 running stock 5.0.1.
[Android Software/Hacking General [Developers Only]] Tech N You:
You have been facing java issues. Update your java jdk and base java then deodex
[Android Software/Hacking General [Developers Only]] DoctorStrange96:
Thanks. Both my jdk and jre were indeed old. Will update them now and try again.

Edit: does it work with Java 8? Im asking because thats the version I have installed here
[Android Software/Hacking General [Developers Only]] Tech N You:
Should work now try. :D:thumbup:
[Android Software/Hacking General [Developers Only]] DoctorStrange96:
Alright, just updated to Java 8 here, both jre and jdk, and deodexed everything again. Lets see if its gonna work this time

Edit: it didnt work at all, I got the exact same error Ive posted here earlier, even after updating Java and all. Maybe Motorola did something inside the apk itself?
[Android Software/Hacking General [Developers Only]] mrjaydee82:
I'm having the same issues with the nexus 6
[Android Software/Hacking General [Developers Only]] raynan:
Has anyone tried the original script this one was based off of to make sure it is a problem with this specific tool?
[Android Software/Hacking General [Developers Only]] DoctorStrange96:
Yes. Tried it. Same verification error, although with an earlier apk (from 5.0). Hell, why doesn't Moto just do things the Google way and disappear with those odexes? :mad:

The GPE rom for the Moto G comes deodexed. Wait, hold on, even the Nexi (maybe thats the plural of Nexus?) have odexed roms?
[Android Software/Hacking General [Developers Only]] raynan:
Haha, I think it had to do with the way ART works and it just ends up being easier/more efficient to create odex files from their end. Unless it really speeds things up THAT noticeably.
[Android Software/Hacking General [Developers Only]] DoctorStrange96:
Hm, it really might be that. Guess we'll have to wait until updated baksmali & smali jars are released or sth. For now I'll stick with 4.4.4. Dalvik may be slower than ART but it doesn't require more space when optimizing apps, plus, that issue I've reported here doesn't happen with it, and last, I can use Xposed :p

For now, KitKat > Lollipop. Just my opinion :)
[Android Software/Hacking General [Developers Only]] Golv:
Hi all!

You can try to use my deodex tool for lollipop:

[TOOL] [Upd. 29 Dec.] FULL DEODEXER for Android Lollipop | Tested on GPE 501 stock ROM *HTC M7

All works fine for me and I deodex my rom without errors.

Please upload your boot.oat and I try to decompess it.
[Android Software/Hacking General [Developers Only]] Golv:
Try to use this latest tool...

Many THX @ _riddle!!!

Happy new 2015 Year!!!
[Android Software/Hacking General [Developers Only]] joeldroid:
New version added with all reported bugs fixed

thanks @Golv and @_riddle for all the help.

thanks [MENTION=5941042]Tech N You[/MENTION] for the support

thanks [MENTION=5736790]kingkaminari[/MENTION], [MENTION=2477527]mrjaydee82[/MENTION], [MENTION=5323673]Shawn5162[/MENTION], [MENTION=3427017]raynan[/MENTION] for the support and reporting bugs,

All is fixed.

Happy New Year Everyone, and Happy Modding.
[Android Software/Hacking General [Developers Only]] PIRATA!:
How do you guys replace back the three deodexed folders??

Tnx.
[Android Software/Hacking General [Developers Only]] bdorr1105:
anyone try to deodex on Android M Developer Preview? I can not successfully extract the boot.oat

I am not sure if I need to have installed this first, then pull the system folders /priv-app /app /framework to properly deodex....How much different would this be from the lollipop process?

---------- Post added at 11:25 AM ---------- Previous post was at 11:24 AM ----------

Is there a way that is working? if so please send my way
[Android Software/Hacking General [Developers Only]] carl1961:
Completely different file layout , android m has oat folder
[Android Software/Hacking General [Developers Only]] bdorr1105:
Thats cool and all, but has that been figured out yet or is this a work in progress
[Android Software/Hacking General [Developers Only]] carl1961:
I say until android m is officially released I doubt any work to deodex android m will be done.
[Android Software/Hacking General [Developers Only]] bdorr1105:
Why? If [MENTION=4482551]joeldroid[/MENTION] doesn't mind taking a look I would appreciate it
[Android Software/Hacking General [Developers Only]] fantap:
can any 1 please put video with all instructions

thanks

I tried a lot, but without success
[Android Software/Hacking General [Developers Only]] vijay.alapati:
Sorry to ask....but what does this do....i was hear to know if this can convert my Odex rom to Deodex ROM for installing xposed on touchwiz running 5.0.1.

hope i can use this tool?
[Android Software/Hacking General [Developers Only]] Adizzzle:
Read the first post. ?
[Android Software/Hacking General [Developers Only]] beauwilliams:
I am trying to get the deodexed /system folder on my phone. But not sure how exactly.. I know I need to wipe /system /cache and /data/dalvik-cache before I push the deodexed system folder.

I am just not sure how to push the system folder with the right permissions. Do I need to make an update zip with a working update-binary to flash with TWRP or is there an easier way?
[Android Software/Hacking General [Developers Only]] Joeisgood99:
/OUTPUT folder

Great work [MENTION=4482551]joeldroid[/MENTION]

Quick Question or 3

Q1. After i get output "Deodexing Complete", inside the the System folder there is still the /OUTPUT folder which is empty.

Im assuming your tool moves deodex apps from OUTPUT folder back to originall app location before the script ends, that I can just delete the OUTPUT folder before zipping it all back up?

Q2. I made my installable rom.zip from a nand backup of stock rom on my phone, which is the rom Im deodexing.

My phone is a HTC m7

After extracting sthe system folder there is no /arm/boot.oat in system/framework.

I had to extract the data folder from the NAND, then go to dalvic-cache/arm. Coppy the /arm folder in to system/framework. then rename system/framework/arm/system@framework@boot.oat to boot.oat

Then ran your tool, worked without an error. After I noticed the system subfolders were back to there original state before i coppied /arm. in to /framework. Did your script do that?

Your toolworked fine, said 17 apps had been deodexed without errors. havent tried to flash the .zip yet.

Q3. Is there only ment to be 17 apps to deodex on a stock rom all up?

Sorry for the noob Qs

Thanks again for your tool.
[Android Software/Hacking General [Developers Only]] leonardoafa:
I used the tool to deodex stock Moto X 2nd firmware Lollipop 5.1 API22. The log tells me everything succeeded, but after flashing the deodex files the rom do not boot anymore. Any advice? Is it compatible to do such job with 5.1 firmware? Thanks
[Android Software/Hacking General [Developers Only]] Adizzzle:
Not sure I tried with 5.0.2 Lollipop and also had a bootloop'in fun time with my S6 Edge. :cool:
[Android Software/Hacking General [Developers Only]] leonardoafa:
Do you make it? Or still not booting?
[Android Software/Hacking General [Developers Only]] _riddle:
Please have a try to use new version oat2dex, it may solve some runtime issues.

https://github.com/testwhat/SmaliEx/releases
[Android Software/Hacking General [Developers Only]] juanpirulo:
I used the following method to deodex xperia z1 .270 lollipop.

the new oat2dex works on joeldroid ( just replaced the old one with the new). But I gonna share how i made my deodex because i used both tools (svadev and joeldroid) because both have diferents results.

- I used mostly everything from joeldroid but i get gsmcore and maps from svadev , the first one serajsr advice to do it with this tool because gsmcore needs to be done with three classes dex and maps because joeldroid is not able to deodex.

- I moved SemcGenericUpRes.apk to App because in framework folder its not deodexed .

- Also svadev generates some symlinks for this apks while joeldroid leaves the libs inside the folder of the apk.

The necessary links for applications libraries:

symlink("/system/lib/libbluetooth_jni.so", "/system/app/Bluetooth/lib/arm/libbluetooth_jni.so");

symlink("/system/lib/libMiscTaAccessor.so", "/system/app/bootinfo/lib/arm/libMiscTaAccessor.so");

symlink("/system/lib/libcrashmonitorjni.so", "/system/app/CrashMonitor/lib/arm/libcrashmonitorjni.so");

symlink("/system/lib/libcrashmonitorjni.so", "/system/app/CrashMonitorSystem/lib/arm/libcrashmonitorjni.so");

symlink("/system/lib/libdrmdialogs.so", "/system/app/DrmDialogs/lib/arm/libdrmdialogs.so");

symlink("/system/lib/libimscamera_jni.so", "/system/app/ims/lib/arm/libimscamera_jni.so");

symlink("/system/lib/libimsmedia_jni.so", "/system/app/ims/lib/arm/libimsmedia_jni.so");

symlink("/system/lib/libnfc_jni.so", "/system/app/Nfc/lib/arm/libnfc_jni.so");

symlink("/system/lib/libjni_pacprocessor.so", "/system/app/PacProcessor/lib/arm/libjni_pacprocessor.so");

symlink("/system/lib/libprintspooler_jni.so", "/system/app/PrintSpooler/lib/arm/libprintspooler_jni.so");

symlink("/system/lib/libservicemenu.so", "/system/app/ServiceMenu/lib/arm/libservicemenu.so");

symlink("/system/lib/libcredential-manager-service.so", "/system/priv-app/CredentialManagerService/lib/arm/libcredential-manager-service.so");

symlink("/system/lib/libdefcontainer_jni.so", "/system/priv-app/DefaultContainerService

I am not sure which one is the correct way but i do it like this. If someone can comfirm this method is ok i will apreciatte it.
[Android Software/Hacking General [Developers Only]] yuannovesa:
Dev.. how to odex to deodex rom.. i just have cwm backup rom.. cant have zip cusrom...