[GUIDE]【How To DEODEX Stock ROM】[UPDATE 30sept - FIX JELLYBEAN issue]

Search This thread

MEHRDAD595

Senior Member
Aug 24, 2011
450
384
shiraz
First of all on encountering this error don't close the running window, delete the odex file from origi_app folder which is present in xUltimate directory and then come back to your screen, press space bar twice in order to skip and you will come back to the main screen(white background) with list of choices, now select the 3rd choice.

It will successfully carry on. On further encountering similar error for other odex file do the same.

In my case I had to do this process for as many as 12 files.
Tried,but no success! :(
 

j.posarekar70

Senior Member
Nov 13, 2012
728
1,603
◢| MUMBAI |◣
why this happens to me?
i successfully deodexed my framework folder but about app folder every time i face this with any apps!!!
my device is fonepad7 android 4.3
whats wrong?
i used latest smali and baksmali and latest adb files released by asus!
__1587___1587___1587___1587_.png

I guess its because of android version its 4.3 & from I know x-Ultimate is still compatible with 4.2 only...
(Not sure check X-Ultimate official website @start of the thread if they release it for newer version of android)

also double check my Jellybean fix in OP if it will fix your issue

or at the end I say switch to another deodex tool which help you to deodex your rom easy way :)
 
  • Like
Reactions: MEHRDAD595

MEHRDAD595

Senior Member
Aug 24, 2011
450
384
shiraz
I guess its because of android version its 4.3 & from I know x-Ultimate is still compatible with 4.2 only...
(Not sure check X-Ultimate official website @start of the thread if they release it for newer version of android)

also double check my Jellybean fix in OP if it will fix your issue

or at the end I say switch to another deodex tool which help you to deodex your rom easy way :)
after so much searching i found THIS tut is better and works for me!
try this! :)
 

Black_Stark

Senior Member
Sep 24, 2012
3,481
1,010
GOA
hiii..

hiii j.posarekar70,

tell me about light notification features(BLN mode) in ur Pure Galaxy CM10 Rom ?? did u add ??? I am looking forward to try ur ROM. ....Many thanks
 

jamorOO7

Senior Member
Feb 22, 2014
111
12
there were some errors for some apks but completed the process. zip, flashed, successful deodexed, but freezes when about to boot to homescreen, particularly right after the end of the animation. any suggestion guys?
 

j.posarekar70

Senior Member
Nov 13, 2012
728
1,603
◢| MUMBAI |◣
there were some errors for some apks but completed the process. zip, flashed, successful deodexed, but freezes when about to boot to homescreen, particularly right after the end of the animation. any suggestion guys?

Its because xUltimate doesn't deodexed some samsung bloatwares so thats the reason you face errors on some apks.

Another, when you face bootlooping is just because your older system files won't get delete properly before you flash newer one to get replaced,
you can check it with root explorer app there are .odex files still available, thats the sign of old files,

try my zip to put your newly deodexed files in it & flash it through custom recovery
or do it with adb commands...

 

Jorge Moreira

Senior Member
Dec 24, 2010
308
123
Porto
Well some antivirus detects jdk (Java Development Kit installer) itself as virus, as its not :)
don't worry while making this entire process just turn of your antivirus & let it on backwords when works done !




First, many thanks for your work and explanation.


I tried to deodex to my original rom, following in his footsteps, but got the following errors: :confused::crying:

When try deodex system
293je2p.jpg


120qazr.jpg


When try deodex Framework
i44cjc.jpg



What is missing, what am I doing wrong?

Can you help?

My device is MTK6589 Quad core 1.2 1gb ram and 4gb rom

Kind regards,
Jorge Moreira
 

ornobohornish

Senior Member
Jun 3, 2013
147
14
problem on Xperia t2 ultra

for my sony xperia t2 ultra xUltimate saying, * Checking Script Uersion.... *
* Checking Phone ROM Build.... *
* Waiting for Phone... *

and after that nothing happen on my pc!
 

mukeshpacheria

Senior Member
Mar 5, 2013
500
181
Rewari
First, many thanks for your work and explanation.


I tried to deodex to my original rom, following in his footsteps, but got the following errors: :confused::crying:

When try deodex system
293je2p.jpg


120qazr.jpg


When try deodex Framework
i44cjc.jpg



What is missing, what am I doing wrong?

Can you help?

My device is MTK6589 Quad core 1.2 1gb ram and 4gb rom

Kind regards,
Jorge Moreira

download latest version of smali and baksmali and put and replace in jar folder of xultimate folder

---------- Post added at 06:55 PM ---------- Previous post was at 06:53 PM ----------

for my sony xperia t2 ultra xUltimate saying, * Checking Script Uersion.... *
* Checking Phone ROM Build.... *
* Waiting for Phone... *

and after that nothing happen on my pc!


it will help You

Get the latest version of xUltimate. It's version 2.4.2: http://www.xeudoxus.com/android/xUltimate-v2.4.2.zip. If you got version 2.3.3 and accepted to download latest version, you were directed to a thread that is not updated with the latest version. Check post #549 on that thread to find the link I've pasted above.

2. If you happen to have Android 4.2.2 on your device, ADB needs to be updated. xUltimate has version 1.0.26 which won't properly connect with your device. NOTE: you can tell which version of adb you are using by running this: adb version
So:
Install the latest version of the Android SDK to get ADB version: 1.0.31 (or later, should be fine).
Locate and copy over these 3 files from the Adnroid SDK install folder into xUltimate-v2.4.2\jar replacing the existing ones:
adb.exe
AdbWinApi.dll
AdbWinUsbApi.dll

3. I don't know this step is a must for everyone, but it was for me. The assembler/deassembler for .dex file format must be upgraded too. The version in the jar folder in xUltimate-v2.4.2 didn't work fine with the .odex files in my stock ROM.

So:
Download smali.jar and baksmali.jar from here: https://code.google.com/p/smali/. I got version 1.4.2 but any above that should work fine too for the latest available ROMs I guess.
The 2 files probably include the version number in the filename ( i.e.: smali-1.4.2.jar and baksmali-1.4.2.jar). Rename them so they are called: smali.jar and baksmali.jar.
Copy (& replace) those 2 files into xUltimate-v2.4.2\jar folder.

So, that's it. After doing all the above, I managed to deodex my ROM. Well... not quite... there's something else.
After doing the steps above, you should go ahead and follow instructions in the first post of the thread. If everything works, then you are done! Say thanks to OP and enjoy your deodexed ROM.

If however, you still encounter errors while running the xUltimate tool, keep reading...

NOTE: The following is probably only true for certain devices (like mine) so disregard if you don't find any error while following OP steps to deodex.

I got into errors deodexing these files: SamsungIME, SecEmail_Tablet, SecSetting and SecExchange.

Since I couldn't find how to make them work, I decided to leave those files odexed. I'm not sure if that was a good idea or not, but it's fine for me because in my case I actually wanted to deodex some specific apks, not really all of them.

If you decide you want to skip some files (as I did), you'll need to proceed as follows:
Take note of the files that couldn't be deodexed and move those files from the orig_app or orig_frame folder into a new folders, let's call them: "no_deo_app" and "no_deo_frame". Ensure you move the .odex file + .jar file (in case it exists). Make really sure you move files into the right folder: "orig_app" into "no_deo_app" and "orig_frame" into "no_deo_frame".
Run the deodexing again until everything works fine. If you find another file that gives you problem, you do step 1 and 2 again until the tool completes all files successfully.
Now you have 4 folders that are relevant: "done_app", "done_frame", "no_deo_app", "no_deo_frame". Copy all of them into the root of your sdcard.
Now, get into adb shell as superuser access as described in OP following the commands below instead of the ones in the OP. Basically the difference will prevent you from deleting the odex file for the apps that couldn't be deodexed.
 

realthrash

Senior Member
Feb 26, 2013
182
54
Mexico
download latest version of smali and baksmali and put and replace in jar folder of xultimate folder

---------- Post added at 06:55 PM ---------- Previous post was at 06:53 PM ----------




it will help You

Get the latest version of xUltimate. It's version 2.4.2: http://www.xeudoxus.com/android/xUltimate-v2.4.2.zip. If you got version 2.3.3 and accepted to download latest version, you were directed to a thread that is not updated with the latest version. Check post #549 on that thread to find the link I've pasted above.

2. If you happen to have Android 4.2.2 on your device, ADB needs to be updated. xUltimate has version 1.0.26 which won't properly connect with your device. NOTE: you can tell which version of adb you are using by running this: adb version
So:
Install the latest version of the Android SDK to get ADB version: 1.0.31 (or later, should be fine).
Locate and copy over these 3 files from the Adnroid SDK install folder into xUltimate-v2.4.2\jar replacing the existing ones:
adb.exe
AdbWinApi.dll
AdbWinUsbApi.dll

3. I don't know this step is a must for everyone, but it was for me. The assembler/deassembler for .dex file format must be upgraded too. The version in the jar folder in xUltimate-v2.4.2 didn't work fine with the .odex files in my stock ROM.

So:
Download smali.jar and baksmali.jar from here: https://code.google.com/p/smali/. I got version 1.4.2 but any above that should work fine too for the latest available ROMs I guess.
The 2 files probably include the version number in the filename ( i.e.: smali-1.4.2.jar and baksmali-1.4.2.jar). Rename them so they are called: smali.jar and baksmali.jar.
Copy (& replace) those 2 files into xUltimate-v2.4.2\jar folder.

So, that's it. After doing all the above, I managed to deodex my ROM. Well... not quite... there's something else.
After doing the steps above, you should go ahead and follow instructions in the first post of the thread. If everything works, then you are done! Say thanks to OP and enjoy your deodexed ROM.

If however, you still encounter errors while running the xUltimate tool, keep reading...

NOTE: The following is probably only true for certain devices (like mine) so disregard if you don't find any error while following OP steps to deodex.

I got into errors deodexing these files: SamsungIME, SecEmail_Tablet, SecSetting and SecExchange.

Since I couldn't find how to make them work, I decided to leave those files odexed. I'm not sure if that was a good idea or not, but it's fine for me because in my case I actually wanted to deodex some specific apks, not really all of them.

If you decide you want to skip some files (as I did), you'll need to proceed as follows:
Take note of the files that couldn't be deodexed and move those files from the orig_app or orig_frame folder into a new folders, let's call them: "no_deo_app" and "no_deo_frame". Ensure you move the .odex file + .jar file (in case it exists). Make really sure you move files into the right folder: "orig_app" into "no_deo_app" and "orig_frame" into "no_deo_frame".
Run the deodexing again until everything works fine. If you find another file that gives you problem, you do step 1 and 2 again until the tool completes all files successfully.
Now you have 4 folders that are relevant: "done_app", "done_frame", "no_deo_app", "no_deo_frame". Copy all of them into the root of your sdcard.
Now, get into adb shell as superuser access as described in OP following the commands below instead of the ones in the OP. Basically the difference will prevent you from deleting the odex file for the apps that couldn't be deodexed.

Same problem here i try to copy the adb.exe file to the xUltimate jar folder but i cant, gonna try downloading the API 16
Im using an Alcatel with MKT 6685 i dontknow if this dont works on MKT devices
 

bekasulaberidze

Senior Member
May 17, 2013
467
169
Tbilisi
download latest version of smali and baksmali and put and replace in jar folder of xultimate folder

---------- Post added at 06:55 PM ---------- Previous post was at 06:53 PM ----------




it will help You

Get the latest version of xUltimate. It's version 2.4.2: http://www.xeudoxus.com/android/xUltimate-v2.4.2.zip. If you got version 2.3.3 and accepted to download latest version, you were directed to a thread that is not updated with the latest version. Check post #549 on that thread to find the link I've pasted above.

2. If you happen to have Android 4.2.2 on your device, ADB needs to be updated. xUltimate has version 1.0.26 which won't properly connect with your device. NOTE: you can tell which version of adb you are using by running this: adb version
So:
Install the latest version of the Android SDK to get ADB version: 1.0.31 (or later, should be fine).
Locate and copy over these 3 files from the Adnroid SDK install folder into xUltimate-v2.4.2\jar replacing the existing ones:
adb.exe
AdbWinApi.dll
AdbWinUsbApi.dll

3. I don't know this step is a must for everyone, but it was for me. The assembler/deassembler for .dex file format must be upgraded too. The version in the jar folder in xUltimate-v2.4.2 didn't work fine with the .odex files in my stock ROM.

So:
Download smali.jar and baksmali.jar from here: https://code.google.com/p/smali/. I got version 1.4.2 but any above that should work fine too for the latest available ROMs I guess.
The 2 files probably include the version number in the filename ( i.e.: smali-1.4.2.jar and baksmali-1.4.2.jar). Rename them so they are called: smali.jar and baksmali.jar.
Copy (& replace) those 2 files into xUltimate-v2.4.2\jar folder.

So, that's it. After doing all the above, I managed to deodex my ROM. Well... not quite... there's something else.
After doing the steps above, you should go ahead and follow instructions in the first post of the thread. If everything works, then you are done! Say thanks to OP and enjoy your deodexed ROM.

If however, you still encounter errors while running the xUltimate tool, keep reading...

NOTE: The following is probably only true for certain devices (like mine) so disregard if you don't find any error while following OP steps to deodex.

I got into errors deodexing these files: SamsungIME, SecEmail_Tablet, SecSetting and SecExchange.

Since I couldn't find how to make them work, I decided to leave those files odexed. I'm not sure if that was a good idea or not, but it's fine for me because in my case I actually wanted to deodex some specific apks, not really all of them.

If you decide you want to skip some files (as I did), you'll need to proceed as follows:
Take note of the files that couldn't be deodexed and move those files from the orig_app or orig_frame folder into a new folders, let's call them: "no_deo_app" and "no_deo_frame". Ensure you move the .odex file + .jar file (in case it exists). Make really sure you move files into the right folder: "orig_app" into "no_deo_app" and "orig_frame" into "no_deo_frame".
Run the deodexing again until everything works fine. If you find another file that gives you problem, you do step 1 and 2 again until the tool completes all files successfully.
Now you have 4 folders that are relevant: "done_app", "done_frame", "no_deo_app", "no_deo_frame". Copy all of them into the root of your sdcard.
Now, get into adb shell as superuser access as described in OP following the commands below instead of the ones in the OP. Basically the difference will prevent you from deleting the odex file for the apps that couldn't be deodexed.

I did everything correctly as you said, but it's still on -waiting for phone-
 

Reygal21

Member
Feb 15, 2014
16
0
Sir my device is spreadtrum and i had a bad time looking for adb drivers, so adb cant recognise it, can I just copy my whole system app folder and framework folder through a file explorer? can u give me hints on how to make this work? if there is a way then i'll just make a flashable if ever my apps are already deodexed. thanks :)
 

leddy231

New member
Feb 11, 2014
4
0
its stuck

Hi im really new to this, and i want to deodex my stock 4.3 note 2 (N7105).

when i run xUltimate it simply starts the deamon on port 5037 and then gets stuck doing nothing, help?

EDIT: fixed.

however when i try to deodex any app it tells me it cannot locate boot class path file com.motorola.android.mirrorservice.jar
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 63
    GUIDE+HOW+TO+DEODEX.png


    :cowboy: First Lets know some Basic knowledge about DEODEX/ODEX...:cowboy:


    :confused:What is Odex and Deodex ROM:confused:

    What is an ODEX file?

    In Android file system, applications come in packages with the extension .apk.
    These application packages, or APKs contain certain .odex files whose supposed function is to save space.
    These ‘odex’ files are actually collections of parts of an application that are optimized before booting.
    Doing so speeds up the boot process, as it preloads part of an application.
    On the other hand, it also makes hacking those applications difficult because a part of the coding has already been extracted to another location before execution.

    What is an DEODEX file?

    Deodexing is basically repackaging of these APKs in a certain way, such that they are reassembled into classes.dex files.
    By doing that, all pieces of an application package are put together back in one place, thus eliminating the worry of a modified APK conflicting with some separate odexed parts.

    So, Deodexed ROMs (or APKs) have all their application packages put back together in one place,
    allowing for easy modification such as theming. Since no pieces of code are coming from any external location,
    custom ROMs or APKs are always deodexed to ensure integrity.

    How this works?

    For the majority noobs amongst us, Android OS uses a Java-based virtual machine called the Dalvik Virtual Machine.
    A deodexed or .dex file contains the cache used by this virtual machine (referred to as Dalvik-cache) for a program, and it is stored inside the APK.
    An .odex file, on the other hand, is an optimized version of this same .
    dex file that is stored next to the APK as opposed to inside it.
    Android applies this technique by default to all the system applications.

    When an Android-based system is booting, the davlik cache for the Davlik VM is built using these .odex files, allowing the OS to learn in advance what applications will be loaded, and thus speeds up the booting process.

    By deodexing these APKs, a developer actually puts the .odex files back inside their respective APK packages.
    Since all code is now contained within the APK itself, it becomes possible to modify any application package without conflicting with the operating system’s execution environment.

    Advanteges & Disadvantages

    The advantage of deodexing is in modification possibilities.
    This is most widely used in custom ROMs and themes. A developer building a custom ROM would almost always choose to deodex the ROM package first,
    since that would not only allow him to modify various APKs, but also leave room for post-install theming.

    On the other hand, since the .odex files were supposed to quickly build the dalvik cache, removing them would mean longer initial boot times.
    However, this is true only for the first ever boot after deodexing, since the cache would still get built over time as applications are used.
    Longer boot times may only be seen again if the dalvik cache is wiped for some reason.

    Note:Themes for android come in APKs too, and if you want to modify any of those, you should always choose a dedoexed custom ROM.

    gradient_seperator.jpg.png


    Lets Start...
    GUIDE TO DEODEX STOCK ROM

    download.png



    Java Development KIT
    (Download & Setup Guide)

    ANDROID SDK

    xUltimateV2.3.3

    (only this version is capable with samsung device)
    Official Link to xUltimate : POST #5

    7-Zip
    (32-Bit & 64-Bit)


    HOW+TO.png


    1.Download android-sdk & extract it.

    pc.JPG

    2.Copy sdk folder & paste it into

    Code:
    C:\Program Files\Android

    3.Change name from SDK to Android.sdk.

    sdk.JPG

    (inside folder look like this)​

    4.you need to flash stock firmware first & Root your device.​

    5.Connect your phone to computer.(Make sure you have select USB debugging in Settings>Applications>Development)​

    6.Download & extract xUltimate zip.

    xultimate.JPG

    7.Launch Main.exe(Run as administrator)

    xss.JPG

    8.If everything goes well xUltimate should recognize the phone and make a connection.You now should see a list of options.

    xultimateapp.JPG

    9.Select option (1) pull /system/app. Wait until it complete.​

    10.Select option (2)pull /system/framework. Wait until it complete.​

    11..Then select option (3) Deodex /system/app. Wait until it complete.
    [If encounter any error. Find out which .odex file is it. Then remove .odex file from folder origi_app in xUltimate folder]
    (i found 5 errors so i attached that app's deodex files below you just want to paste in system/app when this process complete)​

    12.Then select option (4)Deodex /system/framework. Wait until it complete.​

    13.DONE : your rom is now deodex. Now Exit from xUltimate​



    Now there are 2 ways to install deodex files in device

    1. from Android.SDK

    From Android.SDK :

    1.Put the phone in USB mass storage.

    2.Go to xUltimate folder and copy "done_frame", and "done_app", and move them to the root of the sdcard.

    3.Now get out from USB storage mode.

    4.Go to
    Code:
    C:\Program Files\Android\android.sdk
    & open command promote there.

    5.Enter following codes.
    (if you are using adb shell in su for the first time, keep phone screen on. After entering "su" code, super user request prompt in phone. Press allow )

    Code:
    adb shell
    su
    stop
    mount -o rw,remount /system/ /system/
    cp /sdcard/done_app/* /system/app/
    rm /system/app/*.odex
    cp /sdcard/done_frame/* /system/framework/
    rm /system/framework/*.odex
    mount -o ro,remount /system/ /system/
    reboot

    6.Now you have deodexed rom. ;)



    2. from SampleDEODEX.zip file attached below.


    From zip file attached

    1.open zip given as archive.
    (use 7.zip but DO NOT EXTRACT.)

    2.go to system/app folder & paste here all your deodexed apk's

    3.same for for system/framework to paste framework files.

    4.done, paste it in your SD-Card & flash through CWM.



    gradient_seperator.jpg.png


    STILL IF YOU FACE ANY ERROR
    Especially Android 4.1 + (JB) users

    Try this method Updating xUltimate tool manually.


    First of all, thx for the OP. This method for Deoexing works fine, I needed to make a few updates - described below - in order to make it work on my GT-P3113 device, running JB 4.2.2.

    OK. So, you have already made sure JDK is properly installed but still can't succeed? Check the following... These are the changes I had to make to deodex my ROM.

    1. Get the latest version of xUltimate. It's version 2.4.2: http://www.xeudoxus.com/android/xUltimate-v2.4.2.zip. If you got version 2.3.3 and accepted to download latest version, you were directed to a thread that is not updated with the latest version. Check post #549 on that thread to find the link I've pasted above.

    2. If you happen to have Android 4.2.2 on your device, ADB needs to be updated. xUltimate has version 1.0.26 which won't properly connect with your device. NOTE: you can tell which version of adb you are using by running this: adb version
    So:
    • Install the latest version of the Android SDK to get ADB version: 1.0.31 (or later, should be fine).
    • Locate and copy over these 3 files from the Adnroid SDK install folder into xUltimate-v2.4.2\jar replacing the existing ones:
      • adb.exe
      • AdbWinApi.dll
      • AdbWinUsbApi.dll

    3. I don't know this step is a must for everyone, but it was for me. The assembler/deassembler for .dex file format must be upgraded too. The version in the jar folder in xUltimate-v2.4.2 didn't work fine with the .odex files in my stock ROM.

    So:
    • Download smali.jar and baksmali.jar from here: https://code.google.com/p/smali/. I got version 1.4.2 but any above that should work fine too for the latest available ROMs I guess.
    • The 2 files probably include the version number in the filename ( i.e.: smali-1.4.2.jar and baksmali-1.4.2.jar). Rename them so they are called: smali.jar and baksmali.jar.
    • Copy (& replace) those 2 files into xUltimate-v2.4.2\jar folder.

    So, that's it. After doing all the above, I managed to deodex my ROM. Well... not quite... there's something else.
    After doing the steps above, you should go ahead and follow instructions in the first post of the thread. If everything works, then you are done! Say thanks to OP and enjoy your deodexed ROM. :good::victory:

    If however, you still encounter errors while running the xUltimate tool, keep reading...

    NOTE: The following is probably only true for certain devices (like mine) so disregard if you don't find any error while following OP steps to deodex.

    I got into errors deodexing these files: SamsungIME, SecEmail_Tablet, SecSetting and SecExchange.

    Since I couldn't find how to make them work, I decided to leave those files odexed. I'm not sure if that was a good idea or not, but it's fine for me because in my case I actually wanted to deodex some specific apks, not really all of them.

    If you decide you want to skip some files (as I did), you'll need to proceed as follows:

    1. Take note of the files that couldn't be deodexed and move those files from the orig_app or orig_frame folder into a new folders, let's call them: "no_deo_app" and "no_deo_frame". Ensure you move the .odex file + .jar file (in case it exists). Make really sure you move files into the right folder: "orig_app" into "no_deo_app" and "orig_frame" into "no_deo_frame".
    2. Run the deodexing again until everything works fine. If you find another file that gives you problem, you do step 1 and 2 again until the tool completes all files successfully.
    3. Now you have 4 folders that are relevant: "done_app", "done_frame", "no_deo_app", "no_deo_frame". Copy all of them into the root of your sdcard.
    4. Now, get into adb shell as superuser access as described in OP following the commands below instead of the ones in the OP. Basically the difference will prevent you from deleting the odex file for the apps that couldn't be deodexed.
      Code:
      adb shell
      su 
      stop
      mount -o rw,remount /system/ /system/
      cp /sdcard/done_app/* /system/app/
      rm /system/app/*.odex
      [COLOR="red"][B]cp /sdcard/no_deo_app/* /system/app/[/B][/COLOR]
      cp /sdcard/done_frame/* /system/framework/
      rm /system/framework/*.odex
      [COLOR="Red"][B]cp /sdcard/no_deo_frame/* /system/framework/[/B][/COLOR]
      mount -o ro,remount /system/ /system/
      reboot

    Well, that was it for me :cool:. This is what I've done to doedex my stock JB 4.2.2 ROM my Galaxy Tab 2 7.0 tablet.

    Regards!
    thanks to @asm-xda


    credits.png


    4real*leb

    Xeudoxus

    and

    asm-xda

    (for finding the way to deodex rom for Jellybean User)



    note.png

    my+rules.png


    GALAXY Ace Plus User's : GO HERE http://forum.xda-developers.com/showthread.php?p=43835177#post43835177
    16
    JAVA Development KIT


    < Guide How to Setup JAVA >

    Download JAVA Development Kit & install it first.

    gradient_seperator.jpg.png

    go to desktop, right click on
    computer > properties >:highfive>Advance system setting> in advance tab environment variables

    First : In user variable for ***
    click new & type

    Code:
    variable name : CLASSPATH
    variable value : C:\Program Files\Java\jdk1.7.0_21\jre\bin (your java installed path varies on your installed location)

    9783323162_7335445933_o.jpg


    Second : In system variables
    click new & type

    Code:
    variable name : PATHTEXT
    variable value : .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC

    9783518376_cc950de151_o.jpg


    gradient_seperator.jpg.png

    also check in path is there above java path present or not if not just add it BUT do not remove old codes from line...!!!

    7
    i have an alcatel OT X'pop. will this work? 4.1.1?

    YES it does work on any device... :)
    first give a try on above 2.3.3 xUltimate version if u face any issue download latest version v2.4 from here ;


    follow same steps like above :highfive:
    4
    Updating the xUltimate tool manually...

    First of all, thx for the OP. This method for Deoexing works fine, I needed to make a few updates - described below - in order to make it work on my GT-P3113 device, running JB 4.2.2.

    OK. So, you have already made sure JDK is properly installed but still can't succeed? Check the following... These are the changes I had to make to deodex my ROM.

    1. Get the latest version of xUltimate. It's version 2.4.2: http://www.xeudoxus.com/android/xUltimate-v2.4.2.zip. If you got version 2.3.3 and accepted to download latest version, you were directed to a thread that is not updated with the latest version. Check post #549 on that thread to find the link I've pasted above.

    2. If you happen to have Android 4.2.2 on your device, ADB needs to be updated. xUltimate has version 1.0.26 which won't properly connect with your device. NOTE: you can tell which version of adb you are using by running this: adb version
    So:
    • Install the latest version of the Android SDK to get ADB version: 1.0.31 (or later, should be fine).
    • Locate and copy over these 3 files from the Adnroid SDK install folder into xUltimate-v2.4.2\jar replacing the existing ones:
      • adb.exe
      • AdbWinApi.dll
      • AdbWinUsbApi.dll

    3. I don't know this step is a must for everyone, but it was for me. The assembler/deassembler for .dex file format must be upgraded too. The version in the jar folder in xUltimate-v2.4.2 didn't work fine with the .odex files in my stock ROM.

    So:
    • Download smali.jar and baksmali.jar from here: https://code.google.com/p/smali/. I got version 1.4.2 but any above that should work fine too for the latest available ROMs I guess.
    • The 2 files probably include the version number in the filename ( i.e.: smali-1.4.2.jar and baksmali-1.4.2.jar). Rename them so they are called: smali.jar and baksmali.jar.
    • Copy (& replace) those 2 files into xUltimate-v2.4.2\jar folder.

    So, that's it. After doing all the above, I managed to deodex my ROM. Well... not quite... there's something else.
    After doing the steps above, you should go ahead and follow instructions in the first post of the thread. If everything works, then you are done! Say thanks to OP and enjoy your deodexed ROM. :good::victory:

    If however, you still encounter errors while running the xUltimate tool, keep reading...

    NOTE: The following is probably only true for certain devices (like mine) so disregard if you don't find any error while following OP steps to deodex.

    I got into errors deodexing these files: SamsungIME, SecEmail_Tablet, SecSetting and SecExchange.

    Since I couldn't find how to make them work, I decided to leave those files odexed. I'm not sure if that was a good idea or not, but it's fine for me because in my case I actually wanted to deodex some specific apks, not really all of them.

    If you decide you want to skip some files (as I did), you'll need to proceed as follows:

    1. Take note of the files that couldn't be deodexed and move those files from the orig_app or orig_frame folder into a new folders, let's call them: "no_deo_app" and "no_deo_frame". Ensure you move the .odex file + .jar file (in case it exists). Make really sure you move files into the right folder: "orig_app" into "no_deo_app" and "orig_frame" into "no_deo_frame".
    2. Run the deodexing again until everything works fine. If you find another file that gives you problem, you do step 1 and 2 again until the tool completes all files successfully.
    3. Now you have 4 folders that are relevant: "done_app", "done_frame", "no_deo_app", "no_deo_frame". Copy all of them into the root of your sdcard.
    4. Now, get into adb shell as superuser access as described in OP following the commands below instead of the ones in the OP. Basically the difference will prevent you from deleting the odex file for the apps that couldn't be deodexed.
      Code:
      adb shell
      su 
      stop
      mount -o rw,remount /system/ /system/
      cp /sdcard/done_app/* /system/app/
      rm /system/app/*.odex
      [COLOR="red"][B]cp /sdcard/no_deo_app/* /system/app/[/B][/COLOR]
      cp /sdcard/done_frame/* /system/framework/
      rm /system/framework/*.odex
      [COLOR="Red"][B]cp /sdcard/no_deo_frame/* /system/framework/[/B][/COLOR]
      mount -o ro,remount /system/ /system/
      reboot

    Well, that was it for me :cool:. This is what I've done to doedex my stock JB 4.2.2 ROM my Galaxy Tab 2 7.0 tablet.

    Regards!
    3
    Man this stuff isnt working and dev isnt helping. I tried 2 others and worked like a charm...

    Lol... i didn help anybody?
    Haha you guies are always coming with simple java errors which means java is not properly installed in your pc.
    Still i make one post about how to install java properly even its not related to this thread.
    I gave xUltimate official website on first page too, if you go there n ask about these errors i bet you'l never get reply, because its simple that is not problem with this application but its about your system which is not able to handle these kind of things..
    I mean when you going to deal android development tools you have to install these primary things first
    1.Java (jdk)
    2.android sdk.

    So learn these primary stages first then go to next.
    & dude don't get me wrong but i did everything what can i do.
    But still if you don't know how to install java then i can't do anything.
    Don't be a spoonfeed.
    Always doublecheck your mistakes...
    (If you want proof its working or not check ace plus link given on first post)
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone