yashsingh1/xdaforums huggingface dataset:
[Galaxy S 5 General] _riddle:
The output odex folder is just temporary. It can be deleted once dex files were generated.

To deopt application, use "java -jar oat2dex.jar app.odex dex" will also work.

I added a easier function to get deodexed jars, but currently only include boot jars.

java -jar oat2dex_v03.jar auto

It will get all boot jar related files and generate deodexed jars to folder "result-jar".

(It will need to connect device and adb executable in environment path or same folder to work.)
[Galaxy S 5 General] svadev:
[MENTION=6258761]_riddle[/MENTION]

Can you also make so that you can specify the folder /system on the disk so it took the files and not from the device
[Galaxy S 5 General] Golv:
Thank you for the new version, but the previous works fine for me except for error with file, which I wrote and gave a link. For myself, I wrote script for dos for automatic decompile and deodex all apk and jar or only selected app. Everything from deodexed rom is working fine all this day. Only issue with the above file. If you will be able to see it - it would be great! I can upload boot.oat, if you need..

g:\oat2dex>java -jar oat2dex.jar Launcher2.odex odex
12-21 07:55:01:793 Preparing bootclasspath from odex
12-21 07:55:03:088 De-optimizing /system/priv-app/Launcher2/Launcher2.apk
Exception in thread "main" org.jf.util.ExceptionWithContext: Unsupported instruction format: Format22cs
at org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexW riter.java:1008)
at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeI tems(DexWriter.java:769)
at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter. java:222)
at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter. java:200)
at org.jf.dexlib2.writer.pool.DexPool.writeTo(DexPool .java:99)
at dext.OatUtil.extractToDex(OatUtil.java:271)
at dext.OatUtil.oat2dex(OatUtil.java:140)
at dext.OatUtil.main(OatUtil.java:160)
[Galaxy S 5 General] _riddle:
[MENTION=6242674]svadev[/MENTION]

try: java -jar oat2dex_v04.jar auto <system-folder>

[MENTION=4445238]Golv[/MENTION]

Try Launcher again.

In this case, I print some messages like below, but it should be ok.

Risky resolved field from debug info. class=Lcom/android/launcher2/AppsCustomizePagedView; method=syncWidgetPageItems field-type=Landroid/content/pm/ResolveInfo; instruction-address=345

Due to check-cast is optimized out to 2 nop, and v21 is assigned by java/lang/Object, v14 has no information to refer its type that caused error.

[odex content of com.android.launcher2.AppsCustomizePagedView :: syncWidgetPageItems]

.line 1192

invoke-virtual {v9, v13}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

move-result-object v21

...

move-object/from16 v14, v21

.line 1214

nop

nop

.line 1215

.local v14, "info":Landroid/content/pm/ResolveInfo;

new-instance v12, Lcom/android/launcher2/PendingAddShortcutInfo;

.end local v12 # "createItemInfo":Lcom/android/launcher2/PendingAddItemInfo;

iget-object-quick v2, v14, field@0x8​

After recover it from debug info, it looks correct.

[deodexed content]

...

new-instance v12, Lcom/android/launcher2/PendingAddShortcutInfo;

.end local v12 # "createItemInfo":Lcom/android/launcher2/PendingAddItemInfo;

iget-object v2, v14, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;​
[Galaxy S 5 General] Golv:
[MENTION=6258761]_riddle[/MENTION]

With this version oat2dex_v04.jar - all is OK for Launcher2.apk.

This app was deodexed and after that ALL deodexed system works!

THANK YOU for great work!!! :good:
[Galaxy S 5 General] Golv:
[MENTION=6242674]svadev[/MENTION]

Try to run in command line:

java -Xmx1024m -jar oat2dex-v04.jar boot boot.oat
[Galaxy S 5 General] svadev:
Thanks, with command line and -Xmx1024m v04 works.

But for four files (maps.odex, Music2.odex, DocumentService.odex, SamsungLinkPlatform.odex) de-optimazing still done with errors.

New version of tool (now fully worked) posted in post #1.

Big thanks [MENTION=6258761]_riddle[/MENTION]!
[Galaxy S 5 General] _alexndr:
Thanks :D but most of apps in /app and /priv-app does not contain classes.dex inside after passing the whole procedure... (e.g. SamsungCamera3.apk, SecMms_Candy.apk ...)
[Galaxy S 5 General] svadev:
Tested

Now i tested tool with 5.0 (L7) for S5 - all work finely, except -

maps.odex, Music2.odex, DocumentService.odex, SamsungLinkPlatform.odex - de-optimazing still done with errors.
[Galaxy S 5 General] tdunham:
[MENTION=3271517]carl1961[/MENTION]

Thanks for the nudge in the proper direction sir. I've been using one of the old utilities for this since I was getting the processor architecture error too with the latest but that old one didn't work with Android 5.1.1.

Finally determined that I had to wipe out all java, reinstall the full java JDK and set the environment path for it to get recognized properly.
[Galaxy S 5 General] carl1961:
also I learned, to deodex with both this deodexer and joe's deodexer.

Joe's deodexer does the framworks correctly, and this one here does the app and priv-app correctly. so it takes both to get a good deodexed rom. I have not dug into the batch files use in these two deodexer tools, but both together gets the job done
[Galaxy S 5 General] tdunham:
Does anyone happen to have system/priv-app/CarrierSetupWizard working ok on their deodexed build?

We get a force close on the app and I cant seem to find it in other 5.1.1 android builds so it might be new to the Galaxy Note 5.
[Galaxy S 5 General] Crash:
Here you go mate

https://github.com/testwhat/SmaliEx/releases
[Galaxy S 5 General] opt_step:
error deodex framework
[Galaxy S 5 General] Masoud.Ser:
hi 2 question

1-i after deodex rom for xperia z1 and z2 and Replacing files and Set permissions and reboot rom The error burst (com.android.phone has stopped)

but after test on xperia z3 no problem.

2-I have a question for Flash Files deodex I used the updater-script from my rom prerooted (PRFCreator) but But installation is not done

What is the solution?
[Galaxy S 5 General] jazzespresso:
intersting, I am about to deodex Tab 4 5.1.1....this gave me the idea now; so what you personally recommend is, use Joe's deodexer framework, and this one for both priv-app and app?
[Galaxy S 5 General] carl1961:
it worked for me on two different roms
[Galaxy S 5 General] jazzespresso:
an interesting issue; using Joe's Deodexer, android.policy.jar showed as 1K asize, while this one did it for 324K.

so decided to see what's going on, I decompiled android.policy.jar (1K size), and has nothing in it (was not surprising)...

I wonder if Joe's Deodexer's oat2dex.jar updated? which one I should get? https://github.com/testwhat/SmaliEx/releases

or better, oat2dex.jar PM it to me :D
[Galaxy S 5 General] carl1961:
I used the one from this thread by svadev (2.0.6-77825cde-dirty) oat2dex v0.83 and used it in Joe's Deodexer (2.0.5-0f8017e1-dirty)

oat2dex v0.83

https://github.com/testwhat/SmaliEx/releases/download/0.83/oat2dex.jar
[Galaxy S 5 General] jazzespresso:
thanks Carl, I will give a try and see

---------- Post added at 02:45 PM ---------- Previous post was at 02:19 PM ----------

when you open Joe's Deodexer? what Java version it says, mine says : Java 8 update 31
[Galaxy S 5 General] carl1961:
ver 40
[Galaxy S 5 General] skeleton1911:
i have a bootloop after flashing the deodex files.

but all seems ok.

i deodexed it with the oat2dex.jar in this tool (x64) and removed the left arm (x32) folders ..

maybe i did something wrong or missed something..

the log is attached, please help

thanks in advance :)
[Galaxy S 5 General] tx_dbs_tx:
I can tell you for sure that one of your problems (if not the only problem) is that these two files DO NOT like to be deodexed and WILL cause either a no boot or FC's. You need to get the updated apk's from google play and use them instead. they're already deodexed. Most all google framework files don't work if deodexed. This has been my experience. Besides this, SVA deodexer has been the most reliable Lollipop deodexing tool i have used.

/system/app/webview.apk

/system/priv-app/GmsCore.apk
[Galaxy S 5 General] skeleton1911:
I will check that asap . thank you.

Hope thats the only problem

Gesendet von meinem Elephone P8000 mit Tapatalk
[Galaxy S 5 General] jazzespresso:
hey what about x86 device, such as asus zenpad lollipop? any special requirements?
[Galaxy S 5 General] SolarTrans:
Having the same issue with processor architecture not defined... Running Java 8 64 bit, cmd prompt recognizes it, and I have the 64 bit deodexer trying to deodex the app and priv-app folders from my S6 edge+ g928T.

Not sure what to do at this point; thanks in advance for any help!
[Galaxy S 5 General] tdunham:
Add the path to java to the environment variables. Tons of guides for this showing where it is.
[Galaxy S 5 General] badnaffy:
hello guys,

a little noob question :)

I have pulled the apps\system apps\framwork folder with adb to pc and put all 3 folder in one folder colled system.

But i cant select this system folder with the program to deodex it. What do i wrong.?

sorry for my bab english
[Galaxy S 5 General] SandeepEmekar:
I can't deodex framework folder.

I am using Stock ROM of S6 Edge G925F.

Tried both 32bit and 64bit versions.

Please help me.
[Galaxy S 5 General] Looki75:
Hello [MENTION=6242674]svadev[/MENTION] and others!

I need your help guys!

When I launch the tool, it runs for about 5-7 minutes, taking files one after the other but I get errors everywhere.

The tool says: "Files deodexed succesfully: 0, with errors: 331."

The log file shows errors for each single file...

The error seems to be always the same: "Unsupported major.minor version 52.0" (see log file attached).

Can anyone help me please?

Thanks!
[Galaxy S 5 General] svadev:
You must install latest java version
[Galaxy S 5 General] Looki75:
Thanks for the very quick reply!

do you mean Version 8 Update 60?

I am right now on Version 7 Update 80...

It seems I've read somewhere that the latest version might not work...

Thanks

---------- Post added at 05:53 PM ---------- Previous post was at 05:30 PM ----------

There is still something wrong I think...

After java update, it says successful, but the apk files are still the same.

There is no classes.dex file in them....???

And they have the same MD5 before and after the tool usage...???

Any help?

Thanks
[Galaxy S 5 General] Looki75:
[MENTION=6242674]svadev[/MENTION] don't know what to do... Still same issues...
[Galaxy S 5 General] svadev:
You must install correct jave version
[Galaxy S 5 General] Looki75:
[MENTION=6242674]svadev[/MENTION]

Which one then?

I had v7u80 it was not working...

Now I have v8u60 there is no error in log but nothing is deodexed....

Which version/update do you suggest?

Thanks
[Galaxy S 5 General] The Sickness:
32 bit
[Galaxy S 5 General] Looki75:
This is exactly what I have... Java v8u60 32bit...???
[Galaxy S 5 General] Hamidreza2010:
[MENTION=6242674]svadev[/MENTION]

Hi dear

Can i deodex my 5.1.1 from sony device?
[Galaxy S 5 General] svadev:
I think - may be.

But i dont tested it on Sony models. I have no any Sony phones.

On Samsung S6, Note 5, with 5.1.1 it works fine.
[Galaxy S 5 General] dkionline:
I say from Z2 upwards no Problem, but Z1 and down u Need another tool to deodex it.
[Galaxy S 5 General] Hamidreza2010:
Ok do you know what tools ?

i want to deodex my xperia z on 5.1.1

ok

thanks , i,ll try to test
[Galaxy S 5 General] dkionline:
Here: http://xdaforums.com/crossdevice-dev/sony/guide-deodexing-10-6-1-0-454-odex-sqfs-t3116313
[Galaxy S 5 General] Hamidreza2010:
Ok thanks

I,ll try it
[Galaxy S 5 General] chienduongvan:
I dont'n deodex llippop 5.0
[Galaxy S 5 General] galliard:
Samsung galaxy S4 5.0.1

Does it support samsung galaxy s4 lollipop 5.0.1 version?

After selecting system directory, when i try to execute it keeps saying "Please, select a path to stock /system directory..." :confused:
[Galaxy S 5 General] mauriicio21:
Wrong directory our missing files

Enviado de meu SM-G920F usando Tapatalk
[Galaxy S 5 General] galliard:
Please tell me what is required?

I pulled app, priv-app and framework directories from system through adb. Drag n drop system directory to path and double click. It takes some time and shows 1 directory discovered message. But not let me to select check boxes and clicking on execute button deselect path in combo box...
[Galaxy S 5 General] tdunham:
Is the path not showing?

You must also have build.prop file from system along with the 3 system folders.

For example you create a new folder on hard drive and place framework, app & priv-app folders in the new folder along with build.prop file.

Edit: If this does not work, you need to post what it shows for the error.
[Galaxy S 5 General] galliard:
after adding build.prop, now it detect the rom but executed with errors. While examining log file it says, Unsupported major.minor version 52.0. Please see attached log file for details... :(
[Galaxy S 5 General] tdunham:
If you had searched the thread it would have pointed you to installing the latest java development kit.

You must also add java binary folder path into your environment path once that is complete.

You can search google how to add java environment path to windows.
[Galaxy S 5 General] galliard:
Worked with java 8(1.8.0_60), now there are two more folders dex and odex beside app,priv-app and framework. Please tell me next step, either i can simply push three folders (app,priv-app and framework) back with converted apks or push dex and odex as well?
[Galaxy S 5 General] rlmiller:
[MENTION=1042140]tdunham[/MENTION]

Thank you for taking the time to help and explain the steps
[Galaxy S 5 General] frequentc:
I'm guessing that the dex and odex folders are just temporary directories that were used in the deodexing process. I just ignored them and used the app, priv-app, and framework folders, and it seems to have worked fine.
[Galaxy S 5 General] lurenzhe:
Sorry, but where I can find those folders?....like priv-app etc.....

I have been downloading stock lollipop FW from samsfirmware, and unzipping into tar and unzipping to Folder with Files like "system.img.ext4"!!!!

But these Files cant unzip with WinRAR!

Java 8 is on Board, and Path is set. ADB is installed. Firmware Folder is C:\TEMP.

Where is the fu....ing mistake????

What I´ve been done wrong?

I´m on Win10 x64
[Galaxy S 5 General] tdunham:
Cursing is not acceptable on XDA, masked or not.

You need to do some more research on how to extract the full tarball.

Archikitchen will do it among other methods.
[Galaxy S 5 General] lurenzhe:
Thanks a lot for your answer.

and sorry for cursing.

Ok, it´s just a matter of kind to extract these files.

Do you know any kind of software how i can do that?
[Galaxy S 5 General] usernome:
I deodexed an i9505 , I erased app , priv-app and framework from the system folder , I copied the deodexed ones and now the phone hangs on logo .

What did I do wrong ?

Thanks !
[Galaxy S 5 General] Whiskey103:
^^ This!
[Galaxy S 5 General] @soka:
Did you set the correct permissions for each file and folder?
[Galaxy S 5 General] hiyachi-32:
could you pls explain how this tool work?
[Galaxy S 5 General] Damian:
Hi guys. Is anyone can help me why i have a lot of errors?

All files are in disk C:\my_folder

ADB installed, Java installed.

Added logfile.

I tried it with newest sm-g920f rom COI9 for region XEF zipped by ArchiKitchen, debloated.

I tried to find any manual for this tool but unfotunately there is nothing in google.

Regards.
[Galaxy S 5 General] The Sickness:
You need to use 32 bit Java
[Galaxy S 5 General] Damian:
@up thanks for answer.

Problem is still the same. I used 32 bit Java and tried 32 bit and 64 bit tool.

Nothing works.

Tried on win7 64 bit and win10 64 bit.

Any other suggestions?
[Galaxy S 5 General] tdunham:
Do you have java set in your environment path?
[Galaxy S 5 General] Damian:
How to do it?

That is what i said, there is no manual for this tool.
[Galaxy S 5 General] tdunham:
Google how to set java environment path.

---------- Post added at 04:26 PM ---------- Previous post was at 04:24 PM ----------

And that has nothing to do with this tool. It is stated as a requirement for java jdk install.
[Galaxy S 5 General] Damian:
I have installed Java 32 bit. Found manual to do environment path and now it says Java is not installed...

---------- Post added at 07:21 PM ---------- Previous post was at 06:23 PM ----------

Ok. Will do fresh win7 64bit install and see what will happend next.
[Galaxy S 5 General] Damian:
Still nothing.

Java done, ADB done, Path done with (i can not post outside links as a less than 10 posts user)

Still same errors...

Have no more idea what i can do...
[Galaxy S 5 General] carl1961:
I'm Windows 7 64bit

First do this, check your java version on a command promp

start a command prompt and type java -version

Microsoft Windows [Version 6.1.7601]

Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\carl>java -version

java version "1.8.0_40"

Java(TM) SE Runtime Environment (build 1.8.0_40-b25)

Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)

then set Environmental Variables Path

press windows start icon the right click on computer and select properties and follow picture

;C:\ProgramData\Oracle\Java\javapath
[Galaxy S 5 General] Damian:
[MENTION=3271517]carl1961[/MENTION] You should create manual for this... :)

Now i can see dex and odex folders in C:\

Cheers mate.
[Galaxy S 5 General] Damian:
Anyway... All files has been deodexed but when i back tem to .zip folder and flash my rom, they all work fine apart of xposed... :(

I have been told that i will get info about rebuild some filer after deodexing but i do not get any and i dont know wht i should do now. :(

PLS help me guys.
[Galaxy S 5 General] carl1961:
look in the SVADeodexer folder where you seen your dex and odex folder and read the LogLines.log it just shows you the correct sysmlinks for lib files

as for xpose you will have to fine the correct working version for your phone,, like samsung is diffrent than other roms so I have to use a xpose fixed for samsung
[Galaxy S 5 General] Damian:
Yes i can see only this what is in attachment.

Can You tell me what i should do with it?
[Galaxy S 5 General] carl1961:
there is nothing to do, apparently no applications in your app and priv-app folder have any lib files to link.
[Galaxy S 5 General] Damian:
So i understand i need just to rebuild it in ArchiKitchen and everything should work?
[Galaxy S 5 General] carl1961:
should I always did mine manually

I replace the framework,app and priv-app that is in system folder with deodexed folders from SVADeodexer, then use I use a know working meta-inf folder and make changes in updater-script for my install.
[Galaxy S 5 General] Damian:
Huh.. I'm newbie and don't know how to do it.
[Galaxy S 5 General] tdunham:
If you want a fully flashable rom, most of us something like Archikitchen to build a flashable odexed rom first. Once you have a flashable odexed rom that works, then you can concentrate on swapping out the odexed folders with deodexed. Converting from odexed to deodexed doesn't always go smoothly since some files do not convert properly but the key to the whole process to have successful troubleshooting for going to deodex is to get the bootable stock build going first.
[Galaxy S 5 General] Damian:
I have bootable stock and it works fine.. I have deodexed files, but when i replace them in my rom.zip and rebuild it with ArchiKitchen, and tried to install on my phone it get a boot loop.
[Galaxy S 5 General] tdunham:
You don't have to rebuild. Swap out framework first and see if it boots.
[Galaxy S 5 General] Damian:
You mean copy old framework folder back to rom.zip?
[Galaxy S 5 General] tdunham:
You said you rebuilt in kitchen. Not sure what that means. You already had a bootable stock rom so why did you rebuild it again in kitchen instead of working with the base build that already works.
[Galaxy S 5 General] Damian:
I've been told by one person to do that. I still have .zip what is before rebuild. Will try it tomorrow. Have no power tonight.
[Galaxy S 5 General] Kellwa:
help please

my mobile HTC D820 u

i deodexed app & priv-app successfully

but my framework folder has (arm & arm64) folders and the tool deodex only the x64 odex files

what i tried

1. copied the framwork after deodex (with arm folder still there) but not booting

2. deodexed a second time and the arm folder is gone and copied files but not booting

note: am replacing files using aromafm and then removing old .odex files (in try 1 i removed arm64 folder and keep arm folder)

and sorry if my English is bad

please help me what files should i copy and what to keep or remove (should i keep any of boot.art or boot.oat)?
[Galaxy S 5 General] Jithu_Vijayakumar:
Hi All,

I'm using Samsung galaxy tab s 10. 5 LTE

I extracted system.img,Ran the tool and deodexed three folders (app,priv-app and framework)

Log files says successfull

I made a zip of all three folders and tried installing through twrp but installation fails

I tried replacing three folders and repacked the system.img,then built TAR.MD5 using Autotar and tried flashing through odin but nogo

Please help me

Update: Ok i have finally installed the deodexed folders through InstallerTemplate.zip
[Galaxy S 5 General] MarcoLK:
Hey guys. I want to deodex framework only! But how should i replace the folder?with es file explorer? Because i can not install any recovery(knox 0x0 but rooted).

Flashfire should work. What should i notice?
[Galaxy S 5 General] ravian29:
all gurus, i need some help with this, i have wasted 2 days on it but still did not fixed it. I am on windows 10 64bit i have tried both 32bit and 64bit version of jdk and jre also both version of this tool as well, i also have set environment for java but still no luck . Here is log please read and help me

32-bit Deodexer for Android Runtime (Version 3.5 ?? 20/07/2015) © Valery Studenikin, 2015

Path to stock /system directory: C:\Users\Admin\Desktop\delete\CustomRom\samsung rom extract\ORIGINAL\system

Android 5.1.1: SM-N9208, LMY47X.N9208ZTU2AOJ3, changelist 5970428, Tue Oct 13 22:50:52 KST 2015

Processor architecture: \arm64\

Files deodexed succesfully: 0, with errors: 377. CPU time: 00:02:08 (128.308 sec.)

Extacting and de-optimizing was terminated with errors for:

C:\PATH\boot.oat

C:\PATH\allshare.odex

C:\PATH\am.odex

files goes on to 377 lines

Finded errors saved to file: C:\PATH\LogLines.log

=============================> begin errors for CC:\PATH\boot.oat

Error: Unable to access jarfile C:\PATH

=============================> end errors for C:\PATH\boot.oat

all other stuff which i think is not necessary to paste here

EDIT:

got it working after changing folder, i just copied the system files and this tool to new folder and now its working
[Galaxy S 5 General] Kellwa:
please help

should i delete the boot.oat & boot.art files after deodex and pushing files?

i don't know what to do because am stock on boot animation after deodexing only framework

app & priv-app booted well after deodex
[Galaxy S 5 General] chuzpz:
works of processors to 64 bits?
[Galaxy S 5 General] The Sickness:
Yep
[Galaxy S 5 General] Damian:
Added some screen. I don't know what folder should be in Path exactly. Can anyone help me?

I need xeactly directory. I tried many combinations but nothing work. I'm on freshly installed windows. I lost my previous directory and can;t find correct one.
[Galaxy S 5 General] carl1961:
you use the bin folder

C:\Program Files\Java\jre1.8.0_40\bin put that in your environmental path with a semi colon at the front

;C:\Program Files\Java\jre1.8.0_40\bin
[Galaxy S 5 General] Damian:
Is ADB needed or not?
[Galaxy S 5 General] tdunham:
Also, don't forget that the path must be manually edited for the specific version of the java jdk you are running. Ignore jre folders that is standard java install, not the jdk.

Also, your path would be different from what [MENTION=3271517]carl1961[/MENTION] posted to \Java\jre1.8.0_60\bin (from your screenshot) due to language difference to program path.

Maybe ;C:\Pliki programow (x86)\Java\jre1.8.0_60\bin

(I cannot make special character as shown in your screenshot for this example)