[Script][Optimizer][ZipAligner] Amestris Odexer Script

mehrzad1363

Senior Member
Jul 28, 2011
160
123
0
Shiraz
Hi, this is a script for converting the Deodexed firmware to Odex Structure.

This script is created by Me , ported from vLad's work & mixed TearsDontFalls work for useable for galaxy not.

This is for Samsung Galaxy note & maybe s2(if you test for s2 p.m me) Official Firmwares.

Instruction:
be sure your phone is rooted and The Java Runtime packages is installed on your pc

1: Download The Attachment and Extract it to your PC.
2: Put your phone into USB Debug mode or reboot into recovery and mount system

Code:
Settings > Application > Development 
Enable The USB debugging mod
3: Connect The USB Cable into your phone
4: Run the

Code:
odex.cmd
file from downloaded attachment.
5: Your phone will start the Odex Converting and also will Zip_align all applications.

This script will ODEX all fles on your phone:

Code:
/System/app
/System/framework
-------------------------------------

if has error MobileTrackerEngineTwo.apk you most cut this file from /System/app and odex rom after reboot call back this file



Credits:

Mehrzad_63
M_J_Nazari
Vlad
TearsDontFalls
DISCUSSION THREAD
http://forum.xda-developers.com/showthread.php?t=1608715
 
Last edited:
Jul 20, 2012
25
8
0
Hello Mehrzad,

You asked me to reply in this thread. The question was how to re-odex a deodexed S2 Samsung 4.0.4 Rom.

I quote:

Hello Existence

First you can use this Thread for odexing
this odexer for note and i think work this with S2 . but if you get bootloop upload init.rc in root your phone.

for Deodexer i Necessarily get S2 .Because change this method for any app in system and apks in S2 .
Deodexer is the first way in Windows without linux and I do not have access to different phones.
Hi Mehrzad, I'm playing with it as we speak! I changed your odex.sh with bootclasspath for the S2:

Code:
/system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar
But no boot... :crying:

Will upload my init.rc.. Where can I find this?

Will look for it now! :)

Edit: Here's my init.rc. Thanks for looking into this!

https://dl.dropbox.com/u/25779832/init.rc
My init.rc is in the above quote.
The S2 community would be very thankfull if you could make this handy script work for the S2! (I9100)
 

mehrzad1363

Senior Member
Jul 28, 2011
160
123
0
Shiraz
Hello Mehrzad,

You asked me to reply in this thread. The question was how to re-odex a deodexed S2 Samsung 4.0.4 Rom.

I quote:




My init.rc is in the above quote.
The S2 community would be very thankfull if you could make this handy script work for the S2! (I9100)
1- open init.rc with notpad ++ and get line BOOTCLASSPATH.
2- replace this line into odex.sh in odexer package
3- next line in odex.sh edit with all jar BOOTCLASSPATH and save
4- for any apk in app folder if get error moved this file to oder folder and finish re-odex callback this file.

Common this way for all android phone . :good: