From bdcebf211a75857aff5d7b2293505a4af0f75083 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Mon, 18 Apr 2022 00:14:00 +0200 Subject: [PATCH] Added magisk notes to the knowledge base --- knowledge base/magisk.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 knowledge base/magisk.md diff --git a/knowledge base/magisk.md b/knowledge base/magisk.md new file mode 100644 index 0000000..dd4057e --- /dev/null +++ b/knowledge base/magisk.md @@ -0,0 +1,32 @@ +# Magisk + +## TL;DR + +> This procedure works for a **OnePlus 5** phone. + +1. download the os' recovery-flashable zip file +1. extract the `boot.img` file from the zip file +1. open the Magisk app +1. press the _Install_ button on the _Magisk_ card +1. choose _Select and Patch a File_ under _Method_ +1. select the boot image; the Magisk app will patch the image to `[Internal Storage]/Download/magisk_patched_.img` +1. copy the patched image to your computer using the file transfer mode or `adb`: + + ```shell + adb pull /sdcard/Download/magisk_patched_.img + ``` + +1. reboot the device to the bootloader (fastboot) +1. flash the modified boot image: + + ```shell + sudo fastboot flash boot path/to/modified/boot.img + ``` + +1. reboot to the system + +## Further readings + +- [How to Install Magisk on your Android Phone] + +[how to install magisk on your android phone]: https://www.xda-developers.com/how-to-install-magisk/