yashsingh1/xdaforums huggingface dataset:
[Galaxy S 5 General] carl1961:
Assuming you already know how to unzip and rezip rom's properly using (7-zip or winrar)

you need a working lollipop meta-inf folder for your phone. example try using DarkLord's to get the update-binary

edit the updater-script and remove any destructive lines (Like wipe and delete or format)

you trying to make yourself a installer

example

ui_print("");

ui_print(" S5 Deodexed");

ui_print("Lollipop S5");

ui_print("");

ui_print("");

set_progress(0.04);

mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");

mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/cache", "/cache");

mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data");

ui_print("");

ui_print("Wipe Cache and Dalvik-Cache...");

delete_recursive("/cache");

delete_recursive("/data/dalvik-cache");

package_extract_dir("system", "/system");

ui_print(" Installing Deodexed S6 System Files");

ui_print("Unmount Partitions...");

unmount("/system");

unmount("/cache");

unmount("/data");

unmount("/preload");

set_progress(1.0);

ui_print(" S5 Deodexed Install complete");

ui_print("");
[Galaxy S 5 General] uberto.costanzo:
thanks solved
[Galaxy S 5 General] Rayman360:
I am getting Error "Unable to access Jar File" Any idea?
[Galaxy S 5 General] carl1961:
Sounds like your enviromental path is not set
[Galaxy S 5 General] Rayman360:
C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engin
[Galaxy S 5 General] carl1961:
Your path does not look correct it should look like this C:\Program Files\Java\jdk1.6.0_23\bin or C:\Program Files(x86 )\Java\jdk1.6.0_23\bin version number may be diffrent
[Galaxy S 5 General] Tinchoska:
May this work on galaxy tab s?
[Galaxy S 5 General] PIRATA!:
Wait a minute...but without deleting or wiping anything you'll end up in installing back deodexed files without having deleted the odexed stuff and there will be a bunch of unused files!!!

something like follows shouldn't be placed at beginning of update-script?

delete_recursive("/system/app");
delete_recursive("/system/priv-app");
delete_recursive("/system/framework");

About the update-binary, can you share the one you mentioned? Thank you so much.

About the environmental path I also have this:

C:\ProgramData\Oracle\Java\javapath; ....

How should I realize that things should not go through? I haven't finished yet my deodexing, but I haven't got any error.

Ok that I'm using now another method found here on XDA, but I'll deodex also with your so to put both /system/ folders at confront, but the java JDK are the same.

Which version you say to use? I have v8u45.

Thanx.

---------- Post added at 05:51 PM ---------- Previous post was at 05:14 PM ----------

Also... I can't select the /system/ folder.

Should I need the full /system/ folder from firmware??

I'm pulling from device, so I imagine that this would not work for me as I need a complete firmware to extract, right?
[Galaxy S 5 General] carl1961:
yes your correct if your updating those file on a current running rom

I see the pather your talking about, there accually simlinks, you can right click them and verify that is your current java install, so your good whith that setup
[Galaxy S 5 General] PIRATA!:
Yes, I'm same as your screenshot.

Please, about the update-binary, can you share the one you mentioned? Thank you so much.

Also... I can't select the /system/ folder.

Should I need the full /system/ folder from firmware??

I'm pulling from device, so I imagine that this would not work for me as I need a complete firmware to extract, right?
[Galaxy S 5 General] carl1961:
I am not clear at what your trying to do, the system folder I used was always on my computer, if your trying to get them from your device then you might have issues, because your system would be most like live, unless you booted to recovery and mounted you system partition, I never did or tried any of that. I always worked from my PC

as for the update-binary you need the latest newest that works for lollipop, most custom roms for your phone most likely will be ok to use
[Galaxy S 5 General] PIRATA!:
I was trying to use my device updated with OTA as Sammobile version is broken.

Only a mirror in Korea, but too slow for downloading.

I say Korea because my device it's a Korean version.

About your folder, you had all the/system file, right?

All other methods found here on Xda only need the three folders /app, /framework and /priv-app, that's why I was asking.
[Galaxy S 5 General] carl1961:
you could use the adb pull command and pull those files,

adb pull /system c:\systemdump

I used system folder that had all the files.
[Galaxy S 5 General] ogunja:
Thanks Bro [MENTION=6242674]svadev[/MENTION] deodex perfect..
[Galaxy S 5 General] Tinchoska:
Hi, this works on Samsung galaxy tab s?
[Galaxy S 5 General] d_ave:
I have some trouble deodexing LG G2 5.0.2 stock rom. Everything goes fine with deodexing using the tool, but afterwards no matter what i do and how i flash or push the files to the phone i get a Security Boot error. Any ideas?
[Galaxy S 5 General] Tinchoska:
Thats a kernel error... Try reflashing kernel... Or, try putting kk bootloader and check
[Galaxy S 5 General] _riddle:
I rewrited the field sorting algorithm for api level 21 (L5.0.x).

And also support api level 21~23 (Lollipop ~ M preview).

https://github.com/testwhat/SmaliEx/commit/a1c1a004

It will fix problem like:

http://xdaforums.com/showpost.php?p=60138075&postcount=151

And also maybe include some unknown crash.

[MENTION=5227588]Deltadroid[/MENTION], about the check-cast -> nop question.

http://xdaforums.com/showpost.php?p=59562178&postcount=122

It could refer to below link:

http://androidxref.com/5.0.0_r2/xref/art/compiler/dex/dex_to_dex_compiler.cc#175

CompileCheckCast will replace check-cast to 2 nop, so it is normal.

And it is also the reason why sometimes the tool will ouput "Risky resolve...".

Because the original type infomation is lost, we can only find some way to guess it.

In latest version (0.81), add a workaround for SamsungLinkPlatform. (But still not know what will happen in runtime)

https://github.com/testwhat/SmaliEx/blob/d6462e54/smaliex-bin/oat2dex.jar
[Galaxy S 5 General] juanpirulo:
Is it possible to download latest version 0.81?

never mind i ve got it from github
[Galaxy S 5 General] juanpirulo:
You need also the build.prop in the system folder. Cheers
[Galaxy S 5 General] Calaisz17:
got it to work. i9505OE2 stock odin flashed. twrp odin, supersu 2.49beta, imperium kernel.

i did adb pull from recovery but noticed it was leaving out libs or .so either way it still completed no errors on jdroid then i realised this one did symlinks so i extracted system from system.img.ext4 from stock OE2 .md5 used SVA did it with both 64 and 32, all fine both done except 64 seemed to have only a few less apps that were already said to be deodexed.

first time other day i used jdroid all good but then i delelted the whole app/priv-app/framework folders from recovery and adb pushed onto device, booted but had the nfc bluetooth etc crash so couldnt even use it. (all that was in my log from SVA needed to be symlinked).

restarted. flashed i9505OE2 stock odin flashed. twrp odin, supersu 2.49beta, imperium kernel. ran it in for a while.

used Flash-Deodexed-byPIRATA!-v1 from here opened its script on notepadd++ and added in the symlinks from the SVA log. dont delete anything the script deletes your arms odex etc, asome have arm folders in a lib folder with libs in them they are what needs to be symlinked etc, flashed it, wiped cache and dalvik, not sure if i did data forgot. took quite a long time to boot maybe 20 mins but then no problems at all been a few days no issues at all, xposed app FIRST then framework after in recovery all sweet no problems at all.

was gonna build a rom looked like some fun but all the kitchens are mostly linux all the windows ones are outdated and or dont work.

but flashing them back on worked fine first go.
[Galaxy S 5 General] Calaisz17:
i didnt know you just needed build prob wiouldve saved me ages. you do need the whole /system folder in there then it will select app priv app framework if yiou just have thbose 3 it wont work, i wouldnt pull cause it doesnt pull all the files and then i dont know if the log would symlink them for you.

find you stock firmware you flashed with odin 7zip it use imgextractor on the system.img.ext4 to get your system folder. then point towards that and it will work. then use the zip but in notepad++ add your symlinks from the log after you deodexed.

extract SVA directly to C:\ as with your other stuff. i used internel memory as i coulndt be bothered moving some stuff off sdcard aS its nearly full. so dont forget to delete that after as well, the zip.
[Galaxy S 5 General] Calaisz17:
is 64x for 64x windows or 64x phones?!
[Galaxy S 5 General] mauriicio21:
windows
[Galaxy S 5 General] Adizzzle:
0 apps deodexed - 251 errors...

Error: Unable to access jarfile - for every app...
[Galaxy S 5 General] lingowistico:
hey man, if you want help start by describing all of your actions to the tiniest detail.

i used ths tool with alexandr's boe5 devbase and it worked perfectly.
[Galaxy S 5 General] Adizzzle:
I have an S6 Edge and I took my /system folder, loaded into the tool, and attempted to deodex /system/app, /system/priv-app, and framework.

I tried once without checking the box on the right, and tried once with the box checked. Neither worked. Same errors everytime.
[Galaxy S 5 General] lingowistico:
Could it possibly be because this tool is for the S5?
[Galaxy S 5 General] Adizzzle:
Probably, I just heard others had success with this, so I thought I'd give it a shot.
[Galaxy S 5 General] lingowistico:
Oh, OK.
[Galaxy S 5 General] Adizzzle:
I successfully deodexed my S6 Edge ROM using this tool! Thank you so much [MENTION=6242674]svadev[/MENTION]!
[Galaxy S 5 General] lmarques1979:
Not work for me. Deodex ran the batch, 0 errors, I created the zip, but when I install the system starts is the logo of LG. I try every tools to deodex stock LG g2 Lollipop ROM and all fail..........

Could someone give me a help ?
[Galaxy S 5 General] juanpirulo:
Did you deleted all the odex files?

How you created the zip? Give us some more information
[Galaxy S 5 General] lmarques1979:
Thanks for reply.

I followed the steps:

1. I got the app folders, priv-app, framwork and build.prop the rom odex stock LG G2

2. Deodex by joeldroid program without any error

3. I confirmed that the .jar files contained the files within them classes.dex

4. I set up a zip (template used: Flash-Deodexed-byPIRATA!-v1.zip) where exclude all files of app folders, priv-app and framwork (delete_recursive) and update with the new generated

5. Via TWRP install the created zip

I forgot something?

The system does not start :(
[Galaxy S 5 General] arter97:
Seems like deodexing 64-bit 5.1 firmware is not working on the latest versions.

A lot of FCs, few apps fails to be dexopt'ed with validation check error.

Can you guys look into this?
[MENTION=6242674]svadev[/MENTION] [MENTION=6258761]_riddle[/MENTION]
[Galaxy S 5 General] svadev:
May you to give me log-file (output of SVADeodexerForArt.exe)
[Galaxy S 5 General] arter97:
Nothing out of ordinary.

http://pastebin.com/cYQWCeYC

I guess it's oat2dex.jar's fault.
[Galaxy S 5 General] svadev:
And part of logcat too (where is A lot of FCs, few apps fails to be dexopt'ed with validation check error), please ...
[Galaxy S 5 General] arter97:
I get FCs with this : http://pastebin.com/Xd8n0tHW

And those apps fails to go through proper dexopt with this : http://pastebin.com/skS1zrc3

See the line 32.

java.lang.VerifyError: android.widget.NumberPicker
[Galaxy S 5 General] svadev:
I think that is smali/baksmali problem.

try, as workaround (in fc apps), remove framing try .. catch, or set string to empty('') if no.

Or wait new smali/baksmali and then new version oat2dex from @riddle.
[Galaxy S 5 General] arter97:
This is an untouched stock G920F 5.1.1 firmware.

Modifying the app will not be a permanent solution.
[Galaxy S 5 General] arter97:
Should I try adding those to baksmali issue tracker?
[Galaxy S 5 General] arter97:
Hmm there seems like a new baksmali version, 2.0.6.
[Galaxy S 5 General] svadev:
Yes, it not permanent solution ...

But you may stay odex version of fc apps, other will be deodex.

How many fc apps in result?

And what apps. I see only NfcNci.apk
[Galaxy S 5 General] arter97:
As you may know, I should work on Xposed which requires the entire ROM to be deodex'ed.

The entire boot-up(dexopt) logs says dozens of apps fails to dexopt properly.

I can't go through the setupwizard because of those FCs.
[Galaxy S 5 General] svadev:
Sorry, but Xposed works with optimazed code (after dexopt'ted), but not with deodexed ...
[Galaxy S 5 General] arter97:
My portion of Xposed for Samsung firmware requires deodex'ed because it can't parse through Samsung's oat format.

Anyways, I'll try 2.0.6(your version seems to have 2.0.5) later and let you know how that goes.
[Galaxy S 5 General] HITMAN-CREED:
Now I have an Official rom, and want to deodex it just for Xposed,

How can i do that??
[Galaxy S 5 General] wanam:
Did you try to boot up without NfcNci? If it works you can start your work and wait for a deodex fix.
[Galaxy S 5 General] arter97:
As I pointed, dozens of apps were improperly dexopt'ed.

Those can't be used for a daily driver.
[Galaxy S 5 General] Carotix:
i done my rom 5.1.1 for G925F .... odexed works everything , deodexed i get a lot of vibrations during the boot , then i get context service and setup wizard stopped ... also NFC gave me fc but i deleted it

when i deodexed with this tool i got zero errors but in the end i see 2 files twframework in the folder like the screen ... it's normal?
[Galaxy S 5 General] arter97:
Ah, right.

I had that too.

Any idea? [MENTION=6242674]svadev[/MENTION]
[Galaxy S 5 General] svadev:
I allredy wrote you:

try, as workaround (in fc apps), remove framing try .. catch, or set string to empty('') if no.

I think... - NfcNci only one app with error ...
[Galaxy S 5 General] arter97:
I'm just waiting for a proper solution rather than a local modification.

And as I said, NfcNci is not the only one with that issue.

SetupWizard, SBrowser.. dozens more.
[Galaxy S 5 General] edgarf28:
Same here... This tool doesn't work with the 5.1.1 S6 firmwares :(
[Galaxy S 5 General] arter97:
(Sorry for off-topic) You can try if JoelDroid's solution works.

If it doesn't, oat2dex.jar needs to be updated.
[Galaxy S 5 General] wanam:
It is reproducible against the master branch of [MENTION=6258761]_riddle[/MENTION] repo, issue reported.

I/dex2oat ( 6112): /system/bin/dex2oat --zip-fd=11 --zip-location=/system/app/NfcNci/NfcNci.apk --oat-fd=12 --art-fd=13 --compress-image --oat-location=/data/dalvik-cache/arm64/system@app@NfcNci@NfcNci.apk@classes.dex --instruction-set=arm64 --instruction-set-features=default --runtime-arg -Xms64m --runtime-arg -Xmx512m --swap-fd=15
I/dex2oat ( 6112): Decided to run without swap.
I/dex2oat ( 6112): Verification error in void com.android.nfc.beam.SendUi.(android.content.Context, com.android.nfc.beam.SendUi$Callback)
I/dex2oat ( 6112): void com.android.nfc.beam.SendUi.(android.content.Context, com.android.nfc.beam.SendUi$Callback) failed to verify: void com.android.nfc.beam.SendUi.(android.content.Context, com.android.nfc.beam.SendUi$Callback):[B][COLOR=Red] [0xF7] register v3 has type Float but expected Integer[/COLOR][/B]
[Galaxy S 5 General] edgarf28:
[MENTION=6242674]svadev[/MENTION], can you maybe also update oat2dex.jar to latest release 0.8?

If I manually replace the oat2dex.jar file with your tool, then I only get errors.
[Galaxy S 5 General] arter97:
[MENTION=3562083]wanam[/MENTION] says it doesn't work anyways.
[Galaxy S 5 General] svadev:
Without difference who this done ...
[Galaxy S 5 General] daniello8:
First go at deodexing. After all is run through with zero errors I get these folders:

app, dex, framework, odex, priv-app

and two files:

javalib-deodexed.dex, javalib.dex (which both have the same size).

I now assume that all I have to do is push back the folders

app, framework, priv-app

back in to the system folder, replacing the original folders completely.

Is my assumption correct or must I do anything with the other folder/files?

Any tip greatly appreciated.
[Galaxy S 5 General] NZnewbie:
Spot on... app, priv app and framework into the system folder.
[Galaxy S 5 General] störte:
Any success in deodexing S6 5.11?

Gesendet von meinem SM-G925F mit Tapatalk
[Galaxy S 5 General] split52:
deodex is ok, only copy app, framework and priv app?? to my phone

dex and odex folder copy too??
[Galaxy S 5 General] juanpirulo:
No just app, framework and priv-app. The other ones are the work folders of the sva tool
[Galaxy S 5 General] split52:
gracias, 8 minuts and boot ok
[Galaxy S 5 General] svadev:
New version 3.2

In post #1 published new v3.2 of SVADeodexerForArt

Changelog (v3.2) from 02/07/2015:

1. Fixed copy folders without .apk, like mcRegistry to result folder (app, priv-app)

2. New oat2dex.jar (v0.83) with last smali/baksmali (thanks @_riddle)
[Galaxy S 5 General] Carotix:
is this working for 5.1.1 ?

thanks :)
[Galaxy S 5 General] svadev:
I do not tested it while, but i think - YES.
[Galaxy S 5 General] Carotix:
i tried but no match for me

no files deodexed ...
[Galaxy S 5 General] NatsuDzn:
[MENTION=3562083]wanam[/MENTION] seems to be able to deodex 5.1.1 rom ...

https://github.com/testwhat/SmaliEx/issues/1#issuecomment-119098709
[Galaxy S 5 General] NatsuDzn:
Maybe [MENTION=4751298]Carotix[/MENTION] doesn't have the same JDK
[Galaxy S 5 General] edgarf28:
Same here, no files gets deodexed, it finishes in 15 seconds or something.

I'm on JDK7 right now, will try JDK8 now...
[Galaxy S 5 General] Carotix:
i got my rom 5.1.1 working fine !! thanks sladev !!!!!!
[Galaxy S 5 General] edgarf28:
Which Java JDK are you running?

I can't get the new version working (to deodex the 5.1.1 firmwares for the S6)

EDIT: Finally got it working, you've to use JDK 8 with this release (and uninstall JDK & JRE 7 from your PC)
[Galaxy S 5 General] Alex-V:
maybe anyone got that error and can help..?!? i use win7 32bit with latest Java 8.. and after the deoptimize process..the tool says finished and after that an error can not find classes.dex in framework..sure there is no classes.dex as there are all named as the jar for example framework.dex ..also i have copy of tw framework dex in main folder..

i only have access to a win7 32bit or a Ubuntu 64 bit..the guys who have successful deodexed..did you use the 64 bit version..?
[Galaxy S 5 General] dkionline:
Just use 64bit deodex tool. It should work.

Gesendet von meinem GT-I9300 mit Tapatalk
[Galaxy S 5 General] Alex-V:
thx but no chance as it will say you have 32bit only

OK..will try now jdk 8 instead of Java 8

the same..i think it have to do with framework.jar and his classes2.dex
[Galaxy S 5 General] Calaisz17:
is 64x for 64x phones or for 64bit computer? thank you
[Galaxy S 5 General] svadev:
For 64bit computer
[Galaxy S 5 General] Calaisz17:
just some info for ya. used this a few times several versions.

1st time was 45mins

2nd time was 41 mins

3rd time was 38 mins

this version took 31 mins so getting faster aswell
[Galaxy S 5 General] Calaisz17:
thats is deodexing full stock bloat etc i debloat after would be 15 mins if you did only what you wanted no doubt. i only have 4gb ram also may slow it down
[Galaxy S 5 General] :
I opened the SVADeodexerForArt and I am trying to select the /system folder, but it doesn't load anything, it doesn't work, I have ofcourse latest java version, but nothing, what's wrong with it?
[Galaxy S 5 General] tdunham:
Try putting system folder in the root of your hard drive, not in a subfolder.
[Galaxy S 5 General] :
I already did that, I never used subfolder, I am trying to load D:\system , where are the other 3 folders, but nothing, I am very confused, what should I do
[Galaxy S 5 General] mauriicio21:
Build.prop needed

Enviado de meu SM-G900F usando Tapatalk
[Galaxy S 5 General] :
what is build.prop, onlu thing I know is to pull the proper folders using adb and usb debugging, I expected for that to work, what do I have to do in order to get this build.prop?
[Galaxy S 5 General] Alex-V:
please learn more about Rom development before posting such a question..BTW it's not bad meant..but these things are basics for Rom development and making custom Roms ?

before i post that question i would google what it is.. as sidenote..people nowadays did not search enough
[Galaxy S 5 General] Alex-V:
OK..i upgraded my laptop to win7 64 bit.. now all the problems gone...deodexing like a baby..
[Galaxy S 5 General] geiti94:
works perfekt thx :D i haved problem on my main pc with deodex but i tried then on my notebook that have a fresh installed win8 64 bit and i sucessfull deodexed 5.1.1 for s6 edge.thx again
[Galaxy S 5 General] eiMer:
First of all, thanks for your work svadev!!

I tried to deodex the NFC Service of a S6 G920F. It said "Files deodexed succesfully", but the apk in the result folder has no classes.dex in it.

I copied the build.prob, the /system/framework folder and /system/framework/app/NfcNci folder from the phone.

Did i miss anything in the process?
[Galaxy S 5 General] Alex-V:
did you have 32 bit windows..64 bit works better..read some pages back..had similar problem.. now it works
[Galaxy S 5 General] eiMer:
yeah i just did...

Im running Win8 x64 and using Java 8 (1.8.0_40).

Maybe theres a problem with the java version...acording to:

Which java version do you use Alex-V? Do you have any other suggestions?
[Galaxy S 5 General] Alex-V:
still at work ATM..think it's jdk 8 the latest
[Galaxy S 5 General] eiMer:
Thanks man, I'll test it with the latest JDK version...
[Galaxy S 5 General] AL_IRAQI:
Hi [MENTION=6242674]svadev[/MENTION]

Can you please add x86 support, instead of arm folders we have x86 folder

And apps libs in lib/x86

"/system/priv-app/ASUSGallery/lib/x86/"

Edit:

Build.prop in case you need it

http://pc.cd/W7ritalK

Thanks
[Galaxy S 5 General] svadev:
Deleted
[Galaxy S 5 General] AL_IRAQI:
Thanks,but it didnt detect System files
[Galaxy S 5 General] svadev:
deleted
[Galaxy S 5 General] AL_IRAQI:
i cant check it
[Galaxy S 5 General] svadev:
v3.3

Sorry, - little error. Fixed!

Will get, please:

SVADeodexerForArt v3.3 (for windows x64) - added only x86 support.

Try it and publish here result, please: View attachment 3412034
[Galaxy S 5 General] eiMer:
My original question:

I'm using Win8pro x64 and installed the latest java version (1.8.0_51) but the classes.dex is still missing in the "deodexed" apk file.

I'm trying to deodex the NfcNci.apk of the S6 G920F. Could someone share the deodexed version with me, since it seems that there are a lot of people who did the deodexing successfully.

Or do you have any other suggestions on how to deal with this problem?

Thanks...
[Galaxy S 5 General] svadev:
You must deodex framework folder too ...
[Galaxy S 5 General] eiMer:
:D ahh.. thats good to know!! I'll try it right away!!

Thanks savdev!
[Galaxy S 5 General] AL_IRAQI:
it works fine this time :D

System booted up and no FC's :)
[Galaxy S 5 General] eiMer:
That was it... Thanks svadev!!!
[Galaxy S 5 General] svadev:
New version v3.5

In post #1 Published new v3.5

Changelog (v3.5) from 20/07/2015:

1. Added full support for processor architectures:

arm

arm64

x86

x64

mips

mips64

2. More optimizations
[Galaxy S 5 General] muniz_ri:
[MENTION=6242674]svadev[/MENTION]

Any idea why SVA is generating the twframework.dex and twframework-deodex.dex files (see screen shot)? I am using the latest 64bit SVA and latest java and working on a G900T 5.1.1 build. Otherwise no errors reported by SVA. Thx.
[Galaxy S 5 General] svadev:
Simply delete it and ignore.
[Galaxy S 5 General] AxAtAx:
Running the newest release, 32bit, deodexing 5.1.1 and getting this error:

architecture (arm, arm64, x86, x64, mips, mip64) not defined

anyone? Please, Thanks