[Toturial][Windows] How Editing The ODEX framework files? [Simplified]
Hi, This is a simple tutorial for someone that wants to working on ODEX structure.
All needed files are attached, you don't need to download anything files.
Extract the
Amestris_ODEX.zip file, your working folder will be this one.
I'm creating the simple example here.
for example i want to edit the
services.jar file on ODEX structure.
We need to work on DEODEX version at first.
You can Deodex your files from here:
Your Phone needs to be rooted and Busybox get installed.
the sample file is
services.jar,also you can do it for any odex file.
1- Do all your editing and working on your deodex version.
2- Create this folders on your sd-card partition.
Code:
amestris_mod
amestris_original
3- Copy your modded file [your deodexed and edited services.jar] into
amestris_mod folder.
4- Copy original jar file into
amestris_original folder. [original odex services.jar]
5-Copy
dexopt-wrapper into
/system/bin folder and give full permission to that. [the simple way is root explorer ]
through the adb command:
Run the
Amestris.bat file.
Code:
adb remount
adb push dexopt-wrapper /system/bin/dexopt-wrapper
adb shell chown 777 /system/bin/dexopt-wrapper
adb shell chmod 777 /system/bin/dexopt-wrapper
6-run this adb commands.
Code:
adb shell
cp /sdcard/amestris_mod/services.jar /system/framework/services.jar
dexopt-wrapper /system/framework/services.jar /system/framework/new_services.odex /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
cp -f /sdcard/amestris_original/services.jar /system/framework
chmod 777 /system/framework/services.odex
chmod 777 /system/framework/services.jar
chmod 777 /system/framework/new_services.odex
busybox dd if=/system/framework/services.odex of=/system/framework/new_services.odex bs=1 count=20 skip=52 seek=52 conv=notrunc
cp /system/framework/new_services.odex /system/framework/services.odex
chmod 644 /system/framework/services.odex
chown root.root /system/framework/services.odex
rm /system/framework/new_services.odex
reboot
Credits:
Quote:
M_J_Nazari
sicopat
jubeh
Decad3nce
software_samurai
|