yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Surpass:
Nope. :(

I've tried and tried and tried again - uninstalls, extracts, reinstalls, the list goes on - nothing works. I've fixed the path and rechecked that I fixed the path numerous times. Nothing will work.

Sent from my Nexus 4.
[Android Software Development] abcdjdj:
Okay try this - Go to system properties and advanced system settings. Then select environment variable and set a new variable called JAVA_HOME and the value must be the path to your bin directory inside the jdk folder. Like in the screenshot.
[Android Software Development] mysterio619:
Can anybody mirror the v3 version thanks :)
[Android Software Development] abcdjdj:
Even you have a problem with dev host right? I think it is a problem with their servers. It just won't open on my pc:(

Anyway here is the mirror - https://dl.dropboxusercontent.com/s...Trxa7Thm9776KkEFAN87WMgcsF5NwDgiQ8CpkUFA&dl=1

Enjoy:)
[Android Software Development] mysterio619:
HI thanks for the link.......i am getting some error "error occured while loading boot classpath files" and some unexpected top level exception: cant find directory "out/" and file not found - classes.dex.......but it deodexes successfully.........i'm confused whether it is deodexed or not......op can u help me thanks
[Android Software Development] abcdjdj:
That's because you have not copied the framework files for your device. Just see the video if you have any more problems.:)
[Android Software Development] mysterio619:
Thanks mate.......damn i should first learn to read OP fully,,,,,,,by the way after that everything went fine but for some odex files i was getting this error cant find directory "out/" and file not found - classes.dex
[Android Software Development] abcdjdj:
See, for each apk there has to be a respective odex file. If there is a file called test.apk, then keep test.apk along with test.odex in the "apks" folder. You are getting this error because you must not have copied the odex file. If you can't find an odex file for your apk then that apk is already deodexed:)
[Android Software Development] Surpass:
Nope. Still saying the same message and still closes upon key press. :(
[Android Software Development] abcdjdj:
Just open deodex_apk.bat with notepad and add this after the last line -

[MENTION=607132]pause[/MENTION]

Then run the tool and post a screenshot of the error. Now the windows won't automatically so you can see the error.
[Android Software Development] Surpass:
Alright. I changed it, but I don't see any differences in the problems I'm having.

Is this the error you meant?

By the way, not sure if it matters, but I edited it with Notepad++.
[Android Software Development] abcdjdj:
Yes. Your java is seriously messed up.. Just go to control panel and uninstall all previous versions of Java and download the latest Java JDK from here - http://www.oracle.com/technetwork/java/javase/downloads/index.html

Be sure to select the correct verision (64 or 32bit). Also, go to program files and manually check for any left over files. Be sure to reboot after uninstalling the previous java
[Android Software Development] mnishamk:
OR its not the java, its the path.

Maybe after installing java, he didn't give java in his path variable, that's the most common issue for that error.

Regards

N
[Android Software Development] abcdjdj:
I had told him that but it didn't work out for him. Oracle should do something to make the installation much easier:(
[Android Software Development] Surpass:
Alright then, so I uninstalled all versions of Java and deleted extra Java files off my computer too, rebooted, and installed the JDK like you said. It still didn't work. So I figured I'd check out a Youtube tutorial for installing Java (so I could visually see if I was doing something wrong) and although I wasn't the video did mention the Java Compiler and how to set it up. I followed the instructions and by instead ADDING the 'Path' in the environment variables with the appropriate file location rather than EDITING 'Path', it worked. Well, sort of. Now, I do indeed actually see the 'Welcome! Please enter your choice...' etc.

But, now when I type '1' to deodex, this pops up:

'xcopy' is not recognized as an internal or external command, operable program or batch file.

That stays up for a few seconds, then a bunch of things flash for a split second (I can't tell what they say easily, though, some of them say the same as the above but a few I can tell don't) and the command prompt closes... without deodexing. :(

Oracle really needs to get this installation crap straight if I'm seriously still doing something wrong because of that. But at least I can actually operate the Command Prompt without it closing on me with a keypress.

So, any ideas? :confused:
[Android Software Development] zabumba:
Thank you for this great tool.

I'm trying to build a rom from a stock gt-n7105 (note 2 lte) samsung rom.

I've made 2 attempts to deodex the app and framwork folders (apparently without errors) but with same result: the phone boots normally but I get nfc and stock samsung keyboard FC's. Nfc is a minor problem since I don't use it anyway but can't use the phone without keyboard.

Any help would be appreciated.

Thanks
[Android Software Development] abcdjdj:
Hey man your environment variables are completely messed up. Only reinstalling Windows would fix that.

Okay so first try deodexing only the keyboard and check and tell me if you get any errors.
[Android Software Development] zabumba:
Thank you for the quick response. Problem is there isn't a keyboard.apk maybe is embeded in Touchwiz apk.
[Android Software Development] abcdjdj:
Man I have no idea.:p I know only about Xperia phones.
[Android Software Development] mnishamk:
Maybe a different name?

Try asking around in your forum. That may help u locate it.:thumbup:

Regards

N
[Android Software Development] Abhinav1997:
It's not necessary for it to be keyboard.apk....ut can even be smthing like textinput.apk or LatinIME.apk or smthing similar :D

Cheers,

AJ
[Android Software Development] Surpass:
Alright haha no way I'm doing that, I guess I'll just have to try it on another computer. A shame, but its not like I deodex all the time so it shouldn't be much of a bother.

Thanks for the help anyway. :D

Sent from my Nexus 4.
[Android Software Development] zabumba:
Ok! After some more testing I came to conclusion that it's not only the keyboard and the nfc that doesn't work, there are a few more basically samsung apps like:

Camera

Calculator

Gallery

Contacts Phone

I deodex apk by apk and I can't see any errors but I have copy the logs to Dropbox so you can take a look:

https://www.dropbox.com/sh/8s1dmwsopd0849n/ET2UuF9ZT5?v=0mcn

Thank you
[Android Software Development] abcdjdj:
Do one thing, open deodex_apk.bat with notepad and add this line at the end - [MENTION=607132]pause[/MENTION]

Theb try deodexing and post a screenshot.here.
[Android Software Development] zabumba:
Thank you for your support. Here's a print screen after finish deodexing an apk:

Thanks
[Android Software Development] abcdjdj:
That looks perfectly fine so it is being deodexed properly. Just one question, did you first copy the apk and overwrite it in /system/app and then delete the odex file?
[Android Software Development] zabumba:
Sorry but I'm new to all of this stuff but I want to learn. This is my first experience. I'm using dsixda's Android Kitchen to create a rom from a stock odin package (galaxy note 2 is supported in the kitchen). If I deodex the stock rom in the kitchen (no errors) the phone pass the boot animation but gets stucked in the word samsung after the boot animation (software doesn't boot). If I deodex app/framwork folder with your tool I can boot but some samsung apps give fc's. Why this happen is a mystery to me. The only solution I've come across is to replace that apps that give fc's with the same apps pulled from equivalent deodex roms available (don't know how they deodex their roms but certainly I'd like to know...I've google and read a lot but without success).

To answer your question, after extract system folder in the kitchen I copy all apk/jar+odex files to a folder out of the kitchen, then I delete that files in the kitchen folders (app/framwork). After deodex all the apk/jar files then copy the deodex ones to their respective folders in the kitchen.

I create a folder in Dropbox with some apk's that give fc's, and the same apk's that I extract from equivalent deodex rom and work fine. If you have the time and patience maybe you can take a look

https://www.dropbox.com/sh/av3l1xut9dm0roa/pRjWH6WpZC?v=0mcn

Once more thank you for your support
[Android Software Development] abcdjdj:
This seems to be a compression level problem.. I will tell you how to fix it when I get back home to my PC.:)
[Android Software Development] zabumba:
Great :good:

Thanks
[Android Software Development] abcdjdj:
Okay so, can you please try the following steps and tell me if it still force closes?

Steps:-

1. In the deodexing directory, open deodex_apk.bat and look for this line -

7za a -tzip Done.apk * -mx5 >> Log-APK.txt

2. Now you have to change the 5 to 0 and save the file.

3. Now open deodex_jar.bat and look for this line -

7za a -tzip Done.jar * -mx5 >> LOG-JAR.txt

Change the 5 there to 0 and save the file.

Now try deodexing and tell me how it goes.:)

Regards,

abcdjdj
[Android Software Development] zabumba:
Thank you. When I get home from work I'm gonna try your solution. :D

The suggestion is to aply to all apk/jar to be deodex correct?

Thanks
[Android Software Development] abcdjdj:
Yes.
[Android Software Development] zabumba:
You're the man...everything is working properly now.

I wanna THANK YOU for your magnific tool, and for your support and sympathy.

Keep up the good work.

THANK YOU
[Android Software Development] romeo26222:
first of all thank you so much for this great tool..

and if you don't mind I made a tiny modification to your patch file code to stop the process after extracting to the out folder to let me able to modify whatever smali files I want to then Deodex the file back after resume

thats the code now

@echo off

ECHO WELCOME!

set x=%1

ECHO Deodexing apk..

java -Xmx512m -jar baksmali.jar -x apks/%x%.odex
xcopy "%cd%\apks\%x%.apk" "%cd%\working"

pause
java -Xmx512M -jar smali.jar out/ -o classes.dex
xcopy "classes.dex" "%cd%\working\build"

cd working

7za x -o"build" %x%.apk >> Log-APK.txt

xcopy "7za.exe" "%cd%\build"

cd build

7za a -tzip Done.apk * -mx0 >> Log-APK.txt

ren Done.apk Done.zip

7za d Done.zip 7za.exe >> Log-APK.txt

ren Done.zip Done.apk

cd..

cd..

xcopy "%cd%\working\build\Done.apk" "deodexed"
del classes.dex

rmdir out /S /Q

cd deodexed

ren Done.apk %x%.apk

cd..

cd working

del %x%.apk

rmdir build /S /Q

md build

cd..

ECHO DEODEXED SUCCESSFULLY.

exit

:good::good::good:
[Android Software Development] yayakuya:
hi... first of all i wanna say thanks a tons for your nice tool...

but i've got something strange in here...

the log said it's none of errors, but deodexed SystemUI.apk is not deodex properly (there's no classes.dex inside)

in deodexed folder i see .apk, done.apk, n SystemUI.apk

so, what something wrong? thanks in advance

--edit-- FIXED!

change -mdx5 to -mdx0

now it's working perfect... thanks again bud :highfive:
[Android Software Development] beyored:
thanks for this tool iv just deodexed my hp slate 7.....
[Android Software Development] quisvir:
Hi abcdjdj,

First off: great tool, very useful! I ran into a small problem though, getting prompts like this:

Does D:\Deodex_V3_Fixed\working\build specify a file name
or directory name on the target
(F = file, D = directory)?

These were triggered by errors like this one:

D:\Deodex_V3_Fixed\working>rmdir build /S /Q
D:\Deodex_V3_Fixed\working>md build
Access is denied

It seems my old computer is a bit too slow and is trying to create the new build folder while the file system is still removing the old one :D

So I added the old rename trick to deodex_apk.bat and deodex_jar.bat, to prevent this problem from occurring. I changed:

rmdir build /S /Q
md build

to

ren build build_temp
rmdir build_temp /S /Q
md build

...and now everything's smooth sailing. So if by any chance you plan on making a v4, perhaps you could include this for people with slow computers, like me ;)

Thanks again!
[Android Software Development] abcdjdj:
Hi,

I got myself a new Laptop recently and even I came across this problem of asking whether it is a directory or file. Will be fixed in V4 and apart from this, I will even release the linux version with V4:good:
[Android Software Development] d4ncyb3r:
I'm using your tool for create doedex, but when I clik the main.bat, this file automatically close. I'm using win 7 x64. is there solution for file .bat didn't close automatic?

Solve: After I installed jre from java, main.bat didn't automatically close again
[Android Software Development] OJ:
Great Tool

Great tool. But, one problem..

I tried deodexing SystemUI.apk with this tool. It successfully deodexed. but, when i decompiled that deodexed apk with apktool.. i did not get any smali folder inside it.. i wanted to modify some smali files.. but no smali folder after decompiling..

please help.. any solution?

Tried everything.. mx5 to mx0... but still not working..
[Android Software Development] abcdjdj:
Open deodex_apk.bat and add [MENTION=607132]pause[/MENTION] at the end of the file. Then the window won't close automatically so you can post a screenshot here:)
[Android Software Development] OJ:
Actually, when I tried to deodex SystemUI with this tool.. I am getting the error like cant load bootclasspath file.. so I tried deodexing manually.. by this command-

java -jar baksmali.jar -x SystemUI.odex -d <folder of framework files>

Files got out in a folder named out.. then i smali-d these files back to classes.dex.. and put this classes.dex in SystemUI.apk. But, when I decompiled this SystemUI.apk.. I get following error

Does framework files.. which we used for bootclasspath also need to be deodexed?

Please help me with this all..
[Android Software Development] abcdjdj:
Firstly, you must not have copied all the framework files in the Deodex_V3 folder and hence you got bootclasspath error. As for that recompile error, please tell me which android version are you deodexing?
[Android Software Development] OJ:
Yes.. already copied them.. but framework files are odexed..

I am deodexing android 2.3.6 apk
[Android Software Development] abcdjdj:
Hmm.. It should have worked then. But anyways, to solve that regcount arguments problem, open deodex_apk.bat and find the line which compiles the Smali files back into classes.dex and add this to the line -

-a 10
[Android Software Development] OJ:
Ok.. so you mean I should use API level 10.. i will report if it works.

EDIT: Adding API Level 10 while both baksmali and smali worked.... you are awesome.. thank you very much.. :)
[Android Software Development] rrackman:
So I have the SamsungIME .apk and .odex files that I have pulled from the stock rom of a (rooted) Samsung Galaxy Note 2 on Verizon.

I pulled the framework from my (rooted) AT&T Samsung Galaxy Note 2 running (deodexed) CleanROM 3.5

I used your tools (V.3) placing the files where instructed and deodexed (came up a little over 5mb) and put it in the system/app and rebooted the phone. F/C as soon as I booted (and kept going).

Removed it and put my backup file back and rebooted (all is good).

This was yesterday.

Today I went searching again and found your tip to change the 5 to 0 in the two .bat files.

Followed your instructions and re-deodexed the files (deleted the old resulting apk and everything was still there from last night).

Same thing, renamed the original, put the new file in system/app and rebooted.

Same results, F/C start up almost immediately and continue.

No I do not know if it matters or not but the new deodexed file is now a little over 16mb (triple the size)

The CleanROM file is 7mb.

I love the simplicity of the tool, works fast and easy. I am guessing that either I am asking for something that is not possible, OR (and more likely) I have done something wrong.

Thank you for any help.
[Android Software Development] abcdjdj:
Did you set correct permissions?
[Android Software Development] rrackman:
I set the permissions to match the old file rw-r--r--

I even renamed my old file, chose a different keyboard for default, rebooted, and then copied the new .apk, rebooted and still get constant F/C's

Just to be sure, I use the "Framework" folder from the phone I am going to install the apk on, NOT the framework from the phone I pulled the .apk and .odex from, correct ?

Thanks again for any help
[Android Software Development] OJ:
So.. its me again with a new problem.. now i successfully deodexed all the apks ( yes they r all working in phone).. but.. after that i decompiled systemui.apk and edited some smali code.. ( i did it vry correctly) then i recompiled that apk and pushed to phone.. but now systemui.apk is not being detected by os.. even if i recompile it without modification.

also note that.. after recompiling Meta-inf folder in the apk is disappeared.. so i tried adding it mamually.. but still not detecting sysui.. what to do??

Also.. i m unable to deodex jars

. bootloops..
[Android Software Development] abcdjdj:
The apks and framework files must be of the same Rom. That is the only condition. If it still doesn't work then the only option is to take a logcat of the fc and post it here.

Well Meta-Inf folder is never there in any recompiled apk. Just open the original and recompiled apk with winrar and drag and drop all files except classes.dex from original to recompiled. Chose store only as the compression option. Then it will work. As for the jar files, open deodex_jar.bat and change mx5 to 0.
[Android Software Development] OJ:
Ok.. i will try that with apks..

But.. for jar.. i already tried changing the 5 to 0.. but still bootloop.
[Android Software Development] abcdjdj:
Well then try taking a logcat when the phone starts and please share it here.
[Android Software Development] OJ:
Ok.. thnx.
[Android Software Development] Daniel D.:
I hope I understood the instructions correctly. Please correct me if I'm wrong.

1. I've a .ftf file and extracted the files from there (.apk/.jar/.odex).

2. I need to copy all of the framework files (.jar/.odex) into the base folder.

3. If I want to deodex the framework files, I've to copy them (.jar/.odex) into the apk folder and run the script.

4. I can delete the .har/.odex files in the apk folder.

5. If I want to deodex the apks, I've to copy them (.apk/.odex) into the apk folder and run the script again.

So I've to keep the odexed framework in the base folder, do I?
[Android Software Development] abcdjdj:
Yes, the apks folder must be empty before you deodex your apks. The framework files in the base folder must be there at all times regardless of what you are deodexing. It is required to generate the classes.dex file and is very important:)

The rest is correct.
[Android Software Development] Daniel D.:
The tool is a massive improvement for my personal work! Thanks!
[Android Software Development] badworker:
I was getting problems deodexing apks. Modified -mx5 to -mx0 and now it works like a charm. thanks for this great tool!
[Android Software Development] PsyClip-R:
deodexing process

Should I begin from deodexing Framework files and only after deodex App files ?

I did deodexed App files, everything seems OK. Worklog gives me OK messages.
[Android Software Development] abcdjdj:
No need to deodex framework files first. You can directly deodex apks:)
[Android Software Development] Carlos_Manuel:
Thanks OP! :)
[Android Software Development] hello00:
what do u do after ur done deodexing the apk files?
[Android Software Development] abcdjdj:
Once you have deodexed apks, just make sure that the "apks" folder and the "deodexed" folder are empty. Then you can go ahead and deodex the framework files.
[Android Software Development] guybrush2099:
sorry wrong topic

delete this post :rolleyes:
[Android Software Development] soldiers33:
excellent tool finally I can deodex apps on my own. I found other applications hard to use. thanks.
[Android Software Development] soldiers33:
Can someone please help me. I am trying to deodex my stock xperia z rom however when doing the framework files, half way through when it reaches a certaik jar file it just sits there endlessly for hours and hours. Says 1 file copied classes.dex and that it. All others were fine and all apk's completed without any issues. Is there a reason it does this?
[Android Software Development] SiRIus[X]:
whenever I try to run the Main.bat it will automatically close. what does this mean? I've tried it with my desktop and laptop and the same happens... it just closes
[Android Software Development] SiRIus[X]:
hello guys, I've encountered a problem while trying to deodex my rom. I've done the following

1. adb shell

2. su

3. stop

4. mount -o rw,remount /system/ /system/

5. cp /sdcard/done_app/* /system/app/

6. rm /system/app/*.odex

7. cp /sdcard/done_frame/* /system/framework/

8. rm /system/framework/*.odex

9. mount -o ro,remount /system/ /system/

10. reboot

but it seems whenever I so into step 4. my device automatically restarts. any solution or wrong steps I have taken? I have already paste the follow need files on the the root of the device
[Android Software Development] fOmey:
I cant for the life of me get this working,

I receive error:

Error: Could not find or load main class Control

Iv uninstalled, re-installed JRE & JRK, x32 & x64.

Made sure CLASSPATH is set in environment values tried both "C:\Program Files\Java\jre7\bin" & "C:\Program Files\Java\jre7\lib" for the sake of testing.

Im running x64 Windows 7.

Iv run out of ideas, someone please help me out because im about to tear my hair out. Iv been at this for 2 and a half hours. My entire hyperlinks on google have been visited, maybe im frustrated just missing something obvious.

EDIT: Shortly after having a cigarette, I got it working.. it was a stupid mistake as I said.

End up being my environmental variables.

I didn't have "CLASS" set I was trying to set variable name "CLASSPATH".

EDIT 2: I created a small script to remove all the files which dont need "deodexing" from the "apks' directory to save time..

All it does is scan's the directory "apks" for any files which dont have a identical file name with the .odex extension, if the statement is matched it deletes it.

If anyone is interested in a copy just hit me a PM and ill upload to the thread.
[Android Software Development] abcdjdj:
Hi,

Thanks for making that script. I will include this feature directly into the java code so it is even more user-friendly.
[Android Software Development] RovG:
I would like to try this tool and I was wondering if this tool zipaligns as well?
[Android Software Development] abcdjdj:
Well no..
[Android Software Development] androidnerd2:
So if i want to deodex the whole framework folder I have to put all the files in apk folder and then deodex , right ?
[Android Software Development] abcdjdj:
Yes.

Very good news guys! The next version will be a fully GUI-based tool which will utilize the Java Swing and AWT [Abstract Window Toolkit] classes:D All other minor bugs will be fixed and a few other features will also be included.
[Android Software Development] black97one:
Very good news...thanks for this great tool :D
[Android Software Development] blade22:
Can I use the deodexed apks in any ROM or only in the specific ROM (the ROM framework files) :confused:
[Android Software Development] smokerman:
thanks for great app..i have this error:

can anyone help?
[Android Software Development] abcdjdj:
For some reason, the files which are temporarily copied in the working folder aren't getting deleted. Could you please re-download the tool and try deodexing?
[Android Software Development] abcdjdj:
No, the apks and framework files must be of the exactly same rom.