yashsingh1/xdaforums huggingface dataset:
[Galaxy S 5 General] agentdeep:
What does this mean? Maybe this is the one giving me wifi issue on my deodexed lollipop ROM.

List of originally deodexed (within stock firmware) files, are left as they were originally:

/system/framework/core-libart.jar
[Galaxy S 5 General] svadev:
This means that the file /system/framework/core-libart.jar was originally deodex. And he left the same as it was.
[Galaxy S 5 General] agentdeep:
Thanks. I solved my wifi issue. It's only in buildprop.
[Galaxy S 5 General] mauriicio21:
ROM bootloop after deodex

Error only in samsunglinkplataform
[Galaxy S 5 General] NZnewbie:
Phone call log FC and Message app Fc After deodexing

Hi guys,

I have a small issue. AFter deodexing Framework, Apps, Priv apps on the new BOB7 the phone call log is blank(or empty) and it FCs and also the MmsCandy apk FCs after a text is sent. Ive looked throught the log and I can see the Warning but cant find any info on how to fix it.

This rom is a jumble of all sorts so dont look to hard!!!! :p. Its my first deodex attempt so go easy on me. Ill attach the log. Thanks for your time.

Cheers
[Galaxy S 5 General] NZnewbie:
Sorted it now... Tool worked great.
[Galaxy S 5 General] mauriicio21:
Deodex Bob7 and no fc

All working fine
[Galaxy S 5 General] laotzy:
I am getting the same error so I do nothing with the telefone. I want to know first why I get this error... Here you have the logcat. Any ideas?
[Galaxy S 5 General] NZnewbie:
I also got that error... but deleted it and moved on.
[Galaxy S 5 General] laotzy:
Moving on didn't bring any problems with your phone, did it?
[Galaxy S 5 General] mauriicio21:
first try didnt work, in second is working fine to me... unknow error, but now is working :silly:
[Galaxy S 5 General] NZnewbie:
No.. its working fine. Debloated it with no fc popping up so i guess its a success.
[Galaxy S 5 General] d8389:
Working now.

My misstake - I trying to deodex only framework, but I must also deodex SecSettingsProvoder & SecurityProviderSEC to boot.

Is there instruction and sample scripts for installing deodexed ROM's ?

To many symlinks inside, too many folders to delete + odexed applications in /preload simlinked to app
[Galaxy S 5 General] mauriicio21:
error when try to deodex oficial lp 5.0.2 SM-G901F
[Galaxy S 5 General] Goldie:
What is the point of this post? If you don't say what the error is you may as well not have posted anything!
[Galaxy S 5 General] mauriicio21:
Sorry, my mistake, but log say 301 app cant be deodexed

Now fixed
[Galaxy S 5 General] cruizz:
hello...thanks for the tool sir :) ... i am Sony user, i try using ur tool to deodex my CM12 rom and it's work. but now i have problem after instaling the deodexed files, it is on browser and mms app that suddenly got FC after i try open it... would you like to give me a clue/advice to fix it? :) ... if you don't mind, i also attach my logcat ...thanks for the awesome tool :)

this is my logcat for those app..

http://pastebin.com/8Bcc8VWT
[Galaxy S 5 General] mauriicio21:
Only stock roms are odexed... cm and all others aosp based already deodexed
[Galaxy S 5 General] HawKeyes_XDA:
delete
[Galaxy S 5 General] Deltadroid:
Hello,

[MENTION=6258761]_riddle[/MENTION]

I am able to deodex Android 5.0.2 and Android 5.1.0 using oat2dex.jar v0.6 without any errors, but I think there might be a problem with parsing out the dex files from boot.oat. After I have deodexed priv-app/SetupWizard.apk and framework/com.google.android.maps.jar, I have some NOP codes where class calls should be. This problem only affects deodexing certain apk and jar files that need to point to the boot.oat classpath. Here is an example of the smali from SetupWizard.apk after it has been deodexed. Notice the NOP codes are incorrect.

diff -ru SetupWizard-out/com/google/android/setupwizard/user/GoogleServicesActivity.smali SetupWizard.tab-out/com/google/android/setupwizard/user/GoogleServicesActivity.smali
--- SetupWizard-out/com/google/android/setupwizard/user/GoogleServicesActivity.smali	2015-03-17 16:20:52.070509917 +0100
+++ SetupWizard.tab-out/com/google/android/setupwizard/user/GoogleServicesActivity.smali	2015-03-17 16:21:00.262509911 +0100
@@ -66,9 +66,7 @@

const/4 v0, 0x0

- nop
-
- nop
+ check-cast v0, Ljava/lang/String;

invoke-static {v1, v0}, Lcom/google/android/setupwizard/util/GservicesValue;->value(Ljava/lang/String;Ljava/lang/String;)Lcom/google/android/setupwizard/util/GservicesValue;

diff -ru SetupWizard-out/com/google/android/setupwizard/util/GservicesChangedReceiver.smali SetupWizard.tab-out/com/google/android/setupwizard/util/GservicesChangedReceiver.smali
--- SetupWizard-out/com/google/android/setupwizard/util/GservicesChangedReceiver.smali	2015-03-17 16:20:52.114509917 +0100
+++ SetupWizard.tab-out/com/google/android/setupwizard/util/GservicesChangedReceiver.smali	2015-03-17 16:21:00.322509911 +0100
@@ -56,9 +56,7 @@

const/4 v0, 0x0

- nop
-
- nop
+ check-cast v0, Ljava/lang/String;

invoke-static {v1, v0}, Lcom/google/android/setupwizard/util/GservicesValue;->value(Ljava/lang/String;Ljava/lang/String;)Lcom/google/android/setupwizard/util/GservicesValue;

The problem is always with "check-cast".

Here is another example of the same problem with one of the framework jar files. This patch is reversed.

diff -ru com.google.android.maps com.google.android.maps-out
diff -ru com.google.android.maps/com/google/android/maps/InternalR$styleable.smali com.google.android.maps-out/com/google/android/maps/InternalR$styleable.smali
--- com.google.android.maps/com/google/android/maps/InternalR$styleable.smali	2015-03-15 14:54:29.680986830 +0100
+++ com.google.android.maps-out/com/google/android/maps/InternalR$styleable.smali	2015-03-15 15:00:45.712986537 +0100
@@ -56,7 +56,9 @@

check-cast v0, [I

- check-cast v0, [I
+ nop
+
+ nop

sput-object v0, Lcom/google/android/maps/InternalR$styleable;->MapView:[I

Any help would be greatly appreciated. Best Regards.
[Galaxy S 5 General] gavster26:
hi im trying to deodex a sony stock lp rom. The problem is the tool wont find or display the file path to the rom tried drag and drop brows to the folder input the path manualy and double tap to search the whole computer nothing is working. Does anyone know what my problem is or is this only for samsung roms thanks
[Galaxy S 5 General] dkionline:
It works with 32bit version on Xperia Z2. But after deodexing it changes nothing, system filesize is the same. ^^
[Galaxy S 5 General] mauriicio21:
Checked new folders in tool folder?
[Galaxy S 5 General] bobfrantic:
Just wondering, what are you all using to extract the folders from the system.img.ext4 for deodexing?
[Galaxy S 5 General] starbucks2010:
simg2img to convert system.img.ext4 to system.img and then use ext2explore to extract the files from resulted system.img.

Good luck.
[Galaxy S 5 General] dkionline:
Will take a look later. Should i replace stock with them?

Theres many Options. Using the method mentioned above, or use Linux Reader.
[Galaxy S 5 General] aoprea:
I deodexed firmware for G900FD ... all goods .. but after install rom i have error on Google play service

and i can't add google account to phone

in rest all are good

what i can do ?

here is the log of svadeodexer

Deodexer for Android Runtime (art) (Version 2.5 ?? 05/01/2015) © Valery Studenikin, 2015

Path to stock /system directory: D:\deodexer\sva\system
Android 5.0: SM-G900FD, LRX21T.G900FDXXU1BOC1, changelist 4350789, Tue Mar 3 10:37:14 KST 2015
Files deodexed succesfully: 215, with errors: 0. CPU time: 00:05:45 (345.222 sec.)

List of originally deodexed (within stock firmware) files, are left as they were originally:

/system/framework/core-libart.jar
/system/app/ConfigUpdater.apk
/system/app/GoogleCalendarSyncAdapter.apk
/system/app/GoogleContactsSyncAdapter.apk
/system/app/ResourceManager.apk
/system/app/SPenSdk3.apk
/system/app/WebViewGoogle.apk
/system/priv-app/GoogleBackupTransport.apk
/system/priv-app/GoogleFeedback.apk
/system/priv-app/GoogleLoginService.apk
/system/priv-app/GoogleOneTimeInitializer.apk
/system/priv-app/GooglePartnerSetup.apk
/system/priv-app/GoogleServicesFramework.apk
/system/priv-app/Phonesky.apk
/system/priv-app/SamsungLinkPlatform.apk
/system/priv-app/SNS.apk
[Galaxy S 5 General] hung941:
help me

When i use this tool to deodex rom Lollipop of S4 E330l

Then in Logline.log :sucessfull 0 with erro 347

please help me :((

---------- Post added at 06:03 PM ---------- Previous post was at 05:22 PM ----------

.......

---------- Post added at 06:07 PM ---------- Previous post was at 06:03 PM ----------

...
[Galaxy S 5 General] hung941:
When i deodex rom s4 e330l , i see error

Could u help me?
[Galaxy S 5 General] svadev:
v2.6

In post #1 published v2.6
[Galaxy S 5 General] russel5:
[MENTION=6242674]svadev[/MENTION]

what's different oat2dex v6 and v7?

i can't deodex my stock rom for z3c.

i have this error v6 and v7

C:\temp>java -jar oat2dex.jar Maps.odex odex
03-30 21:51:11:776 Preparing bootclasspath from odex
03-30 21:51:11:901 De-optimizing /system/app/Maps/Maps.apk
03-30 21:51:13:820 Analysis info of Lcom/google/android/apps/gmm/map/util/c; : <
clinit>:
Risky resolved field from the nearest instance-of. def-class=Lcom/google/android
/apps/gmm/map/util/e; instr=IGET_QUICK_ART instr-address=1557

03-30 21:51:18:252 Output to C:\temp\Maps.dex
03-30 21:51:18:252 De-optimizing /system/app/Maps/Maps.apk:classes2.dex
03-30 21:51:18:845 Output to C:\temp\Maps-classes2.dex

and this deodexed maps not working
[Galaxy S 5 General] svadev:
You must deodex boot.oat before
[Galaxy S 5 General] russel5:
Man, i know it, i'm not stupid

May be this help find a problem

C:\temp>java -jar oat2dex.jar Music2.odex odex
03-30 21:55:33:346 Preparing bootclasspath from odex
03-30 21:55:33:455 De-optimizing /system/app/Music2/Music2.apk
03-30 21:55:35:774 Analysis info of Lcom/google/android/music/utils/MusicUtils;
: getSongListRadioMixDescriptor:
Risky resolved method from debug info. def-class=Lcom/google/android/music/media
list/ArtistSongList; instruction-address=19
Risky resolved method from debug info. def-class=Lcom/google/android/music/media
list/ArtistSongList; instruction-address=35
Risky resolved method from debug info. def-class=Lcom/google/android/music/media
list/AlbumSongList; instruction-address=87
Risky resolved method from debug info. def-class=Lcom/google/android/music/media
list/AlbumSongList; instruction-address=101
Risky resolved method from debug info. def-class=Lcom/google/android/music/media
list/SingleSongList; instruction-address=116
Risky resolved method from debug info. def-class=Lcom/google/android/music/media
list/SingleSongList; instruction-address=126
Risky resolved method from debug info. def-class=Lcom/google/android/music/media
list/NautilusArtistSongList; instruction-address=141
Risky resolved method from the nearest instance-of. def-class=Lcom/google/androi
d/music/medialist/NautilusArtistSongList; instr=INVOKE_VIRTUAL_QUICK_ART instr-a
ddress=161
Risky resolved method from debug info. def-class=Lcom/google/android/music/media
list/NautilusAlbumSongList; instruction-address=179
Risky resolved method from the nearest instance-of. def-class=Lcom/google/androi
d/music/medialist/NautilusAlbumSongList; instr=INVOKE_VIRTUAL_QUICK_ART instr-ad
dress=197
Risky resolved method from debug info. def-class=Lcom/google/android/music/media
list/NautilusSingleSongList; instruction-address=213
Risky resolved method from the nearest instance-of. def-class=Lcom/google/androi
d/music/medialist/ExternalSongList; instr=INVOKE_VIRTUAL_QUICK_ART instr-address
=231
Risky resolved method from debug info. def-class=Lcom/google/android/music/media
list/SharedWithMeSongList; instruction-address=247
Risky resolved method from debug info. def-class=Lcom/google/android/music/media
list/SharedWithMeSongList; instruction-address=261

03-30 21:55:38:019 Output to C:\temp\Music2.dex

boot.oat & boot.art --> HERE

Please fix this problem, if you can. Thanks
[Galaxy S 5 General] svadev:
Ask _riddle
[Galaxy S 5 General] LeeDroid:
Extremely appreciated [MENTION=6242674]svadev[/MENTION] , excellent work!
[Galaxy S 5 General] steal25:
[MENTION=6242674]svadev[/MENTION] I cant get the path to my /systen folder to show up in the dropdown. I have tried dragging and dropping it and tried choosing it in the menu aswell. I have the tool directly on my C:/ drive. Am I doing something wrong, or not doing something that I should be?
[Galaxy S 5 General] svadev:
In /system folder must exist file build.prop with right structure, and in /system/framework/arm(arm64) must exist boot.oat
[Galaxy S 5 General] DaOldMan:
My friend would like to know if it's possible to deodex SamsungLinkPlatform now.

Thanks for your great work !
[Galaxy S 5 General] svadev:
I'm afraid it doesn't work
[Galaxy S 5 General] elxufas:
thanks for your work, is fantastic for deodex in my S5.
[Galaxy S 5 General] hispanico957:
I use this tool first time... during elaboration of firmware Sony Z3 Compact appear this window:

and these are finals:

So tools tell all is ok but warning windows regarding VoiceDialer ?

And ...folder vendor is not build deodexed ???

Hispa
[Galaxy S 5 General] svadev:
It is mean - in folder VoiceDealer - no any apk.
[Galaxy S 5 General] hispanico957:
So it's mean the the process is good ?

Hispa
[Galaxy S 5 General] LeeDroid:
The process is fine, you appear to be missing an apk
[Galaxy S 5 General] hispanico957:
Ok thank 3 last questiosn:

1 - why this missing apk ? the extract firmware is original...

2 - the program deodexing not include folder "vendor"... why ?

3 - after deodex all file necessary to build a rom, i use meta-info of onother rom for my device (Z3 Compact)...and it's all ? or there are steps to do ?

Thank again

Hispa
[Galaxy S 5 General] Deltadroid:
oat2dex.jar in v2.6 is different but the version still says oat2dex.jar 0.6. So, just wanted everyone to know that oat2dex.jar is updated but the version was not incremented.

java -jar ./oat2dex.jar
Easy oat2dex 0.6
Usage:
Get dex from boot.oat: boot <boot.oat>
Get dex from app oat: <oat-file> <boot-class-folder>
Get raw odex from oat: odex <oat-file>
[Galaxy S 5 General] LeeDroid:
Only app, priv-app and framework should contain odex apk's, so venour would bot be copied, the symlinks back to lib and lib64 folders are generated and need to be added to the updater, its possible that the system dump was corrupt, that would explain the missing apk
[Galaxy S 5 General] yihongyuelan:
[MENTION=6242674]svadev[/MENTION] [MENTION=4445238]Golv[/MENTION] [MENTION=6258761]_riddle[/MENTION]

Thanks for your great work.

But I have a question, I decompiled the boot.oat and modified the framework.dex, then I compressed classes.dex(framework.dex) and classes2.dex(framework-classes2.dex) to framework.jar, and push framework.jar to /system/framework. There's nothing happen.

I tried to remove the framework.jar and reboot device, the device boot up normally.

It's weird. I think the boot.art and boot.oat is keypoint.

Can you give me some advice?

Thanks a lot.
[Galaxy S 5 General] mikeyxda:
I'm posting this here because I couldn't find a thread specifically for oat2dex.jar but I've found a problem with oat2dex.jar:

I caught the dialog here:

https://github.com/JesusFreke/smali/pull/30?

And I have some information on the subject, or at least a case that may provide some information. I'm using JoelDroid which uses oat2dex.jar and I believe I've discovered a problem with oat2dex. In deodexing stock ROMs for the Nexus 6, services.jar and framework.jar do not deodex properly. For example, in the initialization section of ActivityManagerService.smali in services.jar, many of the fields are accessed in the wrong order and presumably the wrong opcodes are being used as well. If you compare the deodexed services.jar to services.jar from AOSP for the same rev, everything is a match except for the initialization in that one smali. Example:

AOSP:

const/16 v0, -0x2710

iput v0, p0, Lcom/android/server/am/ActivityManagerService;->mTargetUserId:I

deodexed:

const/16 v0, -0x2710

iput-boolean v0, p0, Lcom/android/server/am/ActivityManagerService;->mLaunchWarningShown:Z

Obviously the deodexed version is incorrect (and crashes) because -0x2710 is not a valid boolean value. The field name is not correct either so obviously the field order/offsets are incorrect. I've put a ZIP of the services.jar here so this problem can be diagnosed. The ZIP includes the original services.jar and services.odex as well as the deodexed services.jar and the AOSP services.jar (which is correct):

https://www.androidfilehost.com/?fid=95916177934556475

Interesting that every other smali is OK in the deodexed version: only ActivityManagerService.smali is messed up. Please let me know if I can help further or if I should direct this inquiry to someone else. Obviously I'm looking for a working oat2dex.jar that doesn't produce these alignment/offset/field errors.

P.S. I know I'm posting in a Nexus 5 thread about a Nexus 6 problem but I couldn't find a thread more applicable than this one for problems with oat2dex.jar.

Mike
[Galaxy S 5 General] purian23:
Definitely a good find. Did you try copying the newer oat2dex.jar into the stable 2.4 version of JoelDroids tools? I just did the same thing and it seems to be working just fine. I wont' be able to dissect like you did, but maybe it does correct the process?

PS: Galaxy 5 thread Mikey lol .. It's cool and thank you to this OP! This method also worked perfect to Deodex my Nexus 6:good:
[Galaxy S 5 General] mikeyxda:
Lol. Yeah, S5, Nexus 5, Nexus 6, it's a generic problem I think. Yes, I did try the latest oat2dex: I took the oat2dex from the JoelDroid 2.5 Beta (I assume that's the latest oat2dex.jar) and used it in JoelDroid 2.4. I also tried the latest v2.6 from this thread which I believe includes the latest oat2dex and deodexed with that instead of JoelDroid. Same exact deodex and same problem: the fields and opcodes are still messed up in services.jar.

Mike
[Galaxy S 5 General] purian23:
Okay, of course YOU knew to do that. I was trying to help the big guy just once here lloll. Well again, good finds and hopefully that'll point them in the right spot!
[Galaxy S 5 General] NatNikos:
Help Needed

Hi to all,

I followed this procedure with xperia z2 and i need some help in order to flash the result to the phone (i.e. create a deodexed system.ext4):

1. extracted system.ext4 from to a folder and run this tool on the that folder with "copy only real libs" unchecked .

2. tool exported (successfully "files deodexed successfully: 286, with errors: 0" and no symlings.) the flowing directories:

app

dex

framework

odex

priv-app

3. I should import to system.ext4 the following directories replacing the old ones app, framework, priv-app is that correct?

4. is there anything else to be done like symlings or something else?

Thanks in advance. :)
[Galaxy S 5 General] tdunham:
You should try using a tool like [KITCHEN] ArchiKitchen - Android Kitchen (WIP) [Linux] to create a bootable odexed rom first. It will create the files necessary for having a bootable rom and will create the symlinks for you. Then you can work on replacing the odexed version of framework and system files with the deodexed ones that you create with the tool.
[Galaxy S 5 General] NatNikos:
Thanks a lot that's what i was looking for!
[Galaxy S 5 General] mikeyxda:
One other thing I just noticed. When I run java -jar oat2dex.jar on the oat2dex.jar that is in the 2.6 ZIP in the OP, it says it's 0.6 and not 0.7. Don't know if there's a more recent version. oat2dex.jar seems pretty well hidden on the internet. I've been unable to find the "official" site where the original builds can be found. It's like hunting for a needle in a haystack.

Mike
[Galaxy S 5 General] juanpirulo:
Ask [MENTION=645575]riddle[/MENTION] he is the guy Who make it. Cheers
[Galaxy S 5 General] mikeyxda:
Sent him a PM yesterday. Will have to wait for a reply. There seems to be no source, no page with latest version(s), nothing I can find anywhere online related to oat2dex. I don't even know where the two active threads here get the versions they get. Two of the threads claim they have oat2dex.jar v07 but they are actually v06. But I don't even know where those came from as they are nowhere to be found except in this thread and the JoelDroid thread and in those, they just "mysteriously" appear as part of the tool. Honestly, I don't know where they are coming from or how people are even getting them because if you search for oat2dex, they're all around December of last year and are v02 or v03. Even the Korean pages I found have nothing but December v02 versions in them. So my point is: maybe there's a later version somewhere but I'll be damned if I can find it. And I'm pretty good at weeding out Google searches.

Mike
[Galaxy S 5 General] juanpirulo:
Look At joeldroid he updated his tool with last oat2dex v7. Cheers
[Galaxy S 5 General] russel5:
If you do this

java -jar oat2dex.jar

you will see that version still 0.6

Only [MENTION=6258761]_riddle[/MENTION] allways change this tool.
[Galaxy S 5 General] mikeyxda:
Right. There is no v07. Never has been. _riddle posted v05 in this thread and then quickly replaced that with v06. After he posted v06, there were no further posts here including a new version so if anyone thinks they have a v07, I'd like to see it.

Mike
[Galaxy S 5 General] mysara saad:
hello [MENTION=225651]op[/MENTION] first great work here

i tried your your tool here to deodex my xperia z2 (.726)

iam using java 8 update 40

i pulled my system folder with twpr file manger (this may have resulted in some error)

then when i tried to deodex it gave me error in all the files and the output folder has the apps without .odex

please help me iam still noob but i want to learn how to do this

here is the log file
[Galaxy S 5 General] mikeyinid:
I'm trying to deodex galaxys s6 and the program runs, but it only deodexes the 64 stuff, leaving the 32 untouched. Is there a solution for this?
[Galaxy S 5 General] svadev:
Yes, it is, yet. Since I didn't know the structure of the 64-bit stock.

As I have time - I'll have a look and fix it.

In the meantime, as a workaround, you can first make for 64-bit, save, then delete the 64-bit and make for 32-bit. Then combine.
[Galaxy S 5 General] mikeyinid:
In a situation where a framework .jar has a 32 AND 64 bit odex file, which should it be? I assumed that all the framework would be 64 but it still won't boot...
[Galaxy S 5 General] svadev:
I think that 64-bit is only lib files. apk and jar - without difference
[Galaxy S 5 General] ticktock666:
Thank you sir, this was driving me crazy :p - btw somehow when I copied my build.prop file to PC it ended up with a txt extension, so it didn't work at first, but renaming the file and removing the extension solved this.

Also, I was unable to run the x64 version on my 64bit windows 7 with latest 32/64 java installed, the app simply reported that no java was installed and closed, the 32bit version is working though
[Galaxy S 5 General] kashortiexda:
[MENTION=2918779]mikeyinid[/MENTION] did you manage to combine 32 and 64 bit ?

I am trying to deodexer S6 Edge and same issue as you wrt 32/64

I'm not sure exactly what the Dev means by "combine" them

I've deodexer both 64 and also 32 bit but not sure what to combine
[Galaxy S 5 General] mikeyinid:
I did finally figure it out, but I have to be honest, it's easier to use joeldroids program. His leaves the files in the original folder. So, what you do is move the framework/arm folder out and run the program. It'll do the 64 stuff first. Then put the arm folder back and run it, now it's doing the 32. the framework has to be done in both 32 and 64, and youll have 3 apps that need both 32 and 64. I think it's IPSecService, webviewgoogle or whateverthe**** and GMSCore, just do the same with them. move arm out run it, move it back in and run it. It's a real PIA LOL. On the 3 apps, you have to pull the arm lib folders out then put them back, or they won't deodex.The program needs to be modified to run 64 or 32 first, then go back through and do the other.
[Galaxy S 5 General] kashortiexda:
[MENTION=2918779]mikeyinid[/MENTION] thanks, can't seem to find IPSecService are you sure it's that one ?
[Galaxy S 5 General] mikeyinid:
You might not have it then, I think it might be a carrier thing