Created
          September 21, 2023 13:29 
        
      - 
      
 - 
        
Save manero6/c896294bbf692aa4a1ae2284270ac4ba to your computer and use it in GitHub Desktop.  
Revisions
- 
        
manero6 created this gist
Sep 21, 2023 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,70 @@ # Install Magisk via Sideload π» => the device running `adb` (usually a PC) π± => the device where Magisk is going to be installed (usually a Phone or Tablet) - [π± Install Magisk App](#-install-magisk-app) - [π» Download Magisk](#-download-magisk) - [π» Rename .apk to .zip](#-rename-apk-to-zip) - [π» Reboot device in Sideload mode](#-reboot-device-in-sideload-mode) - [π» Sideload Magisk](#-sideload-magisk) - [π± Complete the Magisk installation (if needed)](#-complete-the-magisk-installation-if-needed) ## π± Install Magisk App The app can be found on F-Droid: - https://f-droid.org/en/packages/com.topjohnwu.magisk ### Notes - π± if an older version is installed, update it directly from the Magisk app ## π» Download Magisk Download the latest Magisk `.apk` from the official GitHub repo: - https://github.com/topjohnwu/Magisk ## π» Rename .apk to .zip ```bash mv Magisk.VERSION-NR.apk Magisk.VERSION-NR.apk.zip ``` ## π» Reboot device in Sideload mode ```bash sudo adb reboot sideload ``` ### Notes - π± USB debugging mode must be active (under Settings > Developer Options) - π± the device running `adb` (π») must be approved on the receiving device (π±), else no actions will be taken - π» in case something goes wrong, kill the running server and start over ```bash sudo adb kill-server ``` ## π» Sideload Magisk ```bash sudo adb sideload /path/to/Magisk.VERSION-NR.apk.zip ``` ### Notes - π± signature verification might fail, I bypass it to install Magisk anyway - π» `adb` might show something like `Total xfer: 0.90x`, this is fine - π± reboot to system once done ## π± Complete Magisk installation (if needed) Magisk might need to be re-installed "internally". This can be done directly from the app. ### Notes - π± a popup will appear - π± re-install Magisk using the recommended option - π± once done a reboot option will be shown, reboot