yashsingh1/xdaforums huggingface dataset:
[General Questions and Answers] Deleted member 7662912:
So Retroid recently came out with the RP3+.

-It runs Android 11

-Has an option in developer settings for OEM unlocking

-Easy access to adb and fastboot

AND you can run shell scripts as ROOT from within the settings.

For now I'm simply trying to make a backup boot.img

The typical command would be:

dd if=/dev/block/bootdevice/by-name/boot of=/sdcard/boot.img

But the file does not exist.

Ive been able to run some basic scripts successfully from the run shell script as root option leading to a complete file list of everything on the system.

Here is a list of all the files in ./dev/block/

./dev/block./dev/block/loop27./dev/block/dm-13./dev/block/dm-12./dev/blo - Pastebin.com

Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

pastebin.com

Any help with rooting this device or simply backing up the system would be greatly appreciated.
[General Questions and Answers] V0latyle:
It's always difficult when the firmware isn't readily available for download. But it sounds like you're on the right track - dump the boot image, patch in Magisk, unlock the bootloader, and flash the patched image for root.

Try this guide, it sounds like you just need to establish where the boot partition is mounted
[General Questions and Answers] V0latyle:
So you just need to figure out which partition is /boot. There's a way to do this but I forget how.

I did find this on Stack Exchange:

There's also this guide. At least you're able to run shell as root, that's a huge advantage.
[General Questions and Answers] Deleted member 7662912:
Right?! I seen that as an option and just had to see what I could do with it.

So to see the partitions I put in

ls -al /dev/block/platform/soc/soc:ap-apb/71400000.sdio/by-name/ > /sdcard/info.txt

Saved as info.sh and ran from the run root script option.

(The output file will be stored in Internal Storage for whatever reason.)

To backup the boot images I put in

dd if=/dev/block/mmcblk0p42 of=/sdcard/boot_a.img
dd if=/dev/block/mmcblk0p43 of=/sdcard/boot_b.img

and again saved as getboot.sh and ran from the setting.

So according to this guide:

Patch Stock Boot Image via Magisk and Flash it using Fastboot

If you want to root your Android device then you can check out how to Patch Stock Boot Image via Magisk and Flash it using Fastboot method.

www.getdroidtips.com

It seems to have an A/B partition.

Ive backed up my boot.img files.

Patched them with Magisk.

They're ready to flash.

sending 'boot_a' (65536 KB)...
OKAY [ 1.478s]
writing 'boot_a'...
FAILED (remote: Flashing Lock Flag is locked. Please unlock it first!)
finished. total time: 1.498s

As expected.

To unlock Bootloader, I am hesitant to try anything yet.
[General Questions and Answers] Deleted member 7662912:
With help from some kind and knowledgeable members of the official Discord I got the bootloader unlocked.

However they advised me

NOT

to flash the magisk patched boot.img until it is

"resigned with avbtool to match what the keys are in vbmeta."

They said if I try and flash as is I will likely brick or get stuck in bootloop.

So I'll need help with that part. No idea how to do that.

Here's what I did to get the bootloader unlocked:

Back up Internal Storage (User data will be erased).

Install the drivers from here https://androiddatahost.com/dsa6h

Boot the RP3+ into the Bootloader by powering off the device, Pressing and holding the PWR and VOL + buttons until it boots to recovery and then select reboot to bootloader from the recovery options.

Connect the device to the PC and go to https://turtleletortue.github.io/subut-rehost/ on Google Chrome.

Click Connect.

Click "fastboot gadget" and connect.

Click Unlock.

On the device there will be a warning "Warning: Unlock device may erase user data. Press volume down button to confirm that. Press volume up button to cancel."

Press volume down.

Wait for it to complete.

Then reboot by pressing and holding PWR and Vol down.

There is a warning everytime I reboot but it goes away shortly and boots normally.
[General Questions and Answers] gremen:
I have the regular RP3. Every time I try going into bootloader, it directs me straight to the RP3 boot and it stays that way till I press Boot again. Nothing happens.

A video on how to do it would be better.
[General Questions and Answers] Deleted member 7662912:
If anyone knowledgeable could help me get avbtool installed properly on either Linux or Windows , it should be simple to get the keys from the vbmeta images and resign my patched boot images. I just need help with that part and I'll be rooted.
[General Questions and Answers] SoPlissken77:
Do you think it is possible, by unlocking the boot, to install a custom firmware on the retroid pocket 3+ ? (JelOS, AmberElec, Batocera, etc.) ?
[General Questions and Answers] Deleted member 7662912:
I'm Sorry. I don't own an RP3 so the process may be different.

Yes, Definitely.

----

Slowly trying to get avbtool working on my own. (Im honestly not very good at this stuff).

For now I'll share the code for extracting the vbmeta images:

dd if=/dev/block/mmcblk0p56 of=/sdcard/vbmeta_a.img
dd if=/dev/block/mmcblk0p57 of=/sdcard/vbmeta_b.img

Saved as getvbmeta.sh and ran from the run root script option.

(The output files will be stored in Internal Storage)
[General Questions and Answers] SquirrelHurtz:
So I've been collaborating with OP on Discord and made a set of scripts to do the dirty work for me... I had to fix avbtool and make a script to extract the vbmeta keys automatically... as well as add a neat little wrapper!

They wanted me to make a full writeup but tbh I'm too lazy so I made a 1-click solution instead!... Now I'd say THIS is a worthy Valentines day gift!

GitHub - skompc/retroid-pocket-3-plus-autoroot: A set of python scripts that will autosign modified vbmeta and boot images for RP3+

A set of python scripts that will autosign modified vbmeta and boot images for RP3+ - skompc/retroid-pocket-3-plus-autoroot

github.com
[General Questions and Answers] SoPlissken77:
I really like the RP3+ but I find Android unsuitable for retrogaming. On the Retroid discord or the Reddit, there are many requests for a linux port or a dualboot
[General Questions and Answers] Deleted member 7662912:
UPDATE: There is now a successful public root available for the RP3+

GitHub - skompc/retroid-pocket-3-plus-autoroot: A set of python scripts that will autosign modified vbmeta and boot images for RP3+

A set of python scripts that will autosign modified vbmeta and boot images for RP3+ - skompc/retroid-pocket-3-plus-autoroot

github.com

Make backups and use at your own risk.
[General Questions and Answers] Irishdude5280:
Can you help me with the backups. Been trying to figure it out but having a tough time because I'm not great at linux
[General Questions and Answers] Deleted member 7662912:
Try this:

https://xdaforums.com/t/guide-how-to-do-a-full-low-level-backup-of-your-android-device.1758326/

Rather than a terminal emulator you just save the command as backup.sh and run from within the handheld's run script as root setting.
[General Questions and Answers] Irishdude5280:
I will give this a shot! Thank you I found all of the info you put here very helpful!
[General Questions and Answers] Irishdude5280:
So I took a full system backup to my SD card using

dd if=/dev/block/mmcblk0 of=/mnt/media_rw/D873-812D/mmcblk0.img

saved as backupSD.sh

I am assuming that the mnt point "/mnt/media_rw/D873-812D/" is just for my SD but not sure on that, I found it by running OP's info.sh with the card mounted.

EDIT: thought about it and I actually might have found it by running mount command in termux. Been a long day sorry.

It made a .img of 125 GB, which seems to be a block level backup of the entire internal storage like I wanted. I extracted it with 7zip and see individual .img files for each of the partitions shown in the info.txt

Trying to extract those I get

Cannot open file as archive

Tried mounting them in WSL with

sudo mount -t drvfs V: /mnt/v To mount my windows drive where image is

sudo mount -o ro,loop /mnt/v/mmcblk0.img /mnt/android

mount: /mnt/android: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.

dmesg(1) may have more information after failed mount system call.

It honestly looks like it worked perfectly im just trying to figure out forsure i have a good backup before going forward. that is why I was trying to mount it somehow.

also ran OP's commands for backing up boot a and b and vbmeta a and b

So I am ready to try and root it just want some confidence in my backups first. Any thoughts would be appreciated.
[General Questions and Answers] Deleted member 7662912:
Interesting. Thank you. I was wondering why it was saving files to internal storage and not the SD card. That seems to be the proper way to do it. As for why you can't extract the individual partitions, maybe it has something to do with 7zip, have you tried different software to explore the .img files? Maybe extract the main .img and then the partitions with something like Power ISO or WinRAR.
[General Questions and Answers] Irishdude5280:
I tried your suggestion and PowerISO apparently likes adware so my AV blocked it. I threw the exe in Virus Total and it too says its full of Adware. WinRar by memory is full of adds for itself, tried it anyways with no luck.

I then found this https://www.sleuthkit.org/sleuthkit/ which is basically forensic tools for examining DD images from android devices. I was able to determine with those tools that the data is in fact there, but encrypted.

In theory a restore should still work if restored to the same device so I feel a little bit better, but still not sure i have a rock solid backup. Not even sure how I could verify at this point considering its encrypted

So did you successfully root your device? I want to try it but I am nervous without knowing if i can restore. One thing I wanted to clear up on too is with what I have read about devices with the a/b partitions, my understanding is I only need to patch 1 set of boot and vbmeta images right? Then I just flash the patched images to both the a and b partitions?
[General Questions and Answers] :
There have been successful roots. Yes.

You are absolutely correct about the A/B partitions.
[General Questions and Answers] grizzlage:
Just made an account specifically to say thank you so much for this walkthrough post. And thank you to everyone involved that helped make this happen.

I just followed it and was able to root my device without any issues. :)

I have 1 quick question. Its said may times not to update Magisk through the app. After doing all the steps, I have a freshly rooted / restored device with a Magisk app installed by default. However when I click it, I get a popup that says "Upgrade to full magisk to finish the setup. Download and install?" this is safe to do right as this is for the app itself and not the actual patch on the device?

The update/install warning specifically applies to Step 3 and making sure to always use "Select and Patch a File" and use my original boot_a.img. That I should never try to directly install to the device from within the Magisk app (due to the vbmeta signing step being required)

So lets say in a few weeks a new version of Magisk comes out, I can download the apk from github, install the app and follow steps 3 again to repatch my original backed up boot_a.img. Then continue with Steps 5 and 6 to resign and reflash (and step 4 can be skipped from now on since the bootloader has been unlocked.)

Do I understand that all correctly?

I figured it out. Thanks again!
[General Questions and Answers] Irishdude5280:
I am rooted! Thank you for the tips and very good guide.

I can now do ADB Backups which is what I wanted from the beginning!

What is next, do you know any custom OS that will run on this?
[General Questions and Answers] Irishdude5280:
Mind sharing what you figured out?
[General Questions and Answers] sean222:
Thanks! Followed the guide perfectly and I'm successfully rooted!

I skipped the backup though...got impatience and I think I would've run out of SD card space. Still OK to run the back now that I'm rooted? Or is it now pointless.
[General Questions and Answers] RobAllen:
I dusted off the old "login" button to say: thank you so much! This step by step works, not only for the retroid 3+, but also works to root your Retroid Pocket 3! to anyone googling around for a non 3+ tutorial - just follow this one! (OP, might recommend updating your post/language to reflect just how damned useful this tutorial is!)
[General Questions and Answers] sean222:
This method worked successfully on the Retroid Pocket Flip :)
[General Questions and Answers] CreatedActions:
I'll try this in the future.
[General Questions and Answers] IoannesCarolus:
Youre so gentle. Thanks for the root in my Pocket Flip.

I have the universal backup that you mentioned in your post...two questions...

1. How I can Revert the root and lock my bootloader? (If someday exists an update with interesting things).

2. How I can restore that backup.img? (Theorycally, that returns my device before the root process).

Thanks in advance.

Edit. A third question....

3. I can extract from backup.img the different partitions of the device. I tried to flash userdata.img. No way. These individual partitions can be flashed in some way?
[General Questions and Answers] Leon-_98:
It is possible to do a backup with a 64gb sd?
[General Questions and Answers] Leon-_98:
So, i followed everything as described and my device bricked, now it is stuck on bootloop and won't enter recovery mode, also it doesn't get detected by adb, just by windows for a about 5 seconds if i hold volume down+power.

I have the backups, is something i can do to save my little device?
[General Questions and Answers] emopandov:
Hi all,

What are the steps to restore the full backup from backup.img?

Thank you.
[General Questions and Answers] Rayd Raider:
I just bricked my RP3+ updating Magisk trough the manager (my bad), bootloops and won't let me enter in recovery mode.

Any solutions? still have both images but unable to enter into recovery mode trough power&volume+
[General Questions and Answers] nunits:
I have an Rp3 and I have been looking for a way to slightly overclock the cpu to test if there are improvements in the emulation. Has anyone done this before?

It's the only thing that moves me to root the console.
[Android Builders Collective] parker_04:
I want to edit hosts file in my non-rooted Android device.

Since flashing a Custom ROM is basically installing a new OS, I was wondering,

Is a hosts file already present in a Custom ROM or is it generated later and at what point?

If it is preincluded in the ROM, is it possible to edit that hosts file and then flash the ROM, basically editing the hosts file without rooting?
[Android Builders Collective] V0latyle:
Some custom ROMs do include custom hosts files, and you could potentially edit it before flashing the ROM. I'm not sure why you'd want to use a custom ROM without root, though - with root access, you can use a hosts manager like AdAway to update your hosts file on the fly.
[Android Builders Collective] parker_04:
(I am a newbie in rooting and flashing Custom ROM so please correct me)

Well my main objective is to edit the hosts file.

I understand it generally require root privileges but I want to use rooting as a last resort.

I am already going to flash Xiaomi Eu ROM in my Redmi Note 11. And if it is possible to edit the hosts via the ROM, wouldn't it be a better alternative than rooting? As with rooting, there also comes some consequences like tripping SafetyNet which I would gladly like to avoid.
[Android Builders Collective] V0latyle:
SafetyNet is no longer relevant; it has been replaced by Play Integrity. See this thread. Even so, it is possible to pass Play Integrity BASIC and DEVICE attestation using the Universal SafetyNet Fix Magisk module.

I'm rooted with Magisk 25.2 on my Pixel 5. I use AdAway to manage my hosts file, and USNF 2.3.1 MOD 2, and I have zero issues with Play Integrity.
[Android Builders Collective] parker_04:
O

I see.

But SafetyNet/Play Integrity is only one of the consequences of rooting. In Xiaomi devices, the warranty remains intact even after unlocking bootloader unless the device is rooted.

I am happy with flashing Custom ROM with edited hosts file without rooting.

I can always root my device later if this doesn't work.

Unless there is some other drawback which I am not aware of. If there is, please inform me so I don't end up in a mess.
[Android Builders Collective] V0latyle:
How would they know whether you rooted the device?

I can see how flashing custom firmware could void the warranty, like Samsung...So I suppose I've answered my own question as rooting would ostensibly involve either patching the boot image or installing SU to system. But, if you're editing a hosts file, you're also changing the system image, so I would assume that this would do the same thing.

Well, as I pointed out above, you're making modifications to the software. If you're concerned about the warranty, don't use ANY modified software on your device, and keep your bootloader locked. You can't have your cake and eat it too.
[Android Q&A, Help & Troubleshooting] Bill720:
Many may not remember, but Windows Mobile (not Windows Phone, Windows Mobile 7 Series, or Windows 10 for Mobile; OG honest-to-goodness Windows Mobile 6) used to have a killer Tetris-like game called "Touchtris" that differentiated itself by allowing the player to track input anywhere on the screen, and, most importantly, move/rotate the pieces in a single stroke, WITHOUT letting go of the screen (the widely-circulated demonstration video does not show this all-important feature).

Does anyone know if such a thing exists (or ever existed) on Android?
[OnePlus 8T Questions & Answers] kopsu:
I'm running rooted KB2003_11_F.15 with Magisk-Delta + USNF.

Just asking if it is possible to remove warning about unlocked bootloader (Orange warning) or re-lock bootloader without losing data ? I remember that with C33/C35 android 12 there wasn't any warnings on my system even though I rooted it.

I might remember wrong but so is it possible to flash something from extracted payload.bin (latest F15) to remove that warning?

Whats the partition where this warning resides and what are the possibilities to remove the warning and 5sec pause from boot?
[OnePlus 8T Questions & Answers] kopsu:
Sorry, I didn't look too well... There's an answer to my question:

https://xdaforums.com/t/guide-root-kb2003-oos13.4522329/post-87963157

It's possible at the moment as I understood.
[OnePlus 8T Questions & Answers] Rootk1t:
By flashing bootloader image (abl.img) from OOS12 or OOS13 beta.

https://xdaforums.com/t/guide-root-kb2003-oos13.4522329/post-87998247
[T-Mobile REVVL V+ 5G] R41N MuTT:
REVVL V+ 5G TMOBILE

ACHIEVED ROOT WITH ADB + MAGISK

~DELETED CARRIER SPECIFIC APPS & LOST WIFI~

IGNORANT OF HOW TO FLASH STOCK

-HAVE STOCK FIRMWARE

-STOCK RECOVERY

Can somebody please help me get this thing back to stock? Or at least help me get my wifi modules working again? Cannot identify/locate modules to flash and have no idea how to flash stock rom with ADB and failed to discover custom ROM. Is there a way to recompile and use mdi, tar etc with Odin or whatever?
[T-Mobile REVVL V+ 5G] tabuRebel:
I believe I read somewhere that you can flash stock in meta mode similarly to brom mode but idk to be honest. I can't until mine I've been fighting with a wall for months now.
[T-Mobile REVVL V+ 5G] tabuRebel:
Also I used mfdl android utility and it has a lot of options making it almost elementary to do certain things that would otherwise have seemed a lot more complex. If you are down you should check it out and get back to me on here with your opinion.
[Samsung Galaxy S21 Questions] RamOS1123:
Hello everyone,

First of all, thank you to all community members. For the past several years, I have been just a passive reader here and gained a lot of information and insight on various topics.

But now I'm facing a problem, that goes beyond my knowledge and I also couldn't find any solution online so far. Maybe you can come along with new ideas.

So what has happened?

I was flashing the newest stock rom to my S21 5G, but somehow odin wasn't working properly in the beginning.

I tried different usb ports and different cables, the 3rd port seemed to function.

Anyway now I'm stuck with a bootloop. I can enter stock recovery, but I can't enter to the download mode.

Factory reset doesn't help. ADP is enabled. Bootloader unlocked.

so I'm asking myself if there is any way to flash a full stock rom via sideload? What could be the reason that download mode is not reachable?
[Samsung Galaxy S21 Questions] V0latyle:
Try turning your device off completely, without a USB cable connected. Leave it off for now.

Make sure you're using Odin 3.14. Redownload the firmware just to be safe; use Frija or Sammobile (I recommend Frija because Sammobile is slow)

Start Odin, and plug a USB cable into your computer. DO NOT plug it into your phone yet.

Hold both Volume + and - buttons, DO NOT press Power. While holding both buttons, plug in the USB cable. Your device should start in download mode.

You can now use Odin to flash the new firmware. Make sure you use the HOME_CSC_xxxxxx instead of CSC_xxxxxx; the latter will wipe data.

If you want to try sideloading an OTA package, try this guide.
[Samsung Galaxy S21 Questions] RamOS1123:
Thank you very much, you saved my phone :)

My mistake was, that I was trying it with volume up + v. down + power button.
[Samsung Galaxy S21 Questions] cauvang999:
I thank you very much. I'm an amateur when it comes to phones. You saved me after I was stuck with bootloop 2 for days now. Again, I really thank you, I had to sign up for an XDA account to thank you. (Google Translate)
[Samsung Galaxy S21 Questions] Nubidubi23:
I know i'm not OP but i had a very similar problem, is there maybe a way to boot into twrp? no button combination seems to work and my phone isn't in a bootloop, just not starting because i have a rom with lower binaries than allowed
[Android Q&A, Help & Troubleshooting] co11:
so i think i bricked my phone.

i downloaded the ROM from https://miuirom.org/load?o=mi-10t-and-mi-10t-pro&v=13.0.8.0.SJDMIXM&l=en&t=Recovery

and then patched it with magisk

and followed the tutorial

i dont know what i did wrong

my phone is xioami 10t pro

tried flashing it back to the unpatched boot.img and it still got stuck in a boot loop

Please help me

should i try to wipe data im not sure if it will make it more complicated, sorry im a idiot when it comes to these things
[Android Q&A, Help & Troubleshooting] co11:
i might know what the problem it

just now i realized that my phone is android 10 with miui 13,

cant find stock rom for anroid 10 miui 13 for my phone
[Android Q&A, Help & Troubleshooting] alecxs:
when flashing magisk_patched.img it may break encryption depending on settings patched.

you can download stock ROM here

https://new.c.mi.com/global/miuidownload/index

or here

https://xiaomifirmwareupdater.com/archive/miui/apollo
[Android Q&A, Help & Troubleshooting] co11:
already flashed my entire phone, i downloaded the rom for my phone but wrong verion of the android and miui, thx.
[Samsung Galaxy M31 Questions & Answers] psychotic.predator:
Trying to root my galaxy M31 by flashing a TWRP recovery file but I got this above error!...

Finally end up with... Neither I can restart phone (volume down + power) coming to same screen nor enter to TWRP recovery mode (volume up + power) also coming to same screen!!!

Worst case is here I cannot connect to Odin tool to solve this thing!...

I referred this blog for rooting: Install TWRP Recovery on Samsung Galaxy M31 (magiskzip.com)

My feeling: brought this phone yesterday and now got messed up.

Please help me with this thing, I'm done of it!

Thank you...
[Samsung Galaxy M31 Questions & Answers] unst4bl3:
try flashing this vbmeta...