Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

RE-Odex ROM (Flashable Zip in CWM)

$
0
0
Original thread (zman0900) : http://forum.xda-developers.com/show....php?t=1441293

I just slightly modified.

ROM, Google Apps, MODs .... Now for the daily drive? Just Flash this zip in CWM. (Don't flash in TWRP. Not working with that)

The attached files are just examples. If you're running that ROM, flash that zip matches the name. That's all.

Otherwise, you can modify odex.sh in zip.

1) Red

BOOTCLASSPATH found in init.rc on your device's root. Or extract boot.img then you can find that in the ramdisk.

2) Blue

Looking above add or remove

e.g. CM10.1
Code:

#!/tmp/busybox sh

export PATH=/tmp:$PATH
export BOOTCLASSPATH=/system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar

# Order matters here, up to BOOTCLASSPATH
FRAMEWORK="/system/framework/core.jar
/system/framework/core-junit.jar
/system/framework/bouncycastle.jar
/system/framework/ext.jar
/system/framework/framework.jar
/system/framework/telephony-common.jar
/system/framework/mms-common.jar
/system/framework/android.policy.jar
/system/framework/services.jar
/system/framework/apache-xml.jar
"

# Odex Framework Rest
REST="/system/framework/*.jar"

# Odex apps
APPS="/system/app/*.apk"

# Set up busybox symlinks
for i in $(busybox --list)
do
        ln -s busybox /tmp/$i
done

# Framework
for i in $FRAMEWORK
do
        odex=`echo $i | sed -e 's/.jar/.odex/g'`
        dexopt-wrapper $i $odex
        zip -d $i classes.dex
done

# Framework Rest
for i in $REST
do
        odex=`echo $i | sed -e 's/.jar/.odex/g'`
        dexopt-wrapper $i $odex
        zip -d $i classes.dex
done

# System apps
for i in $APPS
do
        odex=`echo $i | sed -e 's/.apk/.odex/g'`
        dexopt-wrapper $i $odex
        zip -d $i classes.dex
done

# wipe Dalvik-cache
rm -rf /data/dalvik-cache
rm -rf /cache/dalvik-cache



Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>