Update to Magisk 24.3
This commit is contained in:
parent
aedfbba4bf
commit
033eece53d
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -2,15 +2,15 @@
|
|||
# Magisk General Utility Functions
|
||||
############################################
|
||||
|
||||
MAGISK_VER='24.1'
|
||||
MAGISK_VER_CODE=24100
|
||||
MAGISK_VER='24.3'
|
||||
MAGISK_VER_CODE=24300
|
||||
|
||||
###################
|
||||
# Helper Functions
|
||||
###################
|
||||
|
||||
ui_print() {
|
||||
echo "$1"
|
||||
echo "$1"
|
||||
}
|
||||
|
||||
toupper() {
|
||||
|
@ -419,15 +419,15 @@ get_flags() {
|
|||
find_boot_image() {
|
||||
BOOTIMAGE=
|
||||
if $RECOVERYMODE; then
|
||||
BOOTIMAGE=`find_block recovery_ramdisk$SLOT recovery$SLOT sos`
|
||||
BOOTIMAGE=$(find_block "recovery_ramdisk$SLOT" "recovery$SLOT" "sos")
|
||||
elif [ ! -z $SLOT ]; then
|
||||
BOOTIMAGE=`find_block ramdisk$SLOT recovery_ramdisk$SLOT boot$SLOT`
|
||||
BOOTIMAGE=$(find_block "ramdisk$SLOT" "recovery_ramdisk$SLOT" "init_boot$SLOT" "boot$SLOT")
|
||||
else
|
||||
BOOTIMAGE=`find_block ramdisk recovery_ramdisk kern-a android_boot kernel bootimg boot lnx boot_a`
|
||||
BOOTIMAGE=$(find_block ramdisk recovery_ramdisk kern-a android_boot kernel bootimg init_boot boot lnx boot_a)
|
||||
fi
|
||||
if [ -z $BOOTIMAGE ]; then
|
||||
# Lets see what fstabs tells me
|
||||
BOOTIMAGE=`grep -v '#' /etc/*fstab* | grep -E '/boot(img)?[^a-zA-Z]' | grep -oE '/dev/[a-zA-Z0-9_./-]*' | head -n 1`
|
||||
BOOTIMAGE=$(grep -v '#' /etc/*fstab* | grep -E '/boot(img)?[^a-zA-Z]' | grep -oE '/dev/[a-zA-Z0-9_./-]*' | head -n 1)
|
||||
fi
|
||||
}
|
||||
|
|
@ -6,7 +6,7 @@ It has been made to run on Linux x86 or x64 and patch a boot image for an ARM de
|
|||
|
||||
It detects LineageOS **for microG** version via adb, download the ROM, extracts `payload.bin` and dumps `boot.img`, patches it with Magisk, and flashes it.
|
||||
|
||||
:warning: **This has only been tested on a FP3 device, at the time of writing with LineageOS for microG 18.1 (February 20, 2022 build) Magisk v24.1** :warning:
|
||||
:warning: **This has only been tested on a FP3 device, at the time of writing with LineageOS for microG 18.1 (March 17, 2022 build) Magisk v24.3** :warning:
|
||||
|
||||
## Run on an other device
|
||||
|
||||
|
@ -55,7 +55,7 @@ Run `python magisk_boot_flasher.py`.
|
|||
|
||||
That's how we can run Magisk's `boot_patch.sh` on Linux x86 or x64 and patch a boot image for an ARM device
|
||||
|
||||
> Tested with Magisk v24.1 with FP3
|
||||
> Tested with Magisk v24.3 with FP3
|
||||
|
||||
* Get Magisk `.apk`
|
||||
* Extract it
|
||||
|
@ -71,7 +71,7 @@ Keep in the same folder:
|
|||
You can delete all the rest.
|
||||
|
||||
In util_functions.sh:
|
||||
* Change function `ui_print()` to contain only `echo "$1"`
|
||||
* Change function `ui_print()` to only contain `echo "$1"`
|
||||
* Change every `getprop` command, to `adb shell getprop`, to go run it on device rather than locally.
|
||||
|
||||
You can now run:
|
||||
|
|
|
@ -7,7 +7,7 @@ import subprocess
|
|||
import time
|
||||
|
||||
device = 'FP3'
|
||||
magiskdir = 'Magisk-v24.1'
|
||||
magiskdir = 'Magisk-v24.3'
|
||||
|
||||
|
||||
def yes_or_no(question, default=None):
|
||||
|
@ -156,7 +156,7 @@ if __name__ == "__main__":
|
|||
installedversion = checkInstalledVersion()
|
||||
print(' [OK]')
|
||||
|
||||
print("Seems you have haven't flashed yet Magisk on the new firmaware.")
|
||||
print("Seems you have haven't flashed yet Magisk on the new firmware.")
|
||||
if not yes_or_no("Would you like do download the new firmware?"):
|
||||
sys.exit()
|
||||
|
||||
|
|
Reference in New Issue