Advertisement
metalx1000

Rooting Android with Magisk

Jan 2nd, 2020
894
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.22 KB | None | 0 0
  1. ####Root Android with Magisk####
  2. #http://filmsbykris.com
  3. #Assuming you have your bootload unlocked and TWRP avaliable
  4. #get Magisk https://github.com/topjohnwu/Magisk/releases
  5. wget "https://github.com/topjohnwu/Magisk/releases/download/v20.2/Magisk-v20.2.zip"
  6.  
  7. ##load TWRP
  8. #backup current boot partition
  9. #on Desktop (assuming your boot partition is /dev/block/mmcblk0p37) [your may be different]
  10. adb pull /dev/block/mmcblk0p37 boot.img
  11.  
  12. #in TWRP go to "Advanced -> ADB Sideload" and swipe to start
  13. #on computer
  14. adb sideload Magisk-v20.2.zip
  15. #reboot
  16. #wait for Magisk to load - you'll see the app appear in your app draw - might take a minute
  17.  
  18. ########remove Magisk#########
  19. #Magisk has an uninstall package,
  20. #but if you made an image of your boot partition you can just flash it back
  21.  
  22. #in fastboot
  23. fastboot flash boot boot.img
  24. #OR in TWRP
  25. adb push boot.img /dev/block/mmcblk0p37 boot.img
  26. ##(assuming your boot partition is /dev/block/mmcblk0p37) [your may be different]
  27.  
  28. #if you backup your boot partition while Magisk is install your can make it a temp root
  29. adb pull /dev/block/mmcblk0p37 boot-magisk.img
  30. #NOW you can make it a temp root by booting  boot-magisk.img
  31. #in bootloader [Fastboot]
  32. fastboot boot boot-magisk.img
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement