Advertisement
Shuddertrix

rp5_flash_magisk.sh

Jan 2nd, 2025 (edited)
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.02 KB | None | 0 0
  1. # Script designed for Retroid Pocket 5 on Android 13
  2. # BE AWARE: Rooting your device voids your Retroid warranty!
  3. # Do not use this script without reading these instructions!
  4. # Follow these instructions:
  5.  
  6. # Download rp5_backup_boot.sh https://pastebin.com/YWp8MKvk and this rp5_flash_magisk.sh file.
  7. # On your device, go to Settings, scroll down and go to Handheld Settings
  8. ## On the RP5, you can access the Settings by pulling down the notification shade twice and click the gear icon on the bottom left.
  9. # On the left column, scroll down and go to Advanced
  10. # On the right, scroll down and go to "Run script as Root"
  11. # Select the rp5_backup_boot.sh file
  12. # Your boot partitions are backed up to a new "bootbackup" directory on internal storage
  13.  
  14. # Install Magisk from GitHub: https://github.com/topjohnwu/Magisk/releases/latest
  15. # Open Magisk
  16. # Select "Install" near the top right of the app
  17. # Select "Select and Patch a File"
  18. # Browse to your device ("Retroid Pocket 5") then browse to the "bootbackup" directory
  19. # Select your boot_a backup
  20. # Select "Let's go"
  21. # Wait for the screen to say "All done!"
  22.  
  23. # Go to Settings, scroll down and go to Handheld Settings
  24. # On the left column, scroll down and go to Advanced
  25. # On the right, scroll down and go to "Run script as Root"
  26. # Select this rp5_flash_magisk.sh file
  27. # Your boot partitions are updated to contain Magisk.
  28. # Reboot your device - hold down the power button then touch the Restart icon
  29. # Once booted, unlock your device and go to the Magisk app to confirm the installation is complete.
  30.  
  31. dd if=$(ls /storage/emulated/0/Download/magisk_patched-* 2>/dev/null | head -n 1) of=/dev/block/by-name/boot_a
  32. dd if=$(ls /storage/emulated/0/Download/magisk_patched-* 2>/dev/null | head -n 1) of=/dev/block/by-name/boot_b
  33. mkdir -p /storage/emulated/0/bootbackup
  34. mv $(ls /storage/emulated/0/Download/magisk_patched-* 2>/dev/null | head -n 1) /storage/emulated/0/bootbackup/magisk_patched-flashed.$(date +%F-%T)
  35. rm $(ls /storage/emulated/0/Download/magisk_patched-* 2>/dev/null | head -n 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement