Root

From Retroid Handhelds
Jump to navigationJump to search

Root[edit]

Rooting the RP2 will give you root access to the device. This means you can modify system files and do pretty much anything with it.

Prerequisites[edit]

  • Install the SPFlash tool. You can find instructions for this in the Firmware section of the site.
  • Download the firmware files for the OS that you have installed on your device. Be sure to install the OS that you would like to use before performing this root.
  • Install the Magisk app from playstore or wherever else you'd like to get it from.

Create a patched boot image with magisk.[edit]

  1. find the `boot.img` file in the downloaded OS files. Copy this over to your device on your external storage card.
  2. Launch the Magisk application.
  3. Click the instal button near the top of the screen.
  4. Under the options box you see now, click the blue `next` link. This will expand the Method box.
  5. Click the `Select and patch a file` option. This will open your file manager. Find your `boot.img` file and select it.
  6. Click the `let's go →` text. This will create a new patched boot.img file in your downloads directory.
  7. Use mixplorer to move the patched boot.img file back to your external card.
  8. Copy the patched file from your external storage to your pc.

Flash the patched image[edit]

  1. Launch the SPFlash tool.
  2. Click the download tab at the top.
  3. Make sure the drop down above the list has `Download` selected.
  4. Make sure the download agent is properly filled out. It should be included in the SPFlash tool folder and is named `MTK_AllInOne_DA.bin`
  5. Make sure the scatter file is filled out properly. It is included in the OS files you downloaded from the Firmware instructions.
  6. After loading the scatter file, all the boxes in the list at the bottom will be checked. At the top of the list is a toggle to check/uncheck all the boxes. Click it to make sure all the boxes are unchecked.
  7. Click the checkbox to the left of the row with `boot` for the name.
  8. Click the location column of the `boot` row and find your patched image file.
  9. Double check to make sure everything is right. Use the image below to verify you have the correct settings.
  10. Once you are sure everything is right, click the download button at the top of the screen.
  11. Connect your RP2 to the PC using the USB-C cable (be sure to use a USB 2.0 port).
  12. You should see a progress bar at the bottom and eventually a popup with a big green checkbox on it once the process is complete

Root-instructions.png

Verify[edit]

  1. Unplug the RP2 from the PC and boot it up.
  2. Once it is booted, open the magisk app. You should now have a button bar at the bottom.
  3. Clicking the far right one (the puzzle piece icon) will allow you to install various plugins that utilize your new rooted device.

Useful Plugins and Tips.[edit]

Plugin or App Description / Instructions
ExSDCard Access Enable An extension that allows apps to write to the external storage directly via a new path available on the root. The new path is `/mnt/media_rw`.
MixPlorer Settings → More Settings. Click `Allow Root` option for access to all files on the RP2 in Mixplorer.
Termius Enter the command `su` to get root access for termius.