yashsingh1/xdaforums huggingface dataset:
[Android Software Development] ducted:
This gonna drive me crazy.

I'm trying to deodex a HTC One M8 stock ROM 4.4.2 and keep ART runtime working.

I tried other deodexers without luck, I tried a lot of settings like set compression level to 0, zipaligning apk's and all failed to run with ART.

Then I found this tool and wish to try, but I can't find the way to deodex files.

I followed the instructions, my framework dir includes some odexed apk's also, so I placed all the files into the framework folder and the same files into the source folder.

I chosen the KitKat option and compression level 0, and when I click over the Deodex button, this is the output:

The output command prompt caption shows: "C:\Windows\system32\cmd.exe - deodex.bat HTCDEV 0 19 pause jar true"

And nothing else happens, It stays stuck there.

What I'm doing wrong? Please, could someone point me if I'm missing anything?

Thanks in advance.

Best regards,

ducted.
[Android Software Development] YOSEFE:
Why do I get 101 files FAILED: accuweatherDaemon.apk, etc?

---------- Post added at 03:03 AM ---------- Previous post was at 02:45 AM ----------

OP,

the deodexed files will be found in the "done" folder, how do I know which ones in the "done" folder go into my system apk folder and the framework folder?

---------- Post added at 03:13 AM ---------- Previous post was at 03:03 AM ----------

This raises another question for me OP,

where do I put system/priv-app apps in your tool for deodexing?
[Android Software Development] JohnSmith743:
So ok i finally made it to work, but now I have another problem. My Device is Sony Xperia E Single Sim (C1505). It deodexed all the apks but at the cmd after the deodexing ended it said that the apks didn't got deodexed, but they are still in the done folder and there is no .odex files with them. Here is what it says:

FAILED : ApplicationsProvider.apk

FAILED : ArimaIllumination.apk

FAILED : ATSFunctionTest.apk

FAILED : BackupRestoreConfirmation.apk

FAILED : Bluetooth.apk

FAILED : bootinfo.apk

FAILED : Browser.apk

FAILED : CalendarProvider.apk

FAILED : CertInstaller.apk

FAILED : CredentialManagerService.apk

FAILED : DefaultContainerService.apk

FAILED : DownloadProvider.apk

FAILED : DownloadProviderUi.apk

FAILED : DrmProvider.apk

FAILED : FastDormancy.apk

FAILED : Galaxy4.apk

FAILED : HoloSpiralWallpaper.apk

FAILED : HTMLViewer.apk

FAILED : InputDevices.apk

FAILED : KeyChain.apk

FAILED : LiveWallpapers.apk

FAILED : LiveWallpapersPicker.apk

FAILED : logcatRecorder.apk

FAILED : MagicSmokeWallpapers.apk

FAILED : MediaProvider.apk

FAILED : NoiseField.apk

FAILED : NotificationApp.apk

FAILED : PackageInstaller.apk

FAILED : PhaseBeam.apk

FAILED : Phone.apk

FAILED : Protips.apk

FAILED : Provision.apk

FAILED : SecureClockJava.apk

FAILED : ServiceMenu.apk

FAILED : Settings.apk

FAILED : SettingsProvider.apk

FAILED : SharedStorageBackup.apk

FAILED : SimlockUnlockApp.apk

FAILED : SoundRecorder.apk

FAILED : StartupFlagV2.apk

FAILED : Stk.apk

FAILED : SystemUI.apk

FAILED : UserDictionaryProvider.apk

FAILED : VerifyCertificatesDummyAppApplication.apk

FAILED : VerifyCertificatesDummyAppMedia.apk

FAILED : VerifyCertificatesDummyAppPlatform.apk

FAILED : VerifyCertificatesDummyAppShared.apk

FAILED : VisualizationWallpapers.apk

FAILED : VoiceDialer.apk

FAILED : VpnDialogs.apk

FAILED : WAPPushManager.apk

Any suggestions????
[Android Software Development] KageBeast:
Well since they're still system apks I'd assume you deodex them the same way as an apk in the system/app folder.
[Android Software Development] YOSEFE:
Figured it out. But gave up due boot failure. Could it be due to failed deodex files?
[Android Software Development] kuronosan:
I copied all framework files over ADB on this MTK device and it Odexes everything except the Settings and some other files... saying that it failed. I don't understand why it de-odexes the systemui just fine.
[Android Software Development] chinittoh:
i've deodexed almost all excpet

3 jar files

core.jar

framework.jar

secondary-framework.jar

hope you can help me..trying to deodex my phone mtk6582

here's my log..
[Android Software Development] YOSEFE:
Would someone or the dev please help us out?

Thanks.
[Android Software Development] Spannaa:
If you've followed the instructions in the first post exactly and set the correct Android version, try a lower compression level.

If you still get errors, maybe some apks/jars already contain classes.dex

Another possibility is malformed/bad smali files in .odex files.

Sent from my GT-I9300...
[Android Software Development] YOSEFE:
Thanks.

app and framework files deodexed. However still getting errors with priv-app.

Trying some more. Any further ideas?
[Android Software Development] Spannaa:
Sorry, no - I don't use this for my deodexing anymore.

Sent from my GT-I9300...
[Android Software Development] YOSEFE:
Which one do you use?
[Android Software Development] Spannaa:
ArchiKitchen

It's not just a deodexer though...

Sent from my GT-I9300...
[Android Software Development] YOSEFE:
That is a big programme for me.

I have deodexed the files using Ultimate. However, I need to find the working way of pushing the files to their respective folders on phone.

I have used rootexplorer, but phone stays stuck on Samsung screen.

I will now try to copy the deodexed files over the odex ones, and delete the odex ones manually.
[Android Software Development] Spannaa:
That's why I switched to ArciKitchen as it creates a flashable deodexed, rooted, zipaligned zip.

Replacing individual files and deleting their corresponding odex file will work for some apks but others (e.g. SystemUI.apk) will cause issues as soon as you delete the original.

A flashable zip is by far the best way.
[Android Software Development] YOSEFE:
Yes, I have the "Unfortunately, the process com.android.systemui has stopped" error. Meaning I cannot go into the device any further than the error screen.
[Android Software Development] Spannaa:
I've attached a flashable zip template for 4.4.2 KitKat.

To use it, you need to fill the \system\app, \system\priv-app and \system\framework folders with the contents of your original folders, replacing any odexed jar/odex & apk/odex file pairs with your deodexed apks/jars

Be careful not to miss any files as the zip deletes everything in the \system\app, \system\priv-app and \system\framework folders on your device before flashing the new, deodexed files.

As always, take a full nandroid backup before flashing the filled zip.

Disclaimer:Use this at your own risk - I am not responsible for any damage to your device or loss of data etc.
[Android Software Development] YOSEFE:
Thank you very much.
[Android Software Development] caspboy:
awesome tool:p
[Android Software Development] UnicoIjo:
6592 problem with .jex

does this work on mt6592 4.2.2 with .jex files in framework? tia..:fingers-crossed:
[Android Software Development] Spannaa:
I don't think so, but there's only one way to find out for sure...

Sent from my GT-I9300...
[Android Software Development] UnicoIjo:
it only work on my system apps but in framework still the same..
[Android Software Development] Spannaa:
TBH, I'm not surprised as .jex files don't appear in most "normal" Android roms.

Sent from my GT-I9300...
[Android Software Development] UnicoIjo:
one of my friend said that i look for unreal deodexer and i tried it but got an error it always says "system/app not found" even if i already pulled apps and framework by that system.. even manually pulled still the same error.. pls help.. tia
[Android Software Development] zcink:
Thanks for the flashable .zip

It works flawlessly.

I added the script to also flash data/apps and it works fine:

ui_print("Mounting Data Partition...");

run_program("/sbin/busybox", "mount", "/data");

ui_print(" ");

show_progress(0.500000, 5);

ui_print("Extracting apps...");

package_extract_dir("data", "/data");

ui_print(" ");

ui_print(" flashed data now onto system ");

unmount("/data");

Using version 5 I was having all kinds of problems with windows 7

So, I tried to deodex all the files from a chinese knockoff phone I bought with an old windows XP laptop I have kicking around

Windows XP ran version 5 and it worked superbly.

Then I made a flashable .zip from above and it worked.

Thank goodness for this thread.
[Android Software Development] knightzero07:
make sure you dont have spaces in the path of unreal deodexer.

e.g. C:\Users\user\Desktop\Unreal-Deodexer\system\app

not C:\Users\user\Desktop\Unreal Deodexer\system\app
[Android Software Development] UnicoIjo:
thanks bro..
[Android Software Development] Coolbilal:
i dont know i cant understand the steps of deodexed file

will u please post a video tutorial
[Android Software Development] Coolbilal:
how u make a deodexed file i cant understand the instruction i m having problem in step 2 and 3

help me bro
[Android Software Development] Coolbilal:
it gives error

Disassembling odex file

Error: unable to access jarfile baksmali.jar

creating classes.dex file

Error: unable to access jarfile smali.jar

1 file (s) copied.

what should i do now please help me
[Android Software Development] mechexpert:
can't deodex the framework files

First of thanks for this great tool. Second i am trying to deodex stock rom (htc wildfire s) & after placing all apps in source folder & all framework content in framework folder of Universal deodexer folder i can only get output of apps being deodexed. I can't get framework files to be deodexed. I tried version 4 & version 5 of Universal deodexer. No matter how many times i try, i can only get my app folder deoxeded but not the framework files.

Any help what am i missing here ??
[Android Software Development] abhimortal6:
Fix for Win64bit

for those who facing

UNEXPECTED TOP-LEVEL EXCEPTION:

java.lang.RuntimeException: Cannot find file or directory "out/"

at org.jf.smali.main.main(main.java:174)

Error

Go to Universal Deodexer V5_FIXED for Win7 64bit
[Android Software Development] Spannaa:
:good:

It would have been better though to have posted your fixed version here rather than starting your own thread ;)
[Android Software Development] abhimortal6:
sorry ! new here :)
[Android Software Development] rht_sg:
why can't i download the latest V5 from the first post ?
[Android Software Development] Spannaa:
It downloads fine for me - the dev-host ads are getting worse though...

Sent from my GT-I9300...
[Android Software Development] rht_sg:
i think it was a temporary net/server issue. :)
[Android Software Development] zcink:
not real sure what your question is ???
[Android Software Development] HTC-TYTN2:
what is the best compression level for jb 4.1.2 ?
[Android Software Development] rht_sg:
I have a HTC Desire phone, which had HTC FM and Music apps in its stock Sense 3 rom, based on Android 2.3.5

I moved to 4.2 based PACman rom, and want to use the same FM and Music apps.

I had used Universal Deodexer to extract my phone's stock framework files, then used UD to make deodexed apks of these original apps.

after i flashed PAC rom, and put these files in the system/app folder, these apks fail to start.

any suggestions ?

thanks
[Android Software Development] 216Monster:
[MENTION=4663391]abcdjdj[/MENTION]

Yo, needed a new deodexer (lost old files from way back whenever) to do some work on LG G3 and xLOUD 4.4.2, found your guys work in a few minutes, worked like a dream, point me to a donate please?
[Android Software Development] Jasi2169:
Cool :)
[Android Software Development] manan001:
while deodexing the apk and jar files i found that after the process there were many files that were missing (autodeleted by the universal deodexer v5 ) i use 4.4.2 and compression level 5
[Android Software Development] Typhus_:
Yes, my framework.jar has classes.dex.

Yours doesn't, and that's the "normal" behavior. The odex file is the one that will be "turned" into classes.dex after a successful deodex operation.
[Android Software Development] Tech N You:
It doesn't deodex's that is why I am asking. It shows error as I mentioned above

Sent from my bobobibi :p
[Android Software Development] HTCZ715E:
Found and fixed problematic line!

Hello! [MENTION=4663391]abcdjdj[/MENTION]

woah!

FOUND AND FIXED PROBLEMATIC LINE!

this is correct version of deodex.bat line 22:

java -jar baksmali.jar -a %api% -x %filename%.odex -d "%cd%" -o out 2> error.log

"%cd%" << quotes are need for pathname, if it contains SPACE

-o out added path "out", so it will be created.

previous writings:

I also received error about "out/" directory not exists.

after, I created this directory inside of frameworks, so no more error happend..

BUTttt, classes.dex inside new APK is just 140byte..

so failure is anyway..

I suspect, copied framework itself is not deodexed? (no)

also android is 4.4.2; can this be problem? (no)

#####################
[Android Software Development] Tech N You:
[MENTION=4663391]abcdjdj[/MENTION] this is the new error i face

If you need to create inline.txt see these two txt files, I attached hope they can help you. These are from a MTK deodex tool.
[Android Software Development] beegeero:
Very good job.

Thank You.
[Android Software Development] guffoe:
Thank dude
[Android Software Development] OptidroidPlus:
Works for me!! :D dsixd.. not working.. but this yes :D thanks!!
[Android Software Development] chauhanjayc:
any luck for lollipop support

as till date there is no tool for deodexing t2 ultra dual lollipop

asides i have tried all xperia htc and samsung tool non of them workds

thanks
[Android Software Development] quadeur06:
same problem..
[Android Software Development] Teracotta:
I have a problem where I've once successfully deodexed all my .apks, but when I went to do the frameworks it stopped working, and then I tried to redo the .apks and it still didn't work again. So I'm unsure what the problem is. But I have a bunch of deodexed .apks and no frameworks.

The main problem is, consistently, this:

It's worked once, the immediately stopped working, but I don't know why/how. I pulled the framework files via adb and the .apks in the .apk files had the accompanying odex file.

Here's my path in Windows:

C:\Windows\system32;C:\Program Files\Java\jre1.8.0_60\bin;C:\Program Files\7-Zip;C:\Users\Teracotta\AppData\Local\Android\android-sdk\platform-tools
[Android Software Development] Dajka11:
Deodexer V5 says : UNEXPECTED TOP-LEVEL EXCEPTION:

java.lang.RuntimeException: Cannot find file or directory "out/"

at org.jf.smali.main.main(main.java:174)

When I tried to make out/ directory Windows said me I can't. What now? Worst of it is that it says "Succesfully deodexed all files", but it did'n do anything.

I attached the log.txt from my computer.
[Android Software Development] hataw:
HOW TO GET system/framework folder
[Android Software Development] Krishhacker:
Java
[Android Software Development] solidsnake892016:
help

to make deodex of stock Samsung ROM 6.0.1 MM, which folders I need to copy?
[Android Software Development] Hamidreza2010:
use SVA Lollipop Deodexer For Art 4.1
[Android Software Development] solidsnake892016:
I tried, but when I start SVA tells me that Java is not installed, while I have already installed the latest version of java

---------- Post added at 10:06 AM ---------- Previous post was at 09:55 AM ----------

I have resolved to restart the pc, on SVA I enter the system folder?
[Android Software Development] solidsnake892016:
I used SVA, but after doing execute and putting the flag to app framework and priv-app, tells me deoxed 0 and 382 errors. help me pls
[Android Software Development] SeaFargo:
how to manage if there are some lib files??

There are some system\app that have some lib also ...

How can I manage them in a deodex intent?

As example the TW 6.0.1 file priv-app/app/AdvSoundDetector has 4 files inside the path AdvSoundDetector/lib/arm

how to do?

Is it possible to launch that procedure recursively, since TW Stock ROM has all .odex files inside another 2 subfolders?

And after the process I only need to copy back the deodexed files in system/app and system/priv-app erasing the previous?

Thanks in andavnce.
[Android Software Development] mclogan:
Is it possible deodexing Stock MIUI 8 MM ROM using this tool?
[Android Software Development] NotesOfReality:
Hey guys,if someone is searching the V4 zip file here it is https://www.dropbox.com/s/s9a8mhnbimavdng/Universal Deodexer V4.zip,unfortunately the link in the OP(at least the V4 one) is broken.

Here is another link to my MEGA account https://mega.nz/#!5kNgRbaC!xcDi3WWDx5nyospZWyBYIKYFVeETKuC0Xhh5HhXogAs,if this last link will be broken feel free to contact me
[Android Software Development] akshaysannakki:
This tool supports android marshmallow ?
[Android Software Development] Mr Hassan:
for 6.0.1 or 7?
[Android Software Development] philsilvers:
Hi, I'd like to help a few people that never got round to seeing the birth of their fully deodexed ROM or ever appreciating all their hard hours, not to mention the sore arse, sitting around for hours on end, deodexing their apks and jars using this totally fantastic universal deodexer tool of course, these tips may help to avoid the frustration when it comes to boot up time turning into no-go time.

Don't put all your eggs in one basket, i.e don't install the deodexed framework unless your deodexed apps are bootable.

This is how I do it -

Use root explorer to bulk overwrite the old apks by pushing 20 or less new apks at a time, watch out for the ones that crash then force close them, some may crash a few times but that's fine, what isn't fine is if any apk crashes repeatedly and force close doesn't hold it back, this means the phone won't boot with this apk, if this happens then redo that apk in the deodexer tool but set the compression to zero, then push the new apk again.

After pushing each set of 20 or less, bulk set the permissions, its quicker to highlight all when doing this.

After all the apks are installed, delete all odex files top to bottom.

Switch phone off while still in root, then go to recovery, clear cache and dalvik cache, then reboot and wait, then maybe reboot a couple of times, i do.

Do a nandroid backup then thoroughly check for any apps or settings that crash, there's sure to be some, anything that needs redoing should be set to zero compression in the deodexer tool.

Now start over and do the same thing with the new framework files, though I do recommend to push less of these files at a time.

I hope this may help a few people, regards.
[Android Software Development] kalmena:
FAILED

WHY?

Everything is Ok

1 archivo(s) copiado(s).

DEODEXING COMPLETE!

================COMPLETED DEODEXING===============

===================DEODEXED 1 of 1===============

Done checking 100%

FAILED : Camera.apk

Writing Log to file..

DONE WRITING.

=======DEODEXING PROCESS COMPLETE=====
[Android Software Development] mattsm:
Once you are done and have pushed all files back to device, you need to clear caches, boot into recovery, clear caches and reboot.

Edit: the red highlight, those files should have been left in device as is.
[Android Software Development] TarekElsakka:
Alright thank you very much! I really appreciate all your help. I am going to try that now, hopefully it works!

---------- Post added at 04:48 PM ---------- Previous post was at 04:36 PM ----------

Damn it... it's still not working. After I wiped cache and delvik cache and rebooted, it stops at the SAMSUNG bootup logo and keeps vibrating. This is really, really annoying. :(
[Android Software Development] mattsm:
It is not gonna boot, till you push the missing files back, use adb. Or your only other option is to restore your backup"which you should have done" and start over.
[Android Software Development] TarekElsakka:
Yeah of course I restored my backup several times in attempts of accomplishing this. By the way, after I remove the framework files using Android Commander, I actually quickly push the deodexed ones to the system / framework folder and then boot into CWM and wipe cache and delvik cache but it still doesn't work. Maybe it's not doable on the leaked XXUFMB3?
[Android Software Development] mattsm:
Well something went wrong along the way, It should be doable. I would clean up and start over.
[Android Software Development] TarekElsakka:
I guess the only thing left to do would be to give the adb method a shot. I have never used adb if I remember correctly so it's going to be a difficult start.
[Android Software Development] mattsm:
When you go to push files to device, the order I would use would be push files to system/app then remove *.odex

Then push files to system/framework, then remove *.odex

I wouldn't delete the framework files and then try to push files, just push what you have, it will overwrite, then remove the .odex files. When booted into rom using androidcommander, removing the framework contents might be your issue.
[Android Software Development] TarekElsakka:
I am going to give it one last shot before I head out. Thanks, mate.
[Android Software Development] Stefano187:
Sorry

Hi all,

I'm sorry to tell this, but your deodexer for my lenovo tab doesn't work.

Let me explain better: it deodex both apps and framework, but when I put them on my tablet via adb, when I restart the device everything force close and all processes freezes.

May be my rom is not "deodexable" :D

Apart that, great tool :highfive:

Regards

Stefano
[Android Software Development] abcdjdj:
You have to even set permissions. I will release a flash able zip for this soon..
[Android Software Development] Stefano187:
Good morning abcdjdj,

I forgot to add that I made a "fix permissions" via cwm recovery. Is that enough or I need to change permissions manually?

Sorry for bothering you.

Have a nice day

Stefano
[Android Software Development] abcdjdj:
Hi,

Can you do one thing, just flash a stock rom on your tab and try deodexing only one or two apks like browser.apk and calculator.apk (stuff that won't cause boot loops) and see if the apk works fine. If it works fine then you must have not copied the files correctly on your first attempt. But it the apks don't work then it is a problem in my tool.

abcdjdj
[Android Software Development] Stefano187:
Good evening abcdjdj,

I'm sorry for writing what I'm going to write only now but in these days my life was a little bit frenetic...

I need to apologize with you: the problem was neither your application nor my Rom, but me! I noticed that my Tab calls the internal sdcard Emmc and the external sdcard... So the mistake was mine... Thanks again for this great tool.

Regards

Stefano
[Android Software Development] abcdjdj:
No problem at all. Enjoy:)
[Android Software Development] bluenile:
Error ...

I get the following error (screenshot - http://i.imgur.com/iuIephW.png) as soon as I run the main.bat. I had to edit the main.bat and remove the exit command to get the error screenshot.

=========================

H:\Deodex_V3_Fixed>main.bat

Exception in thread "main" java.lang.UnsupportedClassVersionError: Control : Uns

upported major.minor version 51.0

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClassCond(Unknown Source)

at java.lang.ClassLoader.defineClass(Unknown Source)

at java.security.SecureClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.defineClass(Unknown Source)

at java.net.URLClassLoader.access$000(Unknown Source)

at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

Could not find the main class: Control. Program will exit.

===================

I've Java installed, I used adbpull.bat to get all the files from framework folder. Is there anything I may be doing wrong?
[Android Software Development] sga999:
See post 3. It has FAQ, and one is about the Java version.
[Android Software Development] bluenile:
Thanks mate. That fixed so so many things for me, I so dumb.