Original thread (zman0900) : http://xdaforums.com/showthread.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
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=[COLOR="Red"]/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[/COLOR]
# Order matters here, up to BOOTCLASSPATH
FRAMEWORK="[COLOR="Blue"]/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[/COLOR]"
# 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
Attachments
Last edited: