https://blog.csdn.net/yuleslie/article/details/8718385
#MAGISK ############################################ # # Magisk Flash Script (updater-script) # by topjohnwu # ############################################
############## # Preparation ##############
COMMONDIR=$INSTALLER/common APK=$COMMONDIR/magisk.apk CHROMEDIR=$INSTALLER/chromeos #!/system/bin/sh ########################################################################################### # # Magisk Boot Image Patcher # by topjohnwu # # Usage: boot_patch.sh <bootimage> # # The following flags can be set in environment variables: # KEEPVERITY, KEEPFORCEENCRYPT, RECOVERYMODE # # This script should be placed in a directory with the following files: # # File name Type Description # # boot_patch.sh script A script to patch boot image for Magisk. # (this file) The script will use binaries and files in its same directory # to complete the patching process # util_functions.sh script A script which hosts all functions required for this script # to work properly # magiskinit binary The binary to replace /init; magisk binary embedded # magiskboot binary A tool to manipulate boot images # chromeos folder This folder includes all the utilities and keys to sign # (optional) chromeos boot images. Currently only used for Pixel C # ########################################################################################### 标签:binary,刷入,zip,script,boot,sh,updater,magisk From: https://www.cnblogs.com/hhdom/p/18220498