yashsingh1/xdaforums huggingface dataset:
[Moto G Power Guides, News, & Discussion] Needsimunlocked:
having trouble using the 12 boot img and getting this

View attachment 5915389

When i try to boot the phone it goes into a boot loop
[Moto G Power Guides, News, & Discussion] Viva La Android R.I.P.:
Your flash process looks normal. Is your device the xt2165-5 RETUS variant?; if so, does your installed firmware match the build for the patched boot image you flashed? The boot loop is bound to be the result of something simple. I'll try to help you get rooted successfully.
[Moto G Power Guides, News, & Discussion] Needsimunlocked:
According to the ap fastboot flash mode screen

product/variant: tonga XT2165-5 128GB PVT

and ive tried both that you linked. i am a biut confused cause android 11s patched boot dowloads as patched_boot.img but android 12 downloads as magisk_patched.img

update 12:37 pm:

just got stock os (XT2165-5_TONGA_RETUS_12_S3RQS32.20-42-10-9-2_subsidy-DEFAULT_regulatory-DEFAULT_cid50_CFC.xml.zip)

back and it booted up going to retry steps in order ill let you know.

update 12:45 pm:

tried steps again and went back into a boot loop will stay at this point and wait for ur word on what i should do nextupdate 1:22 pm :

didnt see this my build number is S3RQS32.20-42-10-9-4 Is there any way i can still root?
[Moto G Power Guides, News, & Discussion] Viva La Android R.I.P.:
Ok here's what we will do. I will get a stock boot image that corresponds with your build of the Android 12 firmware. You can patch it with the Magisk app and flash it with fastboot mode. I'll give you the steps. No worries.

I have found the issue. The boot images provided in instructions are not from the latest firmware build, thus creating a firmware mismatch and resultant boot loop. I'll post a link here for the boot image you need just as soon as I can download it.
[Moto G Power Guides, News, & Discussion] Viva La Android R.I.P.:
@Needsimunlocked here is what you need to do. I am without a functional device at the moment so you'll need to do the legwork. Use the Lenovo-Moto RSA tool as if you are going to restore your device: the tool will download the latest firmware package to your computer. The default storage location is C:\ProgramData\RSA\Download\RomFiles

In that directory you will find the stock boot image. Once you get that, let me know and we can proceed with patching & rooting.

Lenovo-Moto Rescue & Smart Assistant
[Moto G Power Guides, News, & Discussion] Needsimunlocked:
sorry for delay is this the correct download?

View attachment 5915977

View attachment 5915981

View attachment 5915983

UPDATE 4:53 PM

i believe i made a patched boot image

magisk_patched-26100_mlHVB.img

drive.google.com

i assumed you use magisk and make a patched version of the boot.img from the folder i sent a screenshot of.

it says my device is rooted

View attachment 5916007
[Moto G Power Guides, News, & Discussion] Viva La Android R.I.P.:
Congrats. Glad you were able to work it out. If it isn't much trouble, wouid you mind sharing your patched boot image? I wouid like to host it on this thread since the corresponding firmware build is the latest release. Thanks.

My Moto G Power 2022) is presently hard bricked. I have the necessary recovery tools, blank flash file, etc , needed to restore it, but I am unable to initiate BROM mode on my Tonga due to apparent user-end restrictions put into place by Motorola on recent firmware builds.
[Moto G Power Guides, News, & Discussion] Needsimunlocked:
This should be it

magisk_patched-26100_mlHVB.img

drive.google.com
[Moto G Power Guides, News, & Discussion] Viva La Android R.I.P.:
Thank you @Needsimunlocked. I will give you credit for patching and sharing the boot image file.
[Moto G Power Guides, News, & Discussion] MrElvey:
Post 66: On Metro by T-mobile but was able to flash

"Retus" firmware no issues..link

Post 68: Flashed a12 Retail over boost. Downloaded G22 system apps and changed the stupid stock CPU sets.

#80: Viva La Android's post

This is all re. earlier comment re. confusion over what seem to me conflicting messages on which carrier's phones can get new firmware and/or be rooted ... is it that the knowledge changes over time? I don't understand the extent or reason why the set of carriers whose (Motorola Moto G Power (2022)) phones can get new firmware is different from the set that can be rooted.
[Moto G Power Guides, News, & Discussion] Viva La Android R.I.P.:
No confusion. The posts may not be clear, so I'll elaborate a bit.

Many of the carrier branded models of the Tonga are not officially supported for bootloader unlocking via Motorola's unlocking portal. Unless the bootloader can be unlocked, you can neither root nor flash firmware from another model or variant. The earlier posts were referencing possible exploits for unlocking the bootloaders on otherwise officially unsupported models, I e. MTK Client (which can exploit the bootloaders on many MediaTek based devices). But again, those posts were hypothetical in nature. As it stands on the Tonga, unless the bootloader on a particular model can be unlocked -- either officially or by exploit -- neither root nor flashing a different model firmware is possible.
[Moto G Power Guides, News, & Discussion] alphaGodfather:
Was already rooted, went to the specific custom recovery found on this post/form and downloaded. Started to flash and now im hard bricked i believe lol wont turn on or connect to pc so be wary on this. rooting was fairly easy but finding a custom recovery has proved to be futile. justa word of warning, id wait a bit longer for more research to be done on the Moto G power 2022 tonga. magisk root and most roms are ok tho
[Moto G Power Guides, News, & Discussion] Viva La Android R.I.P.:
These newer Motorola devices are definitely easier to brick than the Moto devices of yesteryear. Luckily, a developer has created a Windows client restore tool which includes support to recover the Tonga from either a soft or hard brick. Here is a link to the tool and instructions.

{Mod edit: Link to paid services website removed. Oswald Boelcke, Senior Moderator}

I've been out of the loop for a while because I no longer have an operable device. I was not aware that a custom recovery had been ported or built for the Tonga. Where did you find it?
[Moto G Power Guides, News, & Discussion] Viva La Android R.I.P.:
Because I do not presently have a working device, I need a Tonga user to confirm the most recent firmware build version. The Android 12 patched boot image I have linked in the OP is from firmware build S3RQ32.20-42-10-9-4. Is this still current?
[Moto G Power Guides, News, & Discussion] WoKoschekk:
can confirm that S3RQ32.20-42-10-9-4 is latest build.
[Moto G Power Guides, News, & Discussion] WoKoschekk:
According to this page there is no further OTA available.
[Moto G Power Guides, News, & Discussion] Viva La Android R.I.P.:
Thank you @WoKoschekk for verifying that info. Much help.
[Moto G Power Guides, News, & Discussion] Viva La Android R.I.P.:
@WoKoschekk, I would like to ask another big favor of you

Because I do not have a functional Tonga device at this time, could you let me know when an OTA is released as an update to the current firmware build of S3RQ32.20-42-10-9-4? I would like to keep this guide current with a patched boot image that corresponds with the latest firmware version available. Thanks.
[Moto G Power Guides, News, & Discussion] WoKoschekk:
I don't have a Tonga. But just follow the link and click the green botton. If an new OTA update is available you will be redirected to its download page. AFAIK that's Motorola's official update server.
[Moto G Power Guides, News, & Discussion] Viva La Android R.I.P.:
Thanks for the info @WoKoschekk. This is exactly what I needed. 👍
[Moto G Power Guides, News, & Discussion] EdjicatedJuan:
Can I do this on this or no I don't know what the difference is
[Moto G Power Guides, News, & Discussion] EdjicatedJuan:
@WoKoschekk
[Moto G Power Guides, News, & Discussion] EdjicatedJuan:
@Viva La Android
[Moto G Power Guides, News, & Discussion] WoKoschekk:
you need build no S3RQ32.20-42-10-9-4
[Moto G Power Guides, News, & Discussion] EdjicatedJuan:
How do I go from what I have to that ?
[Moto G Power Guides, News, & Discussion] EdjicatedJuan:
View attachment 5957835there's no more updates . My phone is unlocked
[Moto G Power Guides, News, & Discussion] Viva La Android R.I.P.:
The Lollinet repo is now hosting firmware build S3RQS32.20-42-10-9-6, which appears to be the lastest build.

lolinet mirrors - firmware, software, iso etc.

lolinet mirrors - powered by h5ai

mirrors.lolinet.com

I'm downloading the firmware now, from which I will extract the boot image, patch it with Magisk v26.1, and then link the patched boot image in the OP.
[Moto G Power Guides, News, & Discussion] EdjicatedJuan:
Is that gonna help me root my phone finally?
[Moto G Power Guides, News, & Discussion] Viva La Android R.I.P.:
If you have the xt2165-5 RETUS Tonga, and if you're running on the most recent firmware build (the one I linked above), this should help you root your device.
[Moto G Power Guides, News, & Discussion] Viva La Android R.I.P.:
Firmware build S3RQS32.20-42-10-9-6 brings the June 1, 2023 security patches. I am patching the boot image now with Magisk and will have the thread updated shortly.
[Moto G Power Guides, News, & Discussion] EdjicatedJuan:
I can't update my phone anymore so I guess I'll leave it up to yall thank you for your time.
[Moto G Power Guides, News, & Discussion] Viva La Android R.I.P.:
Of course you can update it. Manually flash the firmware package with fastboot, or use the Rescue and Smart Assistant by Lenovo.
[Moto G Power Guides, News, & Discussion] Viva La Android R.I.P.:
The OP has been updated with the Magisk patched boot image from the latest firmware build.
[Moto G Power Guides, News, & Discussion] Viva La Android R.I.P.:
@EdjicatedJuan, if you have a Windows PC or laptop, use the Lenovo-Moto Rescue & Smart Assistant (RSA). It will download the latest firmware build and update your device. Here is a link to download the latest RSA software as well as a user guide.

Lenovo-Moto Rescue & Smart Assistant (RSA)

Pretty straightforward to use. Just pick the Rescue option and follow the prompts.
[Moto G Power Guides, News, & Discussion] EdjicatedJuan:
Thank you
[Moto G Power Guides, News, & Discussion] Viva La Android R.I.P.:
Anytime. Get your firmware up to the latest build and we will get you rooted.
[Moto G Power Guides, News, & Discussion] Yeedatoy:
You can always update it. Just click uninstall in magisk, click restore image and than the ota update will work. when it's done installing and prompts you to reboot, go to magisk and click install and select patch slot for ota updates. When it's done patching it, reboot into the update and you're still rooted
[Moto G Power Guides, News, & Discussion] Viva La Android R.I.P.:
His device isn't yet routed. He was trying to update his firmware to the latest build in order to flash the correct patched boot image. For whatever reason, and although running an older build, the System Update option in device settings would not prompt for an OTA.
[Moto G Power Guides, News, & Discussion] Viva La Android R.I.P.:
I do need to add this info to the OP as instruction for members who want to quickly unroot, install the latest OTA and then re-root their devices. I'll credit you for the info in the OP. Can you confirm that this works on the Tonga without any issues? Thanks for your feedback.
[Moto G Power Guides, News, & Discussion] zfk110:
how did you remove the bloatware? I tried the root browser but it kept failing to delete

I tried this

adb shell pm uninstall -k --user 0 com.motorola.ccc.ota

adb shell pm uninstall -k --user 0 com.motorola.android.fota

adb shell pm disable-user --user 0 com.motorola.ccc.ota

adb shell pm disable-user --user 0 com.motorola.android.fota

but it still didn't work. Failure: package is non-disable
[Moto G Power Guides, News, & Discussion] Viva La Android R.I.P.:
Install this as a Magisk module. Reboot device. Use a terminal emulator app and execute these commands.

su
RO2RW

Then follow the prompts. This script essentially builds a complete super.img which will mount as R/W once flashed via fastbootd mode. All encompassed partitions (/system, /vendor, /product) will mount as R/W accordingly. There are also options to disable force encryption and verity. This isn't my work and all credit for this module goes @lebigmac (account currently disabled).

File on MEGA

mega.nz

Although the thread is now closed from further posting, it should provide some guidance if needed. https://xdaforums.com/t/closed-univ...read-write-super-partition-converter.4247311/
[Moto G Power Guides, News, & Discussion] Viva La Android R.I.P.:
Glad to hear that. Thanks for your input and your kind words.
[Moto G Power Guides, News, & Discussion] Yeedatoy:
Use Universal Android Debloater. It's a windows GUI that lists the importance and functionality of each app, allows the option to debloat as well as reinstall. The ones you listed are likely protected and can only be removed with root. You can use the overlayfs magisk module to mount the system as R/W but it's an overlay of the real filesystem so if you screw up it just disables itself. Just use the app Hail to freeze those. Or you can use Dhizuku, which is basically Shizuku but you enable it as a device owner so it starts on its own at boot and remains on. Hail allows Dhizuku integration so those apps will never run. Since you are rooted, I would also suggest Thanox pro, which can be installed as either an xposed module or a magisk module and can freeze apps using the disable method or the suspend method. Suspend is nice because you can launch the apps when you click the icon so it's great for apps you don't use often or don't want running in the background. It can also disable any service, receiver, wakelock and more.
[Moto G Power Guides, News, & Discussion] Viva La Android R.I.P.:
I can confirm that the Android Universal Debloater utility for Windows does an excellent job of disabling unwanted system apps without breaking the integrity of the /super partition or causing a failure in the boot chain. It is the first solution I used to debloat the Android 12 based Stock OS for the Tonga. For purposes of simplicity and efficiency, it is perhaps the best option for disabling (via ADB commands, without root) and uninstalling (with root access) bloatware.

Another great solution, albeit more invasive and advanced, is the RO2RW Magisk module, which is essentially a terminal root script that creates a backup of your /super partition (as super.img) and then applies a number of patches to fstab, the vbmeta files, and other Android components in order to force R/W mounting of /super and its encompassed logical partitions (/system, /product, /vendor). The script also includes options to resize the logical partitions within /super, disable force encryption of /userdata, disable dm-verity/AVB, and to actually remove system apps during the running of the script. RO2RW will then rebuild the patched and modified super.img in sparse image format which, in turn, can be flashed via fastbootd mode. Once flashed, your /super partition and all logical partitions therein will mount as R/W to allow for permanent modifications such as debloating, build.prop editing, the installation of system frameworks, etc.
[Moto G Power Guides, News, & Discussion] Yeedatoy:
Is that still working? That's definitely the best solution to the R/W issue though a bit more advanced. Last I looked there were some changes done to it, perhaps even a complete rewrite. On another note, I'm extremely impressed with how many updates Motorola has rolled out to this device. Back to debloating, that leads me to mention the fact that making sure anything responsible for system updates should be left in tact unless someone is avoiding updates intentionally, but I've been happy with the updates and don't see any reason to avoid them aside from the Widevine issue after moving to a12. That pisses me off quite a bit
[Moto G Power Guides, News, & Discussion] TRSmithOBX:
Has anyone compiled a new boot img for the most recent update? I had to recover my device using the motorola recovery program and there is a newer firmware version. I tried using the most recent boot.img but it made my bluetooth and wireless connections break.
[Moto G Power Guides, News, & Discussion] TRSmithOBX:
I figured out how to extract the boot.img from the newest firmware,

XT2165-5_TONGA_RETUS_12_S3RQS32.20-42-10-9-8_subsidy-DEFAULT_regulatory-DEFAULT_cid50_CFC

I patched it and installed and everything seems to be working well. Attached the patched boot.img in case anybody wants it.
[Moto G Power Guides, News, & Discussion] Viva La Android R.I.P.:
Sorry for the late reply in chiming in. As stated in the OP under the heading ANDROID VERSIONS & FIRMWARE BUILDS, the patched boot image in my downloads section is from the latest firmware build, XT2165-5_TONGA_RETUS_12_S3RQS32.20-42-10-9-6. I try to update the bout images on the same day the latest firmware is hosted on Motorola's software support servers.
[Moto G Power Guides, News, & Discussion] zfk110:
UAD wasn't able to take these off

com.motorola.ccc.ota

com.motorola.android.fotaView attachment 6002571

Im going to try RO2RW-TEST-3.7.3.0s, so when I get to this, what should I do?

I found much easier way, I flashed this module here

Releases · HuskyDG/magic_overlayfs

Make system partition become read-write (it is also possible without Magisk) - HuskyDG/magic_overlayfs

github.com

then I was able to remove those apps using the root browser for good.
[Moto G Power Guides, News, & Discussion] Viva La Android R.I.P.:
I have not yet tried that particular module. Does it actually remove the preinstalled apps from the OS, or does it systemless-ly disable these apps?
[Moto G Power Guides, News, & Discussion] zfk110:
It enabled read and write then you can just remove it using the root browser manually for those apps which you cant take them off by adb

@Echo off

adb devices

adb shell pm uninstall -k --user 0 com.wssyncmldm

adb shell pm uninstall -k --user 0 com.microsoft.office.outlook

adb shell pm uninstall -k --user 0 com.spotify.music

adb shell pm uninstall -k --user 0 com.microsoft.office.officehubrow

adb shell pm uninstall -k --user 0 com.samsung.android.app.spage

adb shell pm uninstall -k --user 0 com.samsung.android.voc

adb shell pm uninstall -k --user 0 com.samsung.android.galaxy

adb shell pm uninstall -k --user 0 com.samsung.android.galaxycontinuity

adb shell pm uninstall -k --user 0 com.amazon.mShop.android

adb shell pm uninstall -k --user 0 com.hancom.office.editor

adb shell pm uninstall -k --user 0 com.lookout
[Moto G Power Guides, News, & Discussion] JonGeorgeXz:
I followed this guide and ran into some ridiculous issues.

I have the XT-2165-5

First off, the patched boot provided disabled my wifi. Phone was rooted, but Wifi would not turn on at all. Not sure why.

I had to use the "fastboot getvar current-slot" command to identify my boot partition, because using "fastboot flash boot patched_boot.img" kept returning an "Invalid partition name".

I patched my own boot.img, retrieved from the Rescue and Assistant program via my Win10 PC. I was using the most current version of Magisk ~26.xxx at this point. And wouldn't you know... all my flashes to my patched boot did absolutely nothing.

The fix I found was rolling my Magisk back to v24.xx and patching with that. It worked. Then I updated everything in Magisk after the root took. Everything works fine now!

I just wanted to post some of my experiences in case someone else runs into similar issues.

Thanks and great guide! This was my first attempt at rooting a device without TWRP. Probably the tenth Moto device I have ever rooted.

I'm a huge, huge Moto fan. I particularly love my Moto One Hyper but the screen is super broken now (black blob in the center of the screen) but I still use it. Apparently finding a screen replacement online is impossible. Maybe I have to send it back? Questions for a different thread. Sorry.

Happy rooting! The XT-2165 is an EXCELLENT phone, easy to unlock, and very stable after root!
[Moto G Power Guides, News, & Discussion] Yeedatoy:
System updates will always appear while rooted but the first thing that will happen is they fail verification. As soon as you open magisk and hit uninstall, then click restore image, the system update will work without having to do anything further such as reboot. All firmware is the same, unlike older moto devices. They all have the same bloat as well as carrier apps for every supported carrier. Boost mobile is the easiest to unlock the bootloader on a side from the carrier unlocked version. All models can be unlocked via a modded MTK tool but I cannot give instructions as I'm completely unfamiliar with that tool in its entirety. This was proven my members of the A-team telegram group.

The lasted update should be the August Security patch, Android 12 S3RQ

You can use a script that gets entered in the app Pydroid3 to undervolt the small CPU cores.

It's located here:

GitHub - rzc0d3r/CPU-Voltage-Control: Tool for modern android smartphones for mediatek processor voltage control (Under/Over volting)

Tool for modern android smartphones for mediatek processor voltage control (Under/Over volting) - rzc0d3r/CPU-Voltage-Control

github.com

To avoid issues, I would suggest always using the latest magisk delta. It is synced with official magisk but has many improvements and is maintained by Husky, the dev who has taken over much of the work since JohnWu began working at Google. The first flash of the rooted boot image may take 5 minutes to boot or even bootloop several times before starting. This is likely related to encryption
[Moto G Power Guides, News, & Discussion] lolf6985:
Created an account to say thank you for uploading your file. I've been trying for the past couple hours and the ones provided also kept shutting down my wifi for no reason.
[Moto G Power Guides, News, & Discussion] lifeonlegendary:
this method is still incompatible with tracfones?
[Moto G Power Guides, News, & Discussion] Badger50:
Announcement​

It is with deep sadness that I'm reporting the passing of our friend and colleague Viva La Android R.I.P. aka Shane. He asked me before he passed to let his users know how much he appreciated your support for what he loved doing on XDA.

I will miss my friend very much.😑

-Regards to all: Badger50
[Moto G Power Guides, News, & Discussion] davidbauer:
Best wishes to his family and friends....
[Moto G Power Guides, News, & Discussion] davidbauer:
I am having issues with tracfone. not working rebuild boot.img from RSA Download. No go.
[Moto G Power Guides, News, & Discussion] htc-8925:
this is the first i'm hearing of this and I am literally typing underwater right now. :'( Shane (Viva La Android) was instrumental to development and hacking and helped a

LOT

of people figure out these stupid Q Link tablets and be able to make them pretty usable by today's ****ty $10 tablet standards. I actually started reaching out to friends and acquantences that I knew had one of these things and doing the whole process for them, and I ended up being given two to play with myself as well!

I wish I could have gotten to know him a little better, but he will certainly be very, very missed by me and this community.

"Sleep well friend, until we see you again"

and @Badger50; My condolenses on the loss of your friend.
[Moto G Power Guides, News, & Discussion] ericenlow87:
I don't know if it's appropriate to do this but I successfully used this guide to root my XT2165-5. I used the rescue and recovery to get the stock ROM, Boost Dish US, Android 12, fully updated and current today. This is the name of the file from Lenovo server: TONGA_G_S3RQS32.20_42_10_17_subsidy_BOOST_DISH_SHORT_regulatory_DEFAULT_cid50_CFC.xml.zip

It works beautifully thank you the guide is flawless :)
[Moto G Power Guides, News, & Discussion] BigB_:
Hi There,

It's a wonderful comprehensive instruction, I faced a problem while I was following, the boot image of Android 11 is not the in dropbox while I was trying to download. Can you send me one copy please. Thanks B.