[Galaxy S III Mini General] deepongi:
Hi all,

I have managed to deodex and zipalign my rooted I8190XXALL2_I8190OXXALL1 ROM in my smartphone, so thought i would share it here.

Follow all the instructions carefully. I will not be held responsible in any manner if your smartphone doesn’t boot up or gets bricked due to not following the instructions.

Please make sure -

1. Your smartphone is already rooted (flash one of the rooted rom's founded here)

2. Download and install Busybox Installer latest version.

3. Make sure you already have Java SE Development Kit and Android SDK installed on your computer.

Install them to the default choice on the C: drive.

4. You should also have a basic knowledge of ADB.

Required Downloads -

1. xUltimate version 2.4.2 – Link. You may have to Google for the correct version to download. Extract it to C:\xUltimate-v2.4.2.

Instructions –

1. Connect your smartphone to your computer. (Make sure you have selected USB debugging in Settings>Applications>Development)

2. Open a command prompt as administrator. Wait for Window to appear.

3. Change Directory to C:\xUltimate-v2.4.2

4. Launch main.exe.

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

6. Select option (1) pull /system/app. Wait until it completes.

7. Select option (2) pull /system/framework. Wait until it completes.

8. 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.

If you encounter the error “ ‘java’ is not recognized as an internal or external command, operable or batch file” see Note below.]

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

10. Now Exit from xUltimate.

11. Disconnect and connect your smartphone. Your PC should open a Window for you to view your files.

12. Go to C:\xUltimate-v2.4.2 folder and copy “done_frame”, and “done_app”, and move them to the root of the internal sdcard. Don’t copy them to your external sdcard

14. Now safely eject your smartphone from the PC.

15. Click on My Computer and find the directory where Android SDK is installed (on my PC it is in C:\Program Files (x86)\Android\android-sdk\. Then go to the ‘platform-tools’ folder in it. Right click on any free space in folder while pressing shift key. Select ‘open command prompt here’.

16. Reconnect the smartphone to your PC in USB debugging mode.

17. Now enter the following commands (if you are using adb shell in su for the first time, keep smartphone screen on).

adb shell (this should recognize your device)

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

18. Your smartphone will reboot and perform an automatic Android update. You have now deodexed/zipaligned the ROM on your smartphone.

NOTE

I only tried this on my I8190 with ROM I8190XXALL2 - I8190XXALL1 BTU Rooted.

At Step 8, (running Option 3), if you encounter the error “ ‘java’ is not recognized as an internal or external command, operable or batch file” then xUltimate can’t find the PATH to your ‘java’ command.

To add the location of Java to your PATH do this:

Right-click on ‘My Computer’ (or Computer for Vista) and choose ‘Properties’.

Navigate to the ‘Advanced’ tab (or for Vista/7/8, click 'Advanced System Settings’ on the left, then find the ‘Advanced’ tab)

Click ‘Environment Variables’

Under System Variables, find 'Path' and click Edit...

DO NOT ERASE OR REPLACE THE CONTENTS OF THIS. YOU ARE SIMPLY GOING TO ADD TO IT.

At the very end of the text field, add a semicolon [ ; ] and add the location of java.exe.

On my Windows 64-bit system this is in “c:\program files\java\jdk1.7.0_06\bin” . For others it might be "c:\program files\java\jre7\bin". I seem to have java.exe in both locations but only the first one worked for the batch file in xUltimate.

Then ‘Okay’ that to save the addition and come out of ‘Properties’

Batch files will now be able to find java.exe without you modifying the batch file.

*************************************************************************************

If for some reason you can't deodex and zipalign apps and framework with xUltimate, ive uploaded them for your use:

done_app

done_frame

They were deoxeded and zipaligned from ROM I8190XXALL2 - I8190XXALL1 BTU Rooted

*************************************************************************************

I followed the above and it works. I used Root Explorer to check my smartphone and all the .odex files have gone, i have more memory available, and smartphone seems faster!

infected_