yashsingh1/xdaforums huggingface dataset:
[Moto G Stylus 5G] yesca213:
Ya, I'm wondering the same thing....
[Moto G Stylus 5G] ragarcia87:
That's strange... I was able to unlock mine. What carrier is your phone? Mine is Boost Mobile.

Couple be the carrier not able to unlocked I'm not sure. But I was able to get my code and had to wait 3 days till I could enable OEM Unlock in developer options...
[Moto G Stylus 5G] yesca213:
I was able to get the OEM unlock switch in dev options, but no code from moto......
[Moto G Stylus 5G] ragarcia87:
Yes but what carrier is your phone?
[Moto G Stylus 5G] yesca213:
Sorry should have noted that. AT&T
[Moto G Stylus 5G] ragarcia87:
I dont think the ATT models can be bootloader unlocked...

someone correct me if im wrong
[Moto G Stylus 5G] Mrhayman12:
Heya, looks like fastbootd is borked on XT2131-1. I tried that recovery image, installing it and rebooting to fastbootd, but it doesn't recognize any of the super partitions.

The last error I got from fastbootd while trying to flash system, system_ext and product on both slots was "no such file or directory" - I can't get it to boot after that.
[Moto G Stylus 5G] ragarcia87:
Hm. When I get back from work I'll check it out on my device and see what happens.
[Moto G Stylus 5G] maddog3030:
Curious, why did you use fastbootd?..... And fastboot doesn't have anything to do with the recovery (TWRP).
[Moto G Stylus 5G] ragarcia87:
True, since the device has bootloader access it's best to just use fastboot vs fastbootd...
[Moto G Stylus 5G] Mrhayman12:
I've been using GSI images for a while, trying to see what works and what doesn't. the bootloader doesn't allow me to flash individual partitions inside of super, that's all handled by fastbootd, which is integrated into TWRP.

I'm thinking that because it's a fairly niche use case, it flew under the radar. Then again, this is the only recovery image available for Denver that works at the moment... even if it's a bit dysfunctional.
[Moto G Stylus 5G] ragarcia87:
I have a personal build of OrangeFox recovery I use. I can send it to you via PM if you'd like?

Yeah, I get it now.. I had a brain fart I guess.. to flash individual parts of the super part you gotta use fastbootd. im testing this OrangeFox now and it seems to be working. Ill send it for you to try.
[Moto G Stylus 5G] maddog3030:
If memory serves me right fastbootd is fastboot written to an executed from the user space. "recovery" can parse command to fastbootd but it is not part of recovery(TWRP).

Hence the command "fastboot reboot fastboot"
[Moto G Stylus 5G] spoofit1:
are you going to add support for Motorola Moto G Stylus 5G 2022? Didn't realize this was 2021 device tree and I loaded on 2022 device and it loads just and unable to use touch screen?
[Moto G Stylus 5G] ragarcia87:
For the 2022 version you can use this one:

https://xdaforums.com/t/a-team-rele...oto-g-stylus-5g-2022-xt2215-4-milanf.4490737/
[Moto G Stylus 5G] spoofit1:
Thank You I thought I looked it up maybe I guess I didn't do that good of a job. lol
[Moto G Stylus 5G] maddog3030:
Can you PM a copy of it to me as well?
[Moto G Stylus 5G] noob2264534:
Worked perfectly on my device, thanks for putting this together!
[Moto G Stylus 5G] BLeAk11:
I'm on AT&T and have unlocked the bootloader, rooted, installed this TWRP etc
[Moto G Stylus 5G] ragarcia87:
Hm. Idk then why he can't unlock his bootloader... my bad, thank you for the correction! :)
[Moto G Stylus 5G] benjmiester:
How did you manage to unlock an At&t variant BL? I just got one and immediately Moto says no dice with my BL code. I'm doublechecking for errors and spaces but I'm not new to that process, I know how to put the string together.

Edit: Maybe it's because I just got it. I might have to wait the 48 to 72 hours or whatever to have it allow me to unlock. I've never actually had a phone that needed that. OEM unlocking is allowable, though it ran an update and I worried that screwed up my unlock ability too. It's on RRES31.Q2-11-61-4-16 with unlocking check able to toggle. Hope that's it. I specifically bought it as a nav phone for work that I thought I could root for Viper4Android use for my BT headphones since all of the non-root EQ apps are super weak if they even ever work at all.
[Moto G Stylus 5G] leaforte:
Brilliant! Simple steps to install and it works!. Though, this is the second phone I've modified with custom recovery and root of recent (also LG V20) I struggled to get the same esults from each step as described, usually right out the gate. And after searching hundreds of posts it came down to a solution that was so basic it wasn't in any instructions/guides. It was driving me bonkers--to have my files ie .zip .img exploit files etc in the same directory that I was launching min adb and fastboot. That's all. Once I caught that everything was gravy. Yes. It happened once. Sure. Even a second time. But believe me--I won't happen a third.
[Moto G Stylus 5G] wolf45801:
hello any chance this could be compiled to work correctly with android 13 right now the touch screen doesnt work
[Moto G Stylus 5G] ragarcia87:
I could see about it however its not a huge priority to me right now cause i'm on A12.
[Moto G Stylus 5G] ragarcia87:
There is no recovery partition. There is the boot partition which has a recovery ramdisk included in it... You have to follow the directions and do:

fastboot boot a12v2-twrp-boot.img

Once TWRP boots up, go to Advanced > Install Recovery Ramdisk

Then choose the a12v2-twrp-boot.img

Then go to Install and choose the Magisk-v25.2.zip file to re-root the device

Then go to Reboot > System
[Moto G Stylus 5G] wolf45801:
i get it thanks for atleast seeing about it sometime
[Moto G Stylus 5G] FlyingPoo:
Hmm... This may play tricks with cell service activation (Straight Talk or VoLTE provisioning). I had to revert to stock recovery (Lenovo Rescue) (bootloader still unlocked). I will redo the steps to load up TWRP and Magisk to see if the issue returns and report back.

Edit: Seems to be working fine now. Must have been an issue with Straight Talk.
[Moto G Stylus 5G] fathergweedo:
Android 13 is available for the Moto G Stylus (2021) already? Or did I misunderstand?
[Moto G Stylus 5G] ragarcia87:
He must be using GSI I think... I dont think there is an A13 out yet for this device...
[Moto G Stylus 5G] galapagos:
An update is available for RETUS (from S2RES32.29-16-1-10-4 to S2RES32.29-16-1-10-5). Did anyone get the full firmware via RSA? Does it usually take extra time for the full image to appear on RSA? I guess I can just go back to stock boot.img to unroot then upgrade, backup the boot.img, then patch & re-root using magisk?

EDIT: All went successfully. Updated and re-rooted.
[Moto G Stylus 5G] maddog3030:
I know there is a security update that take the phone to S2RES32.29-16-1-10-5

but RSA dose not show it yet, even when I use a phone that is already on S2RES32.29-16-1-10-5 it still shows S2RES32.29-16-1-10-4!!!???

and no updates on https://t.me/motoupdatestracker yet.

** its up now https://t.me/motoupdatestracker !!
[Moto G Stylus 5G] BLeAk11:
Yeah there is a wait
[Moto G Stylus 5G] FlyingPoo:
I'm still on S2RES32.29-16-1-10-4 and getting this OTA nag to update to S2RES32.29-16-1-10-5. If I already have TWRP installed as well as Magisk, can I just boot into TWRP, install S2RES32.29-16-1-10-5, then the TWRP-boot image, then the Magisk zip all in one TWRP session, reboot and still keep TWRP and root? Also, I suppose I should note that I have the 4/128 version of this phone.
[Moto G Stylus 5G] ragarcia87:
You should be able to. As long as you install TWRP first then rename Magisk.apk to Magisk.zip and flash it after the TWRP. Then you should be fine.
[Moto G Stylus 5G] Camadams1179!:
Would this by chance work for the non 5G version of this phone? Ive been needing a useable TWRP but i dont want to delve into making it myself and brick my device. Any help would be welcomed, my phone is rooted through magisk as well but TWRP is useful for some stuff as well...
[Moto G Stylus 5G] FlyingPoo:
I had to go about your method to install an OTA but used a windows script. Worked well. Then fastboot boot twrp.img > flash recovery to ramdisk then install Magisk again.

Looking at changing a few other things now.

Its been a minute and I'm digging out old tools.

Camadams, If you boot your phone into fastboot, you can "test" this twrp image by connecting your phone to your PC and run the command

This isn't permanent and reverts back to original recover after a phone restart.

If it boots into this recovery and everything works, you can go to Advanced > flash recovery to ramdisk and select the a12v2-twrp-boot.img file for a more permanent solution.
[Moto G Stylus 5G] Camadams1179!:
Are you aware if this works on Android 11 or does that have no factor in this process, id assume if i did it with the a12v2 twrp img it just wouldnt allow it but just being cautious
[Moto G Stylus 5G] FlyingPoo:
There is a v11 in the 1st post. Not sure, as I got this phone with android 12 already on it.

As this was built for the denver model, there may be other issues when doing a nandroid backup for example if this appears to work on your phone model when booted through fastboot.
[Moto G Stylus 5G] Camadams1179!:
Well tried to boot it and it says

downloading 'boot.img'...

OKAY (2.293s)

booting. . .

(Bootloader)Command is not support

Failed (Remote Failure)

Finished. total time: 2.297s

is this my cord or usb slot or is this just a command i cannot use? And to clear up, im on android 11 and never got the update to 12.
[Moto G Stylus 5G] FlyingPoo:
Is your bootlloader unlocked?
[Moto G Stylus 5G] Camadams1179!:
Yes, it is. My device is rooted. Unsure as to why it is having this issue.
[Moto G Stylus 5G] wswjw:
You will get this error if, in an attempt to arrive at fastboot, the command adb reboot fastboot was used. Then instead you'll be in fastbootd, of which the fastboot boot xxx.img command will fail and produce this error. From fastbootd menu, select reboot bootloader to arrive at fastboot then try the command to boot the img.
[Moto G Stylus 5G] stevenespinosa51:
Where can retus be found?
[Moto G Stylus 5G] fathergweedo:
Moto Updates Tracker

EDIT: Latest retail is S2RES32.29-16-1-10-6 (Build Date: Thu Jan 26 16:09:56 CST 2023) but the Moto Tracker link has expired. I grabbed it before it did, but it's up on the lollinet mirrors now. Direct link here.
[Moto G Stylus 5G] stevenespinosa51:
Thank u btw and if it's not too much trouble, like how do you install it? I can't get RSD lite to recognize my device Even though my computer definitely recognizes it through ADB and everything so I don't know what I'm doing wrong
[Moto G Stylus 5G] FlyingPoo:
Notes to myself for OTA Updates:

Load up Lenovo Rescue and Smart Assistant.
Connect to phone and accpet any prompts on the phone.
Download Update.
Dissconnect Phone once update has started downloading.
Copy from C:\ProgramData\RSA\Download\RomFiles
Close RSA.
Extract Update and copy over converter.bat (download from https://github.com/ArtiicPanda/FlashFile2Bat)
Run converter.bat
Edit flashfile.bat
Remove lines:
fastboot erase carrier
fastboot erase userdata
fastboot erase metadata
fastboot erase ddr
Boot phone into fastboot
(power it off > hold vol down + power > wait till it enters bootloader).
Then connect to PC via USB cable.
Run flashfile.bat
Wait.
Phone will reboot into updated system (root and TWRP will be gone).
Once rebooted, unplug phone.

-----To add back TWRP and Root-----
Wait for update to complete.
Boot phone back into fastboot.
Reconnect phone.
fastboot boot a12v2-twrp-boot.img
Once TWRP boots up, go to Advanced > Install Recovery Ramdisk.
Then choose the a12v2-twrp-boot.img.
Then go to Install and choose the Magisk-v25.2.zip file to re-root the device.
Then go to Reboot > System.

-----To add back custom logo.bin-----
Copy logo.bin from OTA update.
Edit logo.bin with MotoBootLogoMaker (from https://github.com/raven428/MotoBootLogoMaker)
Save custom logo as logo.bin in a custom folder (dont overwrite stock)
Boot into fastboot.
fastboot flash logo logo.bin
fastboot reboot

-----Bootanimation in progress-----
/system/product/media/bootanimation.zip
or is it
/product/media/bootanimation.zip
[Moto G Stylus 5G] FlyingPoo:
Make sure the app "Device Help" is not disabled on the phone... and open when you connect your phone with RSA running.
[Moto G Stylus 5G] one789:
can u pm me a copy please
[Moto G Stylus 5G] ragarcia87:
Yeah most def. Sorry been away, life been crazy lately lol
[Moto G Stylus 5G] justtrying1:
So you don't have to unlock the bootloader?
[Moto G Stylus 5G] justtrying1:
So do you have to unlock the bootloader.

Won't it bootloop?
[Moto G Stylus 5G] ragarcia87:
Yes you have to have unlocked bootloader first
[Moto G Stylus 5G] fathergweedo:
Can't boot anything other than pure stock without unlocking the bootloader.
[Moto G Stylus 5G] one789:
thank you
[Moto G Stylus 5G] ragarcia87:
You're welcome, what ya think? Should I release it or? Lol. I mainly did it as a personal recovery lol
[Moto G Stylus 5G] one789:
i like it.... my honest opinion better than twrp.. I would put it out there.. u dont happen to have any good roms for the (DENVER)
[Moto G Stylus 5G] PMiner:
deleted ( wrong device, sorry )
[Moto G Stylus 5G] live2ride:
Worked flawlessly on my Denver .

Hats off and thank you sir.

I had gone round a bit about 3 months ago with TWRP on this build. Touch was out to lunch and other than an external mouse attached it was to no avail.

Just rooted the 2215 2022 and that when I ran into this thread. Good work. And much appreciated!
[Moto G Stylus 5G] X_DroiD_X:
HELP I UNZIPD THE FILE COPIED TO ROOT OF INTERNAL STORAGE BUT WHEN I TRY FASTBOOT BOOT TWRP.IMG FOR EXAMPLE SAYS NO SUCK FILE OR DIRECTORY BUT ITS IN THERE
[Moto G Stylus 5G] ragarcia87:
You'll want to unzip it to your computer and run the fastboot command in the directory the file is unzipped to.
[Moto G Stylus 5G] X_DroiD_X:
LET ME TRY THAT SO I OPEN UP COMMAND PROMPT INSIDE THE UNZIPD FOLDER
[Moto G Stylus 5G] ragarcia87:
Correct but don't unzip it to your internal of phone but on computer the phone is plugged into via USB.
[Moto G Stylus 5G] X_DroiD_X:
BRO I CANT GET BOOTLOADER TO UNLOCK AND IVE ENABLED OEM UNLOCK IN DEVELOPER OPTIONS
[Moto G Stylus 5G] ragarcia87:
If you just bought the phone you gotta wait 72hrs to unlock the bootloader
[Moto G Stylus 5G] spoon77:
This all worked perfectly, thank you, awesome job!
[Moto G Stylus 5G] spoon77:
I have found that in order to REALLY unlock the bootloader, it can't just be done through developer options, you have to do in through ADB
[Moto G Stylus 5G] fathergweedo:
Fastboot
[Moto G Stylus 5G] fathergweedo:
Thought so. Still have to enable oem unlock in developer options or the fastboot command won't get the unlock string. But I think you know that <g>
[Moto G Stylus 5G] spoon77:
has anyone been able to locate any custom Roms for the Denver XT3121-1
[Moto G Stylus 5G] ragarcia87:
Yes and I would post link but I think it's prohibited. However search telegram if you are interested still.
[Moto G Stylus 5G] maddog3030:
Any chance of an A13 version?

It will boot in GSI android 13 but touch screen inop..sound familiar?
[Moto G Stylus 5G] ragarcia87:
Thats a good idea. I could def try once I get a computer... I've been running A13 on this device, pm me for more details
[Moto G Stylus 5G] xleet:
Will this work with the Tracfone variant of this phone (XT2131DL).
[Moto G Stylus 5G] jasonmerc:
Moto G 5G 2023 user here. Seems like it's the same device as the G Stylus 5G 2021. Glad to see people developing for this device, and hopefully us G 5G users can benefit from this as well.

Tried searching telegram for a group regarding this phone but I couldn't find anything.

Curious what kernel version this phone runs, as well as if any of you guys noticed touch screen dead zones around the bottom corners. The hope is G 5G users can use the same ROMs in a unified tree. It's kernel 5.4 on my phone and I think 4.19 for you guys. I'd actually prefer 4.19 though because of CIP support. Never seen a phone kernel be downgradable before though.
[Moto G Stylus 5G] ragarcia87:
They are very similar, I'm quietly still developing for this device and currently working on a vendor_boot recovery for A13 version... But coming up short. The 2021 version, runs on kernel 5.4. I've not had any dead zones around bottom corners...
[Moto G Stylus 5G] jasonmerc:
Darn, and darn. No CIP support for us then for the kernel, we're SOL in 2 years unless a GKI can work.

I noticed on my phone that if I enable Show Touches in developer options on the stock ROM, if I tap the bottom corners enough, some taps won't register about 5-10% of the time. This becomes a pain when typing, and is persistent across multiple G 5Gs I've used. Must be crappy hardware that they put these together with.

I suppose I'll send you a PM about this too. Thanks for the quick response.
[Moto G Stylus 5G] BypassM@ster2b:
Just wanted to thank you for work you put in. This thread got the phone I am on working again after a brick then rooted it, and now I am here. So, thank you!
[Moto G Stylus 5G] ragarcia87:
You're welcome....

Also side note, I got a hacked together twrp that will work on A13. At least it works on my A13, running with PizzaG kernel...
[Moto G Stylus 5G] corruptedfilena:
ummm im not a text savvy at all and im very lost and confused on this part:

Then do:

adb reboot bootloader
fastboot boot a12v2-twrp-boot.img

huh ? put what in the who ? can some one tell me how the code is going in to ?

i have OEM Unlocked and bootloader unlocked, but i need a Recovery ?!!!! welp i have DL the modified TWRP from ragarcia87. now i need to install/flash it or something like that so i can flash a custom rom. so i need help with the flashing of the TWRP Recovery. oh techie wise Sages you're my only hope. ^^]
[Moto G Stylus 5G] ragarcia87:
Sorry for the late reply, life has been crazy.

So first things first, do you have the appropriate tools installed? ie: adb, fastboot?

I am assuming you do since you unlocked bootloader. So what you wanna do is plug your phone into your computer and jus tlike you did for unlocking the bootloader, open Command Prompt if on Windows or Windows terminal or Terminal Emulator if on linux and type:

adb reboot bootloader

then when you see the bootloader screen you wanna make sure you are in the unzipped directory where the "a12v2-twrp-boot.img" is located and then you wanna type in:

fastboot boot a12v2-twrp-boot.img

this will boot up the recovery image, then once you are in the recovery image continue following the directions listed.
[Moto G Stylus 5G] Agent36:
*noob alert* do you think this would work ok with electimons osaka lmodroid android 14? if not what do you reckon changes from version to version that would cause problems? thank you though for this i used it before when i first rooted this phone on a12, would like to have it again if possible. :)
[Moto G Stylus 5G] ragarcia87:
It will but you have to back it and replace the kernel with the kernel from the roms boot.img. I've done it with A13 and it worked like that. Should be the same.
[Moto G Stylus 5G] ragarcia87:
Full Changelog: https://github.com/juic3b0x/twrp12_.../compare/3.7.0_12-v2...twrp-3.7.1_12-1-denver

- Updated to TWRP 3.7.1

- Fixed backup error on /data/fonts

Installation:

WARNING: If you accidentally flash TWRP to your device using fastboot instead of temporarily booting the image, you will need to download the latest factory image for your device and reflash the boot image.

Download the correct image file and copy the file into the same folder as your platform-tools as well as device’s storage. Rename the image to twrp.img.

Now reboot to fastboot/download/bootloader mode by using adb or manual key combos (Use Google to find that if you are not sure). To use adb to reboot, use the following command:

adb reboot bootloader

Temporary boot the downloaded image using the following command:

fastboot boot twrp.img

Preferred Installation Method:

Once booted, navigate to Advanced > Flash Current TWRP option. This will install the TWRP image you just booted permanently to the device.

Alternate Installation Method:

Once booted, navigate to Advanced > Install Recovery Ramdisk option. This will ask you to select the image you want to install TWRP from. Select the TWRP image you just downloaded and copied into device storage. Proceed to install this image.

NOTE: You also need to use the “Fix Recovery Bootloop” option present in the same Advanced Tab. Use that option after you have installed the recovery ramdisk successfully to avoid boot loops happening from installing TWRP Permanently.

After this is done, you have successfully installed TWRP on your device.
[Moto G Stylus 5G] Agent36:
Thanks I really appreciate the help and guidance, just to make sure i understood right.... i need to pull the kernel file from the boot.img i patched with magisk? or stock or ? and swap it with the one in the twrp.img recovery file? im going to look it up but if you can tell me the most efficient software to open the img file and repack it id be grateful. i might have one from when I installed bliss0S on my one pc...

lmodroid 14 electimon mod, lmodroid builtin recovery(poop emoji), magisk 2.7
[Moto G Stylus 5G] ragarcia87:
You can use this to unpack and repack:

GitHub - ravindu644/Kitchen: Boot image unpacker and repacker while keeping Android Verified Boot.

Boot image unpacker and repacker while keeping Android Verified Boot. - ravindu644/Kitchen

github.com

Use the kernel from the boot.img you use to boot your phone with. The one from the custom ROM.

If you provide me the boot.img, I can do it for you if you'd like.
[Moto G Stylus 5G] scottyrick2:
A great improvement from ver2 to ver3 of this TWRP. Easy to install, and everything just works. Thanks for your efforts at polishing this apple!

Update (7 May, 2024): I needed to do a full restore of my stock data and super partitions, after failing in my attempt to install an Android 13 rom. The TWRP did not restore the super partition at all. It seems to have jumbled it instead. I had to re-install the super partition using fastboot commands. Puzzling.

2nd Update (7 May,2024) : Looks like a defective sdcard. I will confirm this when my new sdcards arrive.

3rd Update 10 May 2024): Definitely the sdcard. Threw the old one in the trash.
[Moto G Stylus 5G] BypassM@ster2b:
The group is like motorola something custom or another roms ish? :) Let me see what i am on the 5g 2021 Denver/osaka model. Android version 14 with a 5.4 kernal hehe
[Moto G Stylus 5G] BypassM@ster2b:
Im actually running a evolution rom on android 14 now. lol it thinks its a pixel! I love it!

Again, thank you so much for you efforts
[OnePlus 9] centifanto:
What MSM specifically? If it is the TMo one, then you won't get OTAs from 1+, they come from TMo. 11.2.8.8 is the latest from TMo

What SIM issues?
[OnePlus 9] centifanto:
Interesting, I never got 12 when I was TMo, only 11.2.8.8. Maybe different areas get different stages? 🤷🏽‍♂️ It is weird the TMo ROM is so far behind though...

Did you follow step 9 of the conversion guide?
[OnePlus 9] EtherealRemnant:
Really, all of these methods are outdated. The best way to do it is to use Fastboot Enhance.

https://xdaforums.com/t/safely-conv...to-recover-from-a-brick-windows-only.4460859/

After doing that, you just have to flash the Magisk fix to get back working data (because of the aforementioned dual SIM bug).
[OnePlus 9] centifanto:
Ah, I am not sure then how you'd fix the issue as I have an unlocked bootloader and root.

And I have not flashed the file yet or the Magisk fix. I have to send the phone off for screen repair, so I haven't popped a SIM in it since converting.
[OnePlus 9] AaronRamlochan:
I'm also facing this issue

It's been over a week and still no updates after 11.2.8.8

My device was previously on OOS12 C.19 before i bricked it and uses the MSM tool
[OnePlus 9] AaronRamlochan:
Did you run into SIM card issues after updating to C.48 using this method?

I'm just wondering if i can use the TMO-GLO MSM tool to get 11.2.2 them use the local update to 11.2.10.10 then go to C.48 to hopefully retain Cell service/SIM Card, any help on the matter would be appreciated!