framework反编译

不是odex

java -jar baksmali-1.2.6.jar -o classout\ classes.dex
java -jar smali.jar classout\ -o classes.dex

是odex

java -jar baksmali-1.4.2.jar -a 17 -x framework\services.odex -d framework (默认out输入目录)

java -jar smali-1.4.2.jar out\ -o classes.dex

zip.exe services_hacked.jar ./classes.dex

echo $BOOTCLASSPATH,除去services.jar

========================

/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/apache-xml.jar:/system/framework/mediatek-common.jar:/system/framework/mediatek-framework.jar:/system/framework/mediatek-op.jar:/system/framework/secondary-framework.jar:/system/framework/CustomProperties.jar:/system/framework/hwframework.jar
======================
./dexopt-wrapper ./services_hacked.jar ./services.odex  /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/apache-xml.jar:/system/framework/mediatek-common.jar:/system/framework/mediatek-framework.jar:/system/framework/mediatek-op.jar:/system/framework/secondary-framework.jar:/system/framework/CustomProperties.jar:/system/framework/hwframework.jar

busybox dd if=/system/framework/services.odex of=/data/local/tmp/services.odex bs=1 count=20 skip=52 seek=52 conv=notrunc

dd if=/data/local/tmp/services.odex of=/system/framework/services.odex

你可能感兴趣的:(我的流水账)