yashsingh1/xdaforums huggingface dataset:
[Android Software Development] aldnnnn:
i manually push the apks and jars in their respective folder then fix permissions in twrp. had some trouble with some apps,then i reinstalled them. everything works now,i think. if their are no .odex files in my system/app and system/framework. did i succesfully deodexed my rom?
[Android Software Development] abcdjdj:
Yes:D
[Android Software Development] Abhinav1997:
FAQs updated ;)

Cheers,

AJ
[Android Software Development] behemot24:
Thanks for this tool! By using it, maybe I have a chance to solve myself this request I've made :)

I only have a few questions before I give it a try:

1) The ".apk" and ".jar" files that I need to put in the "apks" PC folder are the files that I find in the "system/framework" and "system/app" of the phone, right? Or are there any other folders on the phone that could have system apk's and jar's that need deodexing?

2) Is there a particular reason to have the "Pull framework files from phone" option, but not "Pull app files from phone"? Maybe the folder for the apps isn't the same on all devices, that's why? If it is so, would it be possible to make an input field where we can enter the app folder name to pull apps from?

3) Once the apks and jars are deodexed, all I need to do is to: copy them back to the phone to their respective folders, delete the odex files from those folders, then fix all the permissions in recovery?
[Android Software Development] abcdjdj:
Hi,

1)Yes, you are right. There are no other files to be deodexed.

2) No, there is no particular reason for not having a pull apks option. Just that I usually use my tool for deodexing roms which I either I make or are already on my pc. Sorry, must have slipped my mind but it will be there in V5 along with some other fixes.

3) Yes, but it is still safer to have a flashable zip.

Btw if your rom is already a flashable zip then you can deodex it before even installing it on your phone. All you have to do is extract the zip with winrar, go to the system/app and system/framework folders (this is on your pc) and take the files from there.

Regards,

abcdjdj
[Android Software Development] diego88it:
Hi!!!!in the flashable zip i have to put only the folder app and framework that are deodexed?

Btw i can't deodex the framework and i follow all the instructions :(
[Android Software Development] abcdjdj:
You can't have a partially deodexed framework as it will cause bootloops. So you need to put all the deodexed framework files. Where are you stuck?
[Android Software Development] diego88it:
At the end, after many tries, i resolve.

But what's the secure way to put them on the phone?
[Android Software Development] abcdjdj:
A flashable cwm zip file.
[Android Software Development] diego88it:
Into it i have to put only the deodexed apks and framework or something else?
[Android Software Development] aldnnnn:
Sorry for being off topic but i have my framework-res.apk in custpack/framework and system/framework. My problem is i cant install that apk in apktool. Do i have to deodex anything else?
[Android Software Development] abcdjdj:
By installing, do you mean decompiling or installing framework resources?
[Android Software Development] aldnnnn:
what i meant was installing framework resources. i cant decompile system apps because of this.
[Android Software Development] TheXorg:
[MENTION=220835]todo[/MENTION]:

Can i help you?

I'd like to "translate" the .bat files into linux .sh files for you.
[Android Software Development] ravijani:
Wayy to go

thank u for this been looking for 4.3 android note 2 leaked update to deodex.

thnx nice and keep it up.
[Android Software Development] amol8356:
help plz

I am getting following errors:

1) double click on app doesn't work..cmd window closes rapidly.

2) while opening with cmd prompt it shows could not find or load main class jar.

how do I solve this issue??:crying:
[Android Software Development] Silesh.Nair:
Make sure you have installed jdk from here.
[Android Software Development] amol8356:
Well that issue was solved by using javafix tool...

Because nokia suite is interfering with java executable files.

But now another issue is occuring that it shows unable to find core.odex?
[Android Software Development] abcdjdj:
Have you placed your framework files in the "framework" folder?
[Android Software Development] amol8356:
Yup...and also where are the classes.dex file? I didnt see it in android policy.jar
[Android Software Development] amol8356:
I did exactly what you said. But I m unable to do it.

Another thing is I m not able to find classes.dex file inside the android policy.jar.

Will you provide a complete tutorial from start to end with each step covered.?

I m totaly new to this, but want to make my own deodexed firmware. Thats why I want to know all this. I know this is not easy but I have made custom firmwares for my nokia n8 using nokia cooker.

But now I m having samsung grand and want to deodex it. I m using 4.2.2.

Any help will be appreciated.
[Android Software Development] cyrax2013:
not working any way.....plz help....shows an error message saying "unable to access jar file universal" i tried it run in Windows 7 as well in windows 8....but failed..
[Android Software Development] cyrax2013:
plz help...

not working any way.....plz help....shows an error message saying "unable to access jar file universal" i tried it run in Windows 7 as well in windows 8....but failed..
[Android Software Development] abcdjdj:
I think that you are trying to run the jar file from cmd. Try putting the jar file name in double quotes. Once you type the first one or two letters of the file name, you can press the tab key so that it will automatically complete the file name.
[Android Software Development] abcdjdj:
Please upload the entire contents of /system/framework of your phone. You can accomplish this by connecting your phone with USB debugging enabled in Settings and choosing the "pull framework files from phone". Then upload the "framework" directory of the tool (on your pc) to any file hosting website and share the link here.

I'll make a video on how to use the tool very soon.
[Android Software Development] amol8356:
Sorry cant do that now, having an interview. Lot of preparation to do. Will upload soon. Anyway thank already for posting video tutorial. Hope it will help me.
[Android Software Development] artur0588:
I have deodexed ROM with no single error. Then I have replaced apk's and jar's files in my zip rom for CWM. Install ROM and it wan't boot, infinite bootanimation. LG Optimus G.
[Android Software Development] TheWhiteChallenger:
im gettting an "xcopy" error i think i screwed up my environment variables when i set up apktool, the URL for this issue in the faq is no good. i need someone to help me
[Android Software Development] Maurice5813:
Hoping for 4.4 support soon!
[Android Software Development] droopyar:
error

It is strange, but i try to deodex SecPhone.odex

It creates the new .apk ok, but when i replace it on the phone, the dialer seems unstable, and some crashes appears.

Seems somehow do not work ok.

I tryalso Carbonite Tool, and shows some missing files.

http://xdaforums.com/showthread.php?t=2226160

I am not sure which one is better. Any ideas??

For users: I have some problems to start , so i install LATEST Java SDK and works.

regards,
[Android Software Development] azyxter:
its not opening!!

when i double click on .jar it shows error " coldnot find main smthing" ,, i opened with java binary,, still same error !! ,, i tried with cmd ,, again same error :s
[Android Software Development] mhashim6:
[MENTION=4663391]abcdjdj[/MENTION] : Great Sir .. how to know my Compression Level ?!

I'm on 4.1.2
[Android Software Development] amol8356:
Try to download jarfix. Its a small exe app. Double click it after installing latest jdk. And then try to open jar files by double click.
[Android Software Development] abcdjdj:
Update your Java to the latest version and then try again.

I didn't get you.. Do you mean to ask which compression level to use? For our awesome Xperia devices 5 works just fine:)
[Android Software Development] mhashim6:
[MENTION=4663391]abcdjdj[/MENTION] Thx sir. But someone stole my Xperia phone :( and now i have galaxy y s6312 JB. what's my compression level? . Thx again :)
[Android Software Development] Fataldose:
Can I DeOdex Note II 4.1.2 ?
[Android Software Development] abcdjdj:
Sorry to hear that:(

Try compression level 3. And please don't call me sir, I'm about your age:p

Yes:)
[Android Software Development] mhashim6:
hehe thx my friend :)
[Android Software Development] tortoracer:
ok, im having a little trouble with this, i wish the instructions gave you a little better on what to expect.

first off, i open it with java, none of the buttons did anything; i tried the command prompt method, and it worked properly.

i set my android version to the correct version, kept compression at 5 (can i lower it, just to be safe so i dont have to re-do this? or is that fighting space at that point?)

i press the deodex apk's button, and it does what its supposed to. (im not supposed to delete the apk's am i? does it do that automatically?)

eventually it hits a wall where it asks me if it should overwrite something, giving me the options yes/no/all; if i type y, it does something before i can even finish typing yes, same goes with no and all.

at that point, it gets repetitive to the point i doubt its doing the right thing and i exit out of the program.

i tried it a few times, where each time i erased everything from the deodexed folder. a better video is definitely due, but until then can i just get a hand? :)

thank you, Chris

my device is a Droid Maxx xt1080m (xt1080)

EDIT: i also have one app in my /system/app folder that isnt stock; i put my notification toggles app in there so i could toggle gps.

the only reason i am trying to deodex my phone, is so i can do the finer volume adjustments mod in my framework.jar

EDIT2: after a little reading, it appears for what i want to do (modify my framework.jar slightly) i only need to deodex that one file; how can i do just that one file?
[Android Software Development] blttalas:
Can you add android 4.4 ? kitkat
[Android Software Development] abcdjdj:
If you want to deodex only one file, then place only that file along with it's corresponding odex file in the "apks" folder and choose the correct (apk/jar) deodexing option. But bear in mind that if you are deodexing a framework file, then you must deodex all other framework files too or else you will get bootloops.

You can try deodexing 4.4 apks. I will be able to officially add 4.4 support only if the authors of smali.jar and baksmali.jar add support. V5 will have the latest smali and baksmali so mostly 4.4 deodexing is coming soon.:D
[Android Software Development] tortoracer:
thank you for the response!

so all files with "framework" in the name should be deodexed? do i stick the .apk's in the folder too? delete them?

after the button press in-program, will i need to do anything except sit back and watch?
[Android Software Development] abcdjdj:
No, I meant that all the files in /system/framework (the files which you have currently placed in the "framework" folder on your pc) must be deodexed. After deodexing it, you need to copy them back to your phone.
[Android Software Development] shayind4:
Thanks OP.

Just deodexed my Note 1 (N7000) ROM on second try.

Good work.
[Android Software Development] tortoracer:
oh ok....i havent tried a second time, but am i supposed to get a message that asks me what i want to overwrite? the options are yes/no/all, and any keystroke makes it do something (like not the word>enter, but like just pressing 'y' does it)
[Android Software Development] abcdjdj:
No you shouldn't be getting that overwrite message. Please re-extract the tool and try from the beginning.
[Android Software Development] PrimeMax:
i m getting a strange problem.i have put all files in respective folder,when i tried to execute deodexer gui jar file,the msg popup-"could not find the main class: GUI.program will exit."

so i try to get through cmd prompt

when i tap enter,it shows-"unable to access jarfile universal".

wht is d prblm regarding dis,m on win8.
[Android Software Development] abcdjdj:
[MENTION=5462716]PrimeMax[/MENTION] - Please update your Java to the latest available version and try again.
[Android Software Development] Artha_CR:
I hope in the next version there are additional features such as universal odexer :D
[Android Software Development] abcdjdj:
I think that I'll make the odexer as a separate software. But I won't be able to develop anything until March 2014:(:(
[Android Software Development] vinconti:
overwriting and 4.4 support revisited

so, to be clear, if we are trying to deodex files that we pulled off a stock 4.4 image, we should just use API 18, and NOT try to replace your bat file variable with a static 19 after pointing to the right SDK platform?

and I keep getting the overwrite question too, it wants to overwrite my .classes.dex file. I assumed that it was overwriting the old one with the new, complete .dex file. Is that not the case? EDIT: I figured out that apks in Google factory images are ALREADY deodexed but also come with an odex file to speed booting. I am guessing any apk with a classes.dex fil in its root level is already deodexed?

Also, piping to the log file doesn't work at all, it hangs there. simply deleting the log file concatenate seems to fix that part of it though, so it looks like this

cd..

xcopy "framework\classes.dex" "%cd%\working\build\"

xcopy "apks\%x%.apk" "%cd%\working\"

cd working

7za x -o"build" %x%.apk

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

cd build

7za a -tzip Done.apk * -mx%compress%

ren Done.apk Done.zip

7za d Done.zip 7za.exe

ren Done.zip Done.apk

cd..

cd..

xcopy "%cd%\working\build\Done.apk" "deodexed"

cd framework

rmdir out /S /Q

del %x%.odex

del classes.dex

cd..

cd deodexed

ren Done.apk %x%.apk

cd..
[Android Software Development] Jasi2169:
Could not find the main class: GUI. Program will exit ??
[Android Software Development] starbase64:
Hi,

all deodexed apks are only 22kb :confused:

i've copied files from a ota /system/apk to apks folder and framework files to framework.

regards

starbase64
[Android Software Development] mrjoy:
It deodexed the all apk files placed in APK folder but it is not being deodexing the the all framework jar files in FRAMEWORK folder. It shows message 'Deodexed 0jar files'. Plz help/ I want to deodexed my rom.
[Android Software Development] abcdjdj:
If the apk has a classes.dex file inside it's root directory then it is deodexed. I'll look into this issue and let you know.

Update your java to the latest version and try again.

Please enable debug mode and post a screenshot of the deodexing procedure here.

Please delete the entire folder, re-extract it and try again.
[Android Software Development] starbase64:
Hi,

classes.dex not found :(

regards

starbase64
[Android Software Development] abcdjdj:
I haven't tried using it, but be sure to check this out - http://xdaforums.com/showthread.php?t=1476797
[Android Software Development] vinconti:
oh my gosh thank you so much, I think that's exactly what I need
[Android Software Development] TheWhiteChallenger:
hello all, im having a general issue i keep getting the xcopy not recognized thing, i believe my variables are set correctly, but the link in the q&a and the xcopy error is broken. i had this working be i got everything deodex and set up apktool and when i went to use this is no longer works. can anyone help?
[Android Software Development] abcdjdj:
It is giving you the bootclasspath error because you must not have copied the framework files from that rom. Please copy all files from the /system/framework folder of your rom to the "Deodex_V2" folder and then try. Please check the OP for screenshots. In case you haven't understood any step, please feel free to ask me.:)
[Android Software Development] Joffie87:
I used a script to pull framework via adb. You put the files from the framework folder in the base Deodex_V2 folder correct?
[Android Software Development] LeftyGR:
Hello. Thank you for your contribution!

I have a question regarding deodexing a fully odexed rom. I will copy the entire framework folder over, which is mostly odexed as well, to deodex all other apks. Will this also deodex the framework apk files?

Thank you.

{SGSIII using Tapatalk}
[Android Software Development] abcdjdj:
That is correct. All the contents of /system/framework like android-policy.jar, apache.jar etc. should be placed in the Deodex_V2 folder just as in the screenshot.

Well, there are/maybe some odexed jars even in /system/framework of the rom. But as I have said in the OP, deodexing jar files will be added in V3. If you have any apks in /system/framework like SemcGenericUxpRes.apk (if you have a sony phone) or tw-framework-res.apk (samsung) etc which is odexed, you can deodex that too. Jar deodexing support coming up in V3:good:
[Android Software Development] sohan rawat:
i sucessfuly deodex aps bt how to deodex framework??
[Android Software Development] abcdjdj:
Sorry but framework is coming up on V3 along with some other cool features. Till then you can use some guides to manually deodex jar files. There are very helpful:)
[Android Software Development] sga999:
I'm really looking forward to using your tool, but I'm doing something wrong. I've copied the framework files, and I've put systemui.apk and its corresponding odex into apks. But when I run Main.bat, some errors flash on the screen very quickly, and the command prompt window exits. I have java installed, but maybe it's the wrong version? Then I just typed "java Control", just so that I could see the errors. Here's what happened. I haven't used Java much, so sorry for the noob questions.

D:\download\univ-deodex\Deodex_V2>java Control

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.

EDIT: If I run the java version checker, it says I have Version 7, update 17. But it also says I have older versions installed. That error above indicates something is wrong with my major/minor version number. I hope you can let me know the correct version to install. Thanks.

EDIT2: I had several java version 6. I couldn't figure out how it was getting at one of those since it was not in any path or environment variable. So I finally just uninstalled them all and installed version 7. Main.bat now displays a nice screen! I'll keep going.

EDIT3: Worked perfectly! Thanks so much for your excellent work!
[Android Software Development] abcdjdj:
Yes, it seems to be a problem regarding the version of java. I will specify it in the OP. Thanks for letting me know.
[Android Software Development] abcdjdj:
FAQ Added in 3rd post.:)
[Android Software Development] abcdjdj:
Hi guys!

V3 has been uploaded. Kindly check the changelog for more info. Now you can even deodex JAR files.:)

The Linux version is on it's way.:D

Thank you,

abcdjdj
[Android Software Development] twinkyz1979:
I just gave version 3 a go and it is no longer going through all apk's for me it does the 1st one and stops. on v2 it would continue in a new window for each apk upon closing the window opened for the previous apk.

I like the addition of pulling the framework maybe you could add pulling apps as well.
[Android Software Development] abcdjdj:
Sorry about that. I have uploaded a fixed version which 100% works and even a video which shows how to set up the tool. Enjoy guys!:D:good:
[Android Software Development] brolee93:
thanks good work my bro
[Android Software Development] mrvirginia:
script Main.bat just opens and closes immediately here. working with TouchWiz odex files.

edit: i was able to manually deodex so i'm not sure what's going on. some help would be greatly appreciated as manually doing them all would take quite a while
[Android Software Development] abcdjdj:
If Main.bat just opens and closes then try this - open Main.bat with a text editor. The last line would be exit. Remove that line and replace exit with [MENTION=607132]pause[/MENTION]

Then run Main.bat again and tell me what do you see.
[Android Software Development] mrvirginia:
thanks for replying.

thankfully i'm a little familiar with some things in .bat scripts. i did what you said last night and didn't understand what was going on so maybe you will. further, i just ran the deodex_apk.bat and am having a lot of trouble there as well. for whatever reason the %x% isn't pulling in the actual name of the odex/apk file. i'm just having a ton of trouble with this.

here's the screen cap of the Main.bat not working. my java is up to date.

---------- Post added at 08:29 AM ---------- Previous post was at 08:26 AM ----------

when manually typing in the odex file and apk file, this is what i get:
[Android Software Development] abcdjdj:
Ohkay you have the class version problem. Just check the FAQ for the solution.:)
[Android Software Development] jayd_zena:
Hello,

this method is only for deodex an apk, or I can use to deodex the whole rom?

If I do deodex all the apk in my phone, and then install an apk from the market, this will be ODEX or deodex?
[Android Software Development] abcdjdj:
You can deodex the whole rom since roms have apk and jar files only.:)

If you install an apk from market, it depends on the apk and not the Rom but usually all apps are deodexed.
[Android Software Development] Graffiti Exploit:
Hi, I just wanted to ask if the deodexed apks and jar files are automatically copied to the phone or should I manually copy them myself?

Also I can see some errors when deodexing but they are too quick to be examined. If I debloated my ROM(NoBloat app), will this cause some errors? Or will it just skip the debloated apps, which may explain some errors but somehow still continues to deodex?

I apologize for the nub questions. Thanks!

Bug: Can't seem to deodex jar files. When I press 2, it does nothing but displays the options again.
[Android Software Development] roshandes:
need help..

[MENTION=4663391]abcdjdj[/MENTION] Bro.. please help.. i am trying to Deodex stock rom from LG Optimus G Pro E 988 indian version.. till some extent i got success but i am unable to deodex some system apps & framework folder.. error archive not found.. & sometimes unable to load bootclasspath files..
[Android Software Development] abcdjdj:
Hi and sorry for the delay. Firstly thanks for taking the trouble of going through the faq. Here's the link - http://developer.appcelerator.com/q...recognized-as-an-internal-or-external-command

I'll tell my friend [MENTION=4766488]Abhinav2[/MENTION] to update the link. Thanks:)
[Android Software Development] abcdjdj:
I suspect that you are unclear with the instructions, so kindly watch the video so as to know where to place all the required files and get the tool to work. Let me know how it goes:)
[Android Software Development] TheWhiteChallenger:
so idk whats wrong, ive updated my java jdk, checked the path, updated it to match the version update. still getting the xcopy thing,
[Android Software Development] TheWhiteChallenger:
Ok so I fixed my issues with patching for the link. I was just stupid the first time and omitted the %system32% or w/e. Thanks for the help guys.

On another topic how is 4.4 deodexing going for everyone?
[Android Software Development] Spannaa:
I deodexed KRT16S for the Nexus 7 (2012) with Universal Deodexer V4.

No issues whatsoever (so far)...

Thanks [MENTION=4663391]abcdjdj[/MENTION]