Created
July 25, 2017 13:17
-
-
Save krasCGQ/dbf0e5806b8c9882d033d620a2158084 to your computer and use it in GitHub Desktop.
SuperSU update-binary patch for ZenFone 2 MM by ameel @ XDA-Developers.
This file contains hidden or 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
--- update-binary~ | |
+++ update-binary | |
@@ -896,6 +896,15 @@ | |
fi | |
fi | |
+ASUS_ZENFONE2_X86_60=false | |
+if [ "$API" -eq "$API" ]; then | |
+ if [ "$API" -ge "23" ]; then | |
+ ASUS_ZENFONE2_X86_CHECK=$(cat /system/build.prop | grep "ro.build.product=" | grep -i "mofd_v1" ) | |
+ if [ $? -eq 0 ]; then | |
+ ASUS_ZENFONE2_X86_60=true | |
+ fi | |
+ fi | |
+fi | |
# Do not use SYSTEMLESS after this point, but refer to RWSYSTEM | |
if ($RWSYSTEM); then | |
@@ -1357,6 +1366,10 @@ | |
echo -n "SEANDROIDENFORCE" >> /sutmp/boot.img | |
fi | |
fi | |
+ if ($ASUS_ZENFONE2_X86_60); then | |
+ ui_print "- Adding Zenfone 2 Signature by ameel" | |
+ cat $BIN/zf2_6_sig >> /sutmp/boot.img | |
+ fi | |
dd if=/sutmp/boot.img of=$BOOTIMAGE bs=4096 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment