How To Guide Rooting the XT2215-4 (Motorola G Stylus 5G 2022)

Search This thread

mingkee

Senior Member
I'd like to know do Netflix, Prime, and Hulu work after bootloader unlocked?
I am planning to buy G Stylus 5g 2022, but previous experience on Edge 2021 gave me a concern
These paid video apps stopped working after updated to Android 12 and I have to roll back.
 

GameTesterDev

Member
Jul 16, 2017
7
2
How did you unlock the bootloader to this device???? Their website keeps saying it is ineligible for me... And it is the AT&T model just like yours.
 

bobbyp1086

Senior Member
Ok so I just got this, on paper at least, beast. I've had the first stylus and then the moto one 5g ace which just got Android 11. All rooted but didn't feel like I had root permissions if you understand that. There was no rw for system files without a script and even some rooted apps didn't have the power they should have. That being said, what does roof offer this device? I know customization is most people's reasons, but honestly the original reason most used to root are now a part of the system anyways so no need anymore. And tbh gain of root is starting to become quite a chore to keep root and hide it.
R/w access?
 

bobbyp1086

Senior Member
Ok so update and question all in one. Oem unlock says connect to internet or contact carrier. I have the unlocked version, straight from moto, send well I think I'm connected to the Internet lol. I keep seeing 3 days, 7 days and one says just try it anyways if it's greyed out it's just a ui glitch moto never fixed. Any real info
 

bobbyp1086

Senior Member
Few questions. Does root remove the option for Google Tap to Pay (and bank apps) from working? I assume they will work fine since Magisk. Honestly I miss custom roms, viper4android, adblock, etc

Its just been SOO long since I dove into rooting, back when Magisk was first coming out. Either way I still may do it because this becoming a backup phone. Traded my Moto One 5g Ace for a Moto Edge (2022). In many ways its an upgrade like Display, Camera, Stereo Speakers, Fingerprint (underglass), Faster + Wireless Charging. But I lose SD Card, Stylus, Headphone Jack. Processor seems better but MediaTek.
Yes but there are ways around it. Magisk, shiminko (spelled totally wrong) the deny list is then a black list just don't activate deny list in magisk only configure it. Hides it from games, Google, PayPal, banks, schools, hell it sometimes if you're not careful hides magisk from magisk and gotta reflash
 

bobbyp1086

Senior Member
That's the one. My friend that is imo the thing that saved root for me. Nothing detected when that's on.

Only thing is right now all of a sudden my SIM isn't being read, it's not the SIM card, something like "java illegal something default phone hasn't been made yet" and something with qti telephony as well imma reset the thing and see, it was a refreshing time tho all rooted expected to be too read and write, no underlying things restricted greatness for a day then this. If it's hardware I'm kinda screwed unless there's a way to lock the bootloader before sending back to Amazon
 

dagey

Member
Aug 16, 2017
28
3
IN
Moto G 5G Plus
Moto G 5G
Does anyone have any experience with getting the bootloader unlocked on the spectrum variant? I'm thinking of making the switch--i know i can most likely get the metro variant going and i always had a problem with verizon. just wondering about the spectrum mobile variant?

Thanks,
Ryan
 

r.dunne

Member
Aug 29, 2013
19
5
This is from June. Is there any updated info on this? I just picked one of these up for next to nothing and want to root it but this guide seems outdated, or not updated, or whatever... It's used so I'm sure it has OTA updates. It's been a long time since I had a phone to play with like this, , my last few have been Samsung "flagships" (Note 9 512gb, Note 10 256gb, Note 20 Ultra 512gb) which are not rootworethy. The last Samsung I was able to root was an S3 and only the first one I had on US Cellular in Maine. There's no US Cellular in Colorado so I switched to Cricket. They gave me the same phone but I could not root is.
 

classic757

Senior Member
Apr 15, 2013
1,083
313
Easier way to root is to get the firmware from moto site and extract the zip ..grab the boot.img and patch with magisk...

I bought this phone now I have both 5g styluses..
This one is better but the camera is better on the 2021 model.

Our phone model codename is 'MilanF'
Okay so there are two boot images in the extracted firmware file. The boot.img and also the vendor-boot.img.
Which one am I patching with Magisk, the boot.img. correct?

Also, does this root method provide r/w access?
 

maddog3030

Senior Member
May 5, 2014
183
64
Nexus 7
Nexus 6
Question 1: boot.img
Question 2: yes & no
You get read and write and all the user space in root but not for system there are ways around it but they're quite messy

Okay so there are two boot images in the extracted firmware file. The boot.img and also the vendor-boot.img.
Which one am I patching with Magisk, the boot.img. correct?

Also, does this root method provide r/w access?
 

jaytee1003

New member
Dec 19, 2022
3
0
I just want to let anyone every know that this also works with the new Motorola g 5G 2022 code name Austin follow the exact steps obviously the Motorola firmware will be for the Austin but last night I followed this to a T and it worked like a charm.
Screenshot_20221225-145402.png
 

stikyballs

New member
Jan 8, 2023
1
0
Can confirm works on latest update
 

Attachments

  • Screenshot_20230108-100550.png
    Screenshot_20230108-100550.png
    255 KB · Views: 70
  • Screenshot_20230108-100652.png
    Screenshot_20230108-100652.png
    104.7 KB · Views: 70

rdmd

Member
Sep 21, 2006
39
2
Anyone know if these instructions work for rooting the T-mobile Motorola G Stylus 5G 2022
variant (XT2213-3)?

Thanks

 

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    ***This is meant to be a guide only. I am not responsible for any adverse effects rooting or attempting to root your device. It is possible to brick your phone doing this so use at your own risk! ***

    That being said, the following are the steps I took in order to root my own Motorola G Stylus 5G 2022 (XT2215-4) running android 12. NOTE: This tutorial assumes that your phone's bootloader has already been unlocked

    **Please be aware if you have taken an OTA update firmware build will not match those shown in this guide.**




    Confirm your model and Android version:

    1. On your phone go to Settings -> About Phone and tap "Model" to bring up more information about your phone's model.
      • model_info_LI.jpg
        about_phone.jpg
    2. Confirm your phone is running android 12 and see the firmware build number curently on the phone
      • Again go to Settings -> About Phone. Scroll down to and tap "Android version" to bring up additional details
      • about_android.jpg
        android_and_build.jpg

    NOTE: If your phone or android version do not match those shown in the images above these steps may still work, however I have not tested them, have no way of testing them, and take no responsibility for any adverse effects from performing these steps on your device.


    Confirm your bootloader has been unlocked:

    1. In Developer Options confirm that "OEM Unlocking" says "Bootloader is already unlocked" and that USB Debugging has been enabled.
      • On your phone go to Settings -> System -> Developer Options
      • oem_unlock.jpg
        usb_debugging.jpg


      • If you do not see "Developer Options" in the list it does not necessarily mean that your boot loader has been unlocked (as you may not have re-enabled developer options after unlocking) but it is a red flag!
        • To enable developer options go to Settings -> About Phone and click "Build Number" 6 or 7 times until it says "you are now a developer".

    Getting the stock firmware:




    At the time of writing this guide there were no legitimate and or trustable sources to download the stock firmware for the XT2215-4 other than Motorola. If you google something such as "XT2215-4 stock firmware" you will get several different results however they are almost all clones of the same (presumably) scam website. Do yourself a favor and just.. dont! Get it directly from Motorola by doing the following steps.



    1. Download and install the Motorola Rescue and Smart Assistant Tool https://www.motorola.com/us/rescue-and-smart-assistant/p
    2. When you connect your phone to your computer it should detect your phone model and prompt you about downloading the correct firmware your phone. If not you may have to select the "Backup & restore" option in the right hand menu.
      • I had some trouble with getting my phone to connect to be recognized by the Rescue and Smart Assistant Tool and was forced to use the "Connect via WiFi" option. This option requires that both your computer and the phone be on the same network. It will prompt you to download and install the app's apk on your phone and then use the QR code on your computer to start the sync process.​
    3. Once the rescue tool recognizes your phones model it should prompt you with the firmware for your phone, and begin downloading it to your computer.​
    4. The default path it will download the firmware to is C:\ProgramData\RSA\Download\RomFiles​
    5. Once downloaded you should see a directory here called "MILANF_G_S1SD32.56_22_subsidy_DEFAULT_regulatory_DEFAULT_cid50_R3_CFC.xml"​
      • If you do not have a directory but a *.zip instead, simply extract the zip to the current director and you will then see it as mentioned above.​
      • **IMPORTANT** Make sure that the build number of the firmware you downloaded matches that on your phone.
      • The initial build for this phone is S1SD32.56-22 and we can see that the (colored portion of filename) firmware we downloaded is the same as the build currently on our phone (from "Confirming your android version" step 2 from earlier).
      • NOTE: If you have an taken OTA update or flashed a newer firmware version than you the must make sure that the firmware you are patching is the same as one currently on your phone.
    6. Open the directory and you will see the stock firmware and all of its content for the Motorola G Stylus 5G 2022 (XT2215-4) as shown below:​
    firmware_contents.PNG



    Patching the stock firmware with Magisk (Obtaining root)



    So here is were things might not be so obvious. The XT2215-4 model is an A/B device along with utilizing ramdisk. What this really means for us is that our firmware does not have separate boot.img and recovery.img files. Instead the boot.img in our firmware is actually a combination boot and recovery rolled into one.

    Additionally many, if not most, guides on rooting will have you using TWRP or some other recovery tool. Unfortunately at this time (to my knowledge) TWRP does not support android 12, and since the stock firmware runs android 12 that isnt really an option. One other issue is that the XT2215-4 is currently not supported by TWRP and thus has no TWRP recovery images available. I am currently working on this but as of right now have not complete them.

    Instead we will be using ADB and Fastboot utilities from the android SDK to flash the patched boot image to our phone. If you do not have the android SDK installed along with adb/fastboot, you should go do so now.

    *** IMPORTANT *** If the build of the firmware you downloaded and patched does not match that of that of your phone, STOP! Do not proceed. Instead you must use the rescue option to install the new firmware to your phone as mentioned by sd_shadow. I do not include directions on how to do this in this guide, but you should be able to easily use Motorola's "Rescue and Smart Assistant Tool" to accomplish this.




    1. Copy the boot.img from the firmware you downloaded to your phone.
      • This can be done easily by simply connecting your phone to your PC and then browsing the Downloads directory and copy pasting the file over.
    2. Install Magisk on your phone
    3. With Magisk installed and the boot.img file on copied to your phone we can now use Magisk to path the stock firmware and acquire root on our device. Press the Install button in the Magisk card (Not the "App" section)
    4. Magisk will auto detect that the XT2215-4 is a ramdisk device and therefore selects the appropriate installation type.
      • NOTE: Once patched and flashed, if you open Magisk again you will have more installation options because you will have root access
    5. Choose “Select and Patch a File” in method, and select the stock boot.img that you uploaded to your phone
    6. Start the installation by clicking "Let's Go".
      • magisk.png
      • As you can see, Magisk will patch both the boot.img and the ramdisk on your device and then save the patched image to your phone.​
    7. Copy the patched image to your PC using ADB
      • adb pull /sdcard/Download/magisk_patched_[random_strings].img
      • I didnt use ADB for this. I did it the lazy way and just browsed copied it manually by browsing to it on my PC and not using ADB to do it. But either should work.
      • NOTE: you may have to move the patched boot.img to another location on your phone so that it is accessible via ADB or regular File Explorer browsing.
    8. Put your device into flashboot mode
    9. Flash the patched boot/recovery image to your device.
      For most devices, reboot into fastboot mode and flash with command:
      fastboot flash boot C:/path/to/magisk_patched.img
    10. Our device has a separate vbmeta partition, so we need to patch the vbmeta partition with command:
      fastboot flash vbmeta --disable-verity --disable-verification vbmeta.img
    11. Reboot and voila!
    root_done.jpg
    terminal.jpg



    Now you should have root access on your Motorola G Stylus 5G 2022 (XT2215-4) phone! Remember that this will be overwritten by any OTA or firmware flashes that do not have not been patched with Magisk.

    Again I am not responsible if you brick your phone using this guide. I created once I was able to get my device successfully rooted without and issues along the way, but that does not mean it is with out risks.

    I will be working on TWRP recovery images for this model and eventually a Lineage 19 (hopefully) port.



    Take Care!
    Tokth
    3
    After root phone runs good.
    Gpu max 840mhz
    Cpu max 2208 ghz
    Gaming runs smoothly on this device
    Viper ,dolby plus all work..same drill..
    I also flashed retus retail firmware via fastboot and all is working no issues..
    Go Motorola! :)
    Screenshot_20220804-234247.png
    Screenshot_20220804-234305.png
    Screenshot_20220804-234318.png
    Screenshot_20220804-234325.png
    Screenshot_20220804-234408.png
    Screenshot_20220804-234430.png
    Screenshot_20220804-234350.png
    2
    If the downloaded firmware is a newer build number, use the rescue option to install. Using just the newer boot.img can result on issues like bootloops and touch screen not working.
    2
    Mad props, just managed to root mine, had to wait three days after receiving it to get the OEM unlock to clear and work (grayed out), wasn't sure that was really going to happen. Started messing with the phone this afternoon when I saw I could enable that setting and am now removing all the junk off this phone, getting ready to install the things I want, copy all my other phone's stuff over and start using this as my daily driver. Thanks for posting this, I was pretty heated after realizing the TCL I have previous won't root, glad to be back in control of my device and able to get rid of all the junk on it. Honestly, I was surprised when I received the Moto how much Google junk was on it, I never use any of that stuff, was amazed they are force loading EVERYTHING now, bad enough how they exploit people's data, but bloating up phones like they are now... what ever happened to don't be evil? Anyway, thanks again, really appreciate it, now to see if I can show horn Lineage on this thing!
    2
    ***This is meant to be a guide only. I am not responsible for any adverse effects rooting or attempting to root your device. It is possible to brick your phone doing this so use at your own risk! ***

    That being said, the following are the steps I took in order to root my own Motorola G Stylus 5G 2022 (XT2215-4) running android 12. NOTE: This tutorial assumes that your phone's bootloader has already been unlocked

    **Please be aware if you have taken an OTA update firmware build will not match those shown in this guide.**




    Confirm your model and Android version:

    1. On your phone go to Settings -> About Phone and tap "Model" to bring up more information about your phone's model.
    2. Confirm your phone is running android 12 and see the firmware build number curently on the phone

    NOTE: If your phone or android version do not match those shown in the images above these steps may still work, however I have not tested them, have no way of testing them, and take no responsibility for any adverse effects from performing these steps on your device.


    Confirm your bootloader has been unlocked:

    1. In Developer Options confirm that "OEM Unlocking" says "Bootloader is already unlocked" and that USB Debugging has been enabled.
      • On your phone go to Settings -> System -> Developer Options


      • If you do not see "Developer Options" in the list it does not necessarily mean that your boot loader has been unlocked (as you may not have re-enabled developer options after unlocking) but it is a red flag!
        • To enable developer options go to Settings -> About Phone and click "Build Number" 6 or 7 times until it says "you are now a developer".

    Getting the stock firmware:




    At the time of writing this guide there were no legitimate and or trustable sources to download the stock firmware for the XT2215-4 other than Motorola. If you google something such as "XT2215-4 stock firmware" you will get several different results however they are almost all clones of the same (presumably) scam website. Do yourself a favor and just.. dont! Get it directly from Motorola by doing the following steps.



    1. Download and install the Motorola Rescue and Smart Assistant Tool https://www.motorola.com/us/rescue-and-smart-assistant/p
    2. When you connect your phone to your computer it should detect your phone model and prompt you about downloading the correct firmware your phone. If not you may have to select the "Backup & restore" option in the right hand menu.
      • I had some trouble with getting my phone to connect to be recognized by the Rescue and Smart Assistant Tool and was forced to use the "Connect via WiFi" option. This option requires that both your computer and the phone be on the same network. It will prompt you to download and install the app's apk on your phone and then use the QR code on your computer to start the sync process.​
    3. Once the rescue tool recognizes your phones model it should prompt you with the firmware for your phone, and begin downloading it to your computer.​
    4. The default path it will download the firmware to is C:\ProgramData\RSA\Download\RomFiles​
    5. Once downloaded you should see a directory here called "MILANF_G_S1SD32.56_22_subsidy_DEFAULT_regulatory_DEFAULT_cid50_R3_CFC.xml"​
      • If you do not have a directory but a *.zip instead, simply extract the zip to the current director and you will then see it as mentioned above.​
      • **IMPORTANT** Make sure that the build number of the firmware you downloaded matches that on your phone.
      • The initial build for this phone is S1SD32.56-22 and we can see that the (colored portion of filename) firmware we downloaded is the same as the build currently on our phone (from "Confirming your android version" step 2 from earlier).
      • NOTE: If you have an taken OTA update or flashed a newer firmware version than you the must make sure that the firmware you are patching is the same as one currently on your phone.
    6. Open the directory and you will see the stock firmware and all of its content for the Motorola G Stylus 5G 2022 (XT2215-4) as shown below:​


    Patching the stock firmware with Magisk (Obtaining root)



    So here is were things might not be so obvious. The XT2215-4 model is an A/B device along with utilizing ramdisk. What this really means for us is that our firmware does not have separate boot.img and recovery.img files. Instead the boot.img in our firmware is actually a combination boot and recovery rolled into one.

    Additionally many, if not most, guides on rooting will have you using TWRP or some other recovery tool. Unfortunately at this time (to my knowledge) TWRP does not support android 12, and since the stock firmware runs android 12 that isnt really an option. One other issue is that the XT2215-4 is currently not supported by TWRP and thus has no TWRP recovery images available. I am currently working on this but as of right now have not complete them.

    Instead we will be using ADB and Fastboot utilities from the android SDK to flash the patched boot image to our phone. If you do not have the android SDK installed along with adb/fastboot, you should go do so now.

    *** IMPORTANT *** If the build of the firmware you downloaded and patched does not match that of that of your phone, STOP! Do not proceed. Instead you must use the rescue option to install the new firmware to your phone as mentioned by sd_shadow. I do not include directions on how to do this in this guide, but you should be able to easily use Motorola's "Rescue and Smart Assistant Tool" to accomplish this.




    1. Copy the boot.img from the firmware you downloaded to your phone.
      • This can be done easily by simply connecting your phone to your PC and then browsing the Downloads directory and copy pasting the file over.
    2. Install Magisk on your phone
    3. With Magisk installed and the boot.img file on copied to your phone we can now use Magisk to path the stock firmware and acquire root on our device. Press the Install button in the Magisk card (Not the "App" section)
    4. Magisk will auto detect that the XT2215-4 is a ramdisk device and therefore selects the appropriate installation type.
      • NOTE: Once patched and flashed, if you open Magisk again you will have more installation options because you will have root access
    5. Choose “Select and Patch a File” in method, and select the stock boot.img that you uploaded to your phone
    6. Start the installation by clicking "Let's Go".
      • As you can see, Magisk will patch both the boot.img and the ramdisk on your device and then save the patched image to your phone.​
    7. Copy the patched image to your PC using ADB
      • adb pull /sdcard/Download/magisk_patched_[random_strings].img
      • I didnt use ADB for this. I did it the lazy way and just browsed copied it manually by browsing to it on my PC and not using ADB to do it. But either should work.
      • NOTE: you may have to move the patched boot.img to another location on your phone so that it is accessible via ADB or regular File Explorer browsing.
    8. Put your device into flashboot mode
    9. Flash the patched boot/recovery image to your device.
      For most devices, reboot into fastboot mode and flash with command:
      fastboot flash boot C:/path/to/magisk_patched.img
    10. Our device has a separate vbmeta partition, so we need to patch the vbmeta partition with command:
      fastboot flash vbmeta --disable-verity --disable-verification vbmeta.img
    11. Reboot and voila!

    Now you should have root access on your Motorola G Stylus 5G 2022 (XT2215-4) phone! Remember that this will be overwritten by any OTA or firmware flashes that do not have not been patched with Magisk.

    Again I am not responsible if you brick your phone using this guide. I created once I was able to get my device successfully rooted without and issues along the way, but that does not mean it is with out risks.

    I will be working on TWRP recovery images for this model and eventually a Lineage 19 (hopefully) port.



    Take Care!
    Tokth
    Easier way to root is to get the firmware from moto site and extract the zip ..grab the boot.img and patch with magisk...

    I bought this phone now I have both 5g styluses..
    This one is better but the camera is better on the 2021 model.

    Our phone model codename is 'MilanF'