mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-08 21:34:25 +00:00
2.1 KiB
2.1 KiB
Magisk
Worked on:
- OnePlus One
- OnePlus 5
Table of contents
TL;DR
- download and flash the os' recovery-flashable zip file
- start the newly installed system
- download and install the latest version of Magisk's app
- open Magisk
- check the value of Ramdisk
If the value of Ramdisk is yes:
- extract the
boot.imgorinit_boot.imgfile from the firmware's zip file - check if the firmware also has a
vbmeta.imgorvbmeta_*.imgfile - press the Install button in the Magisk app
- if the firmware did NOT have a
vbmetaimage file, check the Patch vbmeta in boot image option - hit Next in the Options section
- choose Select and Patch a File in the Method section
- select the boot image
- hit Let's go
- flash the patched boot image
If the value of Ramdisk is no, follow the instructions at magisk in recovery
Now:
-
Flash the patched boot image:
- from the recovery, or
- from your computer with
adbandfastboot
-
reboot to the system
To flash the patched boot image from your computer with adb and fastboot:
-
copy the patched boot image to your computer using the file transfer mode or
adb:adb pull '/sdcard/Download/magisk_patched_<random strings>.img' -
reboot the device to the bootloader (fastboot)
-
flash the modified boot image:
fastboot flash boot 'path/to/modified/boot.img' -
if the firmware HAD a separate
vbmetaimage file, patch thevbmetapartition:fastboot flash vbmeta --disable-verity --disable-verification 'path/to/vbmeta.img'