Created
November 19, 2012 20:10
-
-
Save LalitMaganti/4113565 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unzip $1 -d miuibase | |
unzip $2 -d rombase | |
cd miuibase/system/framework | |
apktool d framework-res.apk | |
rm framework-res.apk | |
sed -i 's/showNavigationBar">false/showNavigationBar">true/g' framework-res/res/values/bools.xml | |
apktool b framework-res framework-res.apk | |
rm framework-res.apk | |
apktool d framework.jar | |
rm framework.jar | |
cd ../../../rombase/system/framework | |
apktool d framework.jar | |
cd ../../../ | |
location="framework.jar.out/smali/com/android/internal/telephony" | |
cp rombase/system/framework/$location/QualcommSharedRIL.smali miuibase/system/framework/$location/QualcommSharedRIL.smali | |
cp rombase/system/framework/$location/QualcommSharedRIL$1.smali miuibase/system/framework/$location/QualcommSharedRIL$1.smali | |
cp rombase/system/framework/$location/QualcommSharedRIL$IccHandler.smali miuibase/system/framework/$location/QualcommSharedRIL$IccHandler.smali | |
cp rombase/system/framework/$location/SonyQualcommRIL.smali miuibase/system/framework/$location/SonyQualcommRIL.smali | |
cd miuibase/system/framework | |
apktool b framework.jar.out framework.jar | |
rm framework.jar.out | |
cd ../../../ | |
rm -rf rombase/system/framework rombase/system/app | |
cp miuibase/system/framework miuibase/system/app rombase/system/ | |
cp miuibase/system/etc/permissions/miui-framework.xml rombase/system/etc/permissions/ | |
cp miuibase/system/etc/permissions/yellowpage.db rombase/system/etc/ | |
cp miuibase/system/etc/permissions/telocation.idf rombase/system/etc/ | |
cd miuibase | |
zip miuiandroid_mint_jb-2.11.16.zip -r * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment