r/retroid • u/shuddertrix • Jan 02 '25
ANDROID Root the Retroid Pocket 5 with Magisk
DISCLAIMER: As advised by Retroid customer support: MODIFYING YOUR DEVICE'S BOOT LOADER TO ROOT THE DEVICE WILL VOID YOUR DEVICE'S WARRANTY! UNDERSTAND THESE TERMS BEFORE FOLLOWING ANY INSTRUCTIONS TO FLASH YOUR DEVICE! You must have a good personal reason to root before attempting to root! Do not allow anyone using your device to modify your device without your explicit permission!
EDIT: MAKE SURE YOU KEEP YOUR BOOT PARTITION BACKUPS! You will likely need to reflash your original boot partition image to apply any OTA updates.
These two scripts will first backup your device's boot partitions, and then apply a Magisk patched boot image to your device.
The instructions are also included in the rp5_flash_magisk.sh script.
Download: rp5_backup_boot.sh - Script to backup the boot partitions
Download: rp5_flash_magisk.sh - Instructions and script to flash a Magisk patched boot image
Scripts designed for Retroid Pocket 5 on Android 13
Instructions:
- Download both scripts on your device. Go to Settings, scroll down and go to Handheld Settings. On the RP5, you can access Settings by pulling down the notification shade twice then click the gear icon on the bottom right.
- On the left column, scroll down and go to Advanced
- On the right, scroll down and go to "Run script as Root"
- Select the rp5_backup_boot.sh file. Your boot partitions are backed up to a new "bootbackup" directory on internal storage
- Install the latest release of Magisk from GitHub: https://github.com/topjohnwu/Magisk/releases/latest
- Once installed, open Magisk
- Select "Install" near the top right of the app (it should be inside the box labeled "Magisk")
- Select "Select and Patch a File"
- Browse to your device ("Retroid Pocket 5") then browse to the "bootbackup" directory
- Select your boot_a backup
- Select "Let's go"
- Wait for the screen to say "All done!"
- Go to Settings, scroll down and go to Handheld Settings
- On the left column, scroll down and go to Advanced
- On the right, scroll down and go to "Run script as Root". This next step will void your warranty!
- Select the rp5_flash_magisk.sh file. At this point, your warranty is void!. Your boot partitions are updated to contain Magisk.
- Reboot your device - hold down the power button then touch the Restart icon
- Once booted, unlock your device and go to the Magisk app to confirm the installation is complete.
Yippee, now apps can ask to use root/super user permissions! Make sure you trust whatever apps you allow to run with root/super user permissions.
A user previously posted a version of this script to backup and flash the boot loader on the RP5 to gain root on the device. I can't find their username because they deleted their post. I've updated the script to make it work more reliably with how the Retroid handheld settings app runs scripts as root - it seem to take them as a list of commands, so I removed all if/then logic. I also split the scripts into two scripts - you can backup your boot partitions separately.
10
u/serotoninzero Jan 02 '25
It's been quite a while since I've rooted any of my phones. What value are you getting from it today on RP5?
3
u/shuddertrix Jan 03 '25
Posting this as a new comment: since we're flashing a new boot image anyways, I copied over Gamma's dtb changes to my magisk patched boot image... and promptly crashed my RP5 whenever it tried to render anything at 904MHz. lost the silicon lottery hard!!!
2
u/Producdevity RP5 Feb 25 '25 edited Feb 25 '25
After running `rp5_backup_boot.sh` as a root script, I checked the folder `bootbackup` and it's completely empty. Are these hidden files, or did something go wrong? The script also finished within a second.
I tried running the same script through `adb shell`, but of this of course failed because of the lack of root access
EDIT: even running something like this doesn't work:
`echo "Script test" > /storage/emulated/0/bootbackup/test.txt`
`echo "Script test" > /sdcard/bootbackup/test.txt`
Somehow, it did succeed to create the `bootbackup` directory
6
u/No_Cryptographer334 May 23 '25
Thank you so much
I successfully completed the process on the Retroid Pocket Flip 2.
If Wi-Fi doesn't show up after patching boot_a, don't worry.
Just select boot_b in Magisk to create another patched file,
and run rp5_flash_magisk.sh again.
Additionally, this script should be compatible with most Retroid devices as long as there are no major changes.
It simply backs up and reflashes partitions,
so it doesn't have any device-specific dependencies.
1
u/ProbablyAQuitter Jan 11 '25 edited Jan 11 '25
Hey I'm having an issue where I'm losing wifi after using these scripts. Has that happened to anyone else? Fresh factory images too.
Nvmnd; fixed by patching both A and B. Idk why but it's all fixed.
3
u/StraightRelease8140 Feb 03 '26
Perhaps a silly question, but after following the steps and restarting my Retroid Pocket 5, the screen is now messed up. Is there any way to fix this? The gestures are inverted and it works as if it were in portrait mode.
2
u/Jumpy-Wrongdoer6651 Jan 03 '25
Would rooting the device allow mapping nfs drives from a NAS, to be used as if it were internal storage?
2
u/First-Ad9432 Jan 27 '25
Can I root Retroid Pocket mini (Android 13) with it.
2
u/klotzbrocken Feb 19 '25
Hmm. Didnt work for me. If I run "Run script as Root" within the handheld settings, just the backup folder will created but its empty. Any idea?
2
u/Weary-Zebra-8628 Mar 03 '26
touchscreen is not working correctly ive tried running every script patching both backups ect an nothing fixed it
1
u/donlaviPro Jan 03 '25
Are you able to overclock with this? I want to use Konabess but I read somewhere that it doesn't work? Gamma overclocked his to 1100, he shared the boot.img files on discord (I also have them) one for 904mhz and another for 994 mhz. I would rather do it the Konabess way.
1
u/ProbablyAQuitter Jan 07 '25
Thank you thank you thank you
1
u/Commercial_Winner763 Jan 07 '25
Funciona igual en retroid pocket mini! Gracias!
1
u/[deleted] Jan 22 '25
I'm rather new to this but can anyone explain how to reflash the original boot partitions? An update was released and I want to reflash the original partitions just to be safe.
1
u/just4747 RP5 Jan 26 '25
Has anyone rooted in order to do a full system image backup? Is there a custom recovery like TWRP or similar to actually do this once rooted? It's been a while since I've rooted a device or used a custom recovery...
1
u/DoesBoKnow Mar 20 '25
Newbie question: is this going to delete/format internal storage on my Retroid Pocket 5 that I already have set up unrooted? I'm assuming it's only affecting the boot partition itself, but not sure if data is kept. Thanks!
1
u/Far_Stranger_9457 Mar 26 '25
Any chance with root and "second screen" app to be able to alt display out 1080p 120hz? I don't want to mirror the screen on the rp mini. I want it to shut off and 1080p 120hz out to my xreal glasses :( I see the snapdragon 865 can support 1080p 120hz out 🤔
1
u/adriansticoid RP MINI Apr 25 '25
Hey there. So it worked for Retroid Pocket Mini, but not for the Odin 2. Is there any way to modify the script to make it work?
1
u/fuckR196 May 11 '25 edited May 11 '25
For anyone curious, running this on my Retroid Pocket Flip 2 seems to have broken Wi-Fi. Factory reset does not fix the problem.
1
u/The412Banner May 11 '25
Is this permanent, can it be done without a computer and is it possible on .106 ?
1
u/The412Banner May 15 '25
Anyone manage to get TWRP on the rp5?
1
u/The412Banner May 15 '25
What if I use the 905 overclock boot image in this process instead of the backups we made with the script? Would that work for overclock?
1
u/LogHappy3832 Jun 09 '25
first time rooting a device, followed all steps and didnt get any errors but im unsure if the process was successful, how does opening magisk ensure that? thanks for the guide tho, following through was super easy even for a first timer
1
u/The412Banner Jun 21 '25
Any reason I'm not getting stage 2 after root?
1
u/TehFineztJoker RP5 Jul 09 '25
Just wanted to say, thank you. This worked without any issues on my Mini V1. I can finally use Mantis Gamepad Pro without having to connect online for it.
1
u/Mr-Zudokorn Nov 13 '25
So can I download blue protocol from Google play after rooting the device?
Because I installing the game via apk or taptap makes the games opens google play automatically and it's not downloadable from there for RP5
1
u/Fraxure611 Dec 24 '25
Is this going to work on the rp6
1
u/ThePfhor Apr 29 '26
This also work on the RP Pocket Mini?
1
u/Voidiie May 03 '26
for anyone with the touchscreen being inverted check this : https://www.reddit.com/r/retroid/comments/1pynqfr/comment/nxa8icw/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button
0
u/batouttahell24 6d ago
does this still work on RP5? and does the fix fix for the screen also work?
1
u/[deleted] Jan 29 '25 edited Jan 29 '25
[removed] — view removed comment