yashsingh1/xdaforums huggingface dataset:
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] mistersmee:
This build is now official.

Check out https://twrp.me/motorola/motorolamotog9power.html

Team Win Recovery Project 3.x, or twrp3 for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.​

#include <std_disclaimer.h>
/*
*
* We are not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this recovery
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at us for messing up your device, we will laugh at you.
*
*/

XDA:DevDB Information

TWRP, Tool/Utility for the Motorola G9 Power

Contributors

mistersmee

Source Code:

Device tree: https://github.com/teamwin/android_device_motorola_cebu

Kernel sources: Prebuilt (for now) [Note: Thanks @fddm, for your patched kernel!]

https://github.com/mistersmee/kernel_motorola_sm6115

TWRP sources: https://github.com/TeamWin/android_bootable_recovery

Telegram group: https://t.me/g9power (English language)

Version Information

Status: Stable

Created 20-05-2021
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] mistersmee:
This is the list of things that need to work, as per TWRP's FAQs.

I will update as I find stuff that works, and as you guys tell me what works.

Blocking checks
- [X] Correct screen/recovery size
- [-] Working Touch, screen
- [X] Focaltech touchscreen panel (confirmed working)
- [X] Novatek touchscreen panel (confirmed working)
- [X] Chipone touchscreen panel (confirmed working)
- [X] Backup to internal/microSD
- [X] Restore from internal/microSD
- [X] reboot to system
- [X] ADB

Medium checks
- [X] update.zip sideload
- [X] UI colors (red/blue inversions)
- [X] Screen goes off and on
- [X] F2FS/EXT4 Support, exFAT/NTFS where supported
- [X] all important partitions listed in mount/backup lists
- [X] backup/restore to/from external (USB-OTG) storage (not supported by the device)
- [X] backup/restore to/from adb (https://gerrit.omnirom.org/#/c/15943/)
- [X] decrypt /data
- [X] Correct date

Minor checks
- [X] MTP export
- [X] reboot to bootloader
- [X] reboot to recovery
- [X] poweroff
- [X] battery level
- [X] temperature
- [X] encrypted backups
- [X] input devices via USB (USB-OTG) - keyboard, mouse and disks (not supported by the device)
- [X] USB mass storage export
- [X] set brightness
- [X] vibrate
- [X] screenshot
- [X] partition SD card

If it isn't filled, it means it hasn't been checked yet. 'X' denotes that it is working. '!' denotes that it is not working.
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] mistersmee:
Note: As I mentioned in the initial post, I'm using the prebuilt kernel for now, although the kernel sources have been released. For the long-term, using the prebuilt kernel is not ideal. I have been working on the kernel sources, but as of this writing, I have been unable to get them to boot. If any of you have experience working with Android kernels, please let me know, PM me, etc.

The kernel repo I'm working on is here: https://github.com/mistersmee/kernel_motorola_sm4250

PRs are always welcome.

Edit: Nevermind, I got them to boot.
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] mistersmee:
A few notes on the image:

1. Yes, VBMeta shows 0MB in TWRP. It is intentional, nothing is wrong with the build, or your phone.

VBMeta as a partition, is only a few bytes in size, 65536 bytes, which is 65 KB, which is 0.06 MB, to be exact. TWRP displays sizes in MB, and probably rounds those decimals up, hence a size this small registers as 0. However, it is still an important partition, and it is in the stock fstab, so it cannot be left out.

2. The above point applies for "Prodpersist" as well. Although it is not as small as VBMeta, it is still just a few KBs in size, Again, it is in the stock fstab, so it cannot be left out.

Another probable explanation as to why Prodpersist shows up as 0MB, is that it is actually related to the /product partition. Due to the way Android 10, and dynamic partitions work, basically, the /system, /product, and /vendor have been subsumed under one big "super", which is incidentally read-only. Those individual partitions can only be mounted if the super partition as a whole is mounted, and TWRP does not mount that partition while booting, hence why it probably shows up as 0MB.

In any case, Prodpersist is actually not *that* important, so it doesn't *really* matter anyways.

3. As I said in the last paragraph above, Android 10 changed the way the /system partition works. Because of this, most modifications that in earlier Android versions we could do in TWRP, think flashable zips that change your boot animation, or anything that modified the system partition, will not work.

The only way to do those kinds of mods is through Magisk.

4. Yes, the image is 64MB in size. But, the stock recovery image is also 64MB.

The reason as to why it is 64MB, is because AVB support is enabled. AVB is, of course, Android Verified Boot, which allows GSI support, which should theoretically mean support for flashing GSI images in this TWRP build.

Without AVB support, the image is around 20MB, which is the more "normal" size of TWRP images of the past.
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] Unfocusedobsessiv:
I'm a little late but. Thank you very much
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] mistersmee:
You're welcome!

Also as a general note to everybody:

If you updated to Android 11 and find that TWRP is not working for you i.e. it doesn't boot, nothing is wrong with your phone/you didn't mess anything up.

The build isn't working due to the Android 11 update, but I'm currently working on it.
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] bhavesh.kale.73:
still waiting for twrp for android 11
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] mistersmee:
No ETA except to say I'm working on it. It depends on external factors, i.e Motorola releasing the updated kernel sources which they haven't done as of this writing.
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] arkansawdave74:
Hello everyone. I've never had any luck restoring twrp backups of stock on encrypted A/B phones. Does anyone know if that's possible nowadays? I'm still on 10 too because of a Real Racing 3 bug that prevents it from loading in 11.

And a big thank you to you, @mistersmee . Your twrp is the reason I chose this phone.
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] mistersmee:
You're welcome! And yeah, I had no problem backing up and restoring /data on cebu, so not sure what's going wrong for you.
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] arkansawdave74:
Actually, I haven't tried in a couple years...Not since the G7 Power (Ocean). We had a terrible time trying to restore stock backups on that phone. I haven't even looked at the partition list in the backup section of your TWRP, but I'm about to. What partitions besides /data did you backup and restore successfully, if you don't mind my asking.
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] mistersmee:
Just about every partition that is available to backup/restore. Though frankly, backing up any partition other than /data is a waste of time and space, we don't actively modify them, and they are available in the stock firmware file if you manage to mess them up anyway.
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] arkansawdave74:
Oh my gosh why didn't I think of that before.

The Moto G7 Power was the first a / B phone any of any of us had had back then. We tried and tried and tried many different ways to restore a backup but we never thought of that, which is surprising, but we were trying to make a complete backup that you could restore all from TWRP like in the old days. System, Boot, and data.

Anyway, I went to flash Resurrection Remix Q GSI and made it back up of stock first just /data. Restored just fine after the GSI failed to boot. You really made my Android experience so much better.

Thank You.
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] arkansawdave74:
Hey guys. Just wanted to mention that I'm trying Android 11 Official GSI Customs coming off a stock 10 and TWRP still boots fine while running the 11s.
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] mistersmee:
That's great to hear.
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] mistersmee:
New release

TWRP 3.6.0_11

This build supports the Android 11 stock ROM. Unknown if it is backwards compatible with stock Android 10. Until confirmed that it is backwards compatible, people running 10 for whatever reason should stick to the 3.5.2 image, or update to 11 and run 3.6.0.

Everything is confirmed working. Download links are on the TWRP website, as always.
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] arkansawdave74:
Is your new build official as well?

EDIT. Nevermind. I missed the last line.
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] mistersmee:
Yes, it is official.
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] sirjuncos:
Booting twrp-3.6.0_11-0-cebu.img boots ok TWRP but touch freezed, any idea?
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] mistersmee:
Try this image: https://build.twrp.me/twrp-3.6.0_11-0-cebu.img
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] sirjuncos:
Thanks for your answer! Same error 😔

I've also tried with previous version but it doesn't boot TWRP and goes back to fastboot screen
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] mistersmee:
Can you give the output of

adb shell ls /sys/class/touchscreen

when you are in Android?
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] sirjuncos:
Sorry for the delay, I'll send you what you asked for right away. Thanks a lot!
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] sirjuncos:
In boot mode:

C:\temp\platform-tools>adb shell ls /sys/class/touchscreen

* daemon not running; starting now at tcp:5037

* daemon started successfully

adb.exe: no devices/emulators found

In Android:

C:\temp\platform-tools>adb shell ls /sys/class/touchscreen

adb.exe: no devices/emulators found

I am doing something wrong?
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] mistersmee:
Are you sure you have developer options and USB debugging enabled?

You need to connect the phone to your PC by USB, and unlock the screen too, for it to work.

And it won't work in boot mode, only in Android.
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] sirjuncos:
Now it worked!

C:\temp\platform-tools>adb shell ls /sys/class/touchscreen

ICNL9911C

Thanks!
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] mistersmee:
OK, so a Chipone touchscreen, I can work with that, thanks. But it's weird, someone had reported it working before.
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] sirjuncos:
so you could make me work twrp to install the rom? thank you!!!
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] sirjuncos:
Do you know if there's any way to unlock bootloader without erasing all device's data?
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] mistersmee:
No, unfortunately, there is no such way. How did you manage to flash/try TWRP without unlocking bootloader?
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] sirjuncos:
I just deleted everything thinking that the previous one was fine. And since it didn't work, I locked it again and configured everything with the stock image that I already had. I shouldn't have locked it again!
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] mistersmee:
Oh shucks. Bad luck, mate.
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] sirjuncos:
Later i think i'll do the unlock, now i don't have time to install everything again just to test if it works xD
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] sirjuncos:
thank you! I appreciate the time you are taking to help me!
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] mistersmee:
TWRP 3.6.0_11-1

This is a point release fixing some cebu-specific issues.

The main one is, Chipone touchscreens have been fixed and confirmed working.

Also, there is now (theoretically, I haven't tested it myself, but other devices have reported it as working) support for Android 12 /data decryption, but only for "Swipe" or "None" screen locks.

Password/Pattern/PIN decryption for Android 12 is not working in TWRP itself yet.

Download links on the TWRP website, as always.
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] arkansawdave74:
Hello @mistersmee . I broke my cebu and I just got the G Power 2022 (tonga). I was wondering if you be willing to help me to build it a twrp. I don't think I'd need too much help, I just don't know where to find the tree sources for a device this new.
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] mistersmee:
I'm sorry, but I'm really busy with some personal stuff right now.
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] mistersmee:
TWRP 3.6.1

New release, no device-specific changes, only the TWRP changes listed on the TWRP release notes. Download links are at the TWRP website, as usual.
[Moto G9 Power ROMs, Kernels, Recoveries, & Other D] zhengz:
Hello.

Failed to mount '/vendor' (Block device required)

Failed to mount '/product' (Block device required)

any solution?
[Xiaomi Mi 11 Ultra] bob8x:
Seems like that the functionality in the settings menu is only working from lockcreen and not on launcher...

Is there a way (preferably with the stock launcher) to do it? many apps break the lock screen/fingerprint...

I'am on miui 12 global, all stock: got the phone yesterday from offiial MI store Italy...
[Xiaomi Mi 11 Ultra] themissionimpossible:
I assigned a long press on the Home button to turn off the screen.

Search settings for assignable button functions.

Vai in Impostazioni Aggiuntive - Collegamento tasti.
[Xiaomi Mi 11 Ultra] Allexsander:
Here on the Mi Note 10 (I'm waiting for my Mi 11 Ultra to arrive) it doesn't work either (for after the last update). And gestures also don’t work on other launchers (only in stock).
[Xiaomi Mi 11 Ultra] Kluxe Nobody:
I simply have a widget on the home that locks the screen when pressed. Look in the widgets, you'll find it. Not the best solution but it works.
[Xiaomi Mi 11 Ultra] speedtripler:
When you get to 12.5.4/5/6 the double tap to lock screen works flawlessly
[Xiaomi Mi 11 Ultra] Raj kiran:
Not working for me in 12.5.6
[Xiaomi Mi 11 Ultra] saisannihith:
Download Poco launcher. It has double tap to lock screen option in settings:

POCO Launcher 2.0 - Customize, - Apps on Google Play

🔥Customize your unique Home screen. Smaller, lighter, faster, and safer！

play.google.com
[Xiaomi Mi 11 Ultra] Raj kiran:
Works in Poco Launcher but Miui gestures does not work
[Xiaomi Mi 11 Ultra] katerpanne:
Xiaomi decided to implement full gestures only in stock launcher not in system UI and not in poco launcher within Android 11

Workarounds:

Install from GooglePlayStore:

Infinity Gestures

Fluid Navigation Gestures

Use CustoMIUIzer

Laucher -> Gestures -> there you have a lot of options
[Xiaomi Mi 11 Ultra] bob8x:
I heard about that, but for once I wanted to stay with stock launcher, annoyed too much in the past with nova launcher on NOT rooted phones ( on root phone was great )

I'm waiting it, I just want to try their desktop mode

I managed to "solve" for the moment this way, will wait and hope to fix this in the next release...
[Xiaomi Mi 11 Ultra] Allexsander:
Thanks for the tip. I'm using Fluid Navigation Gestures and it's working perfectly !!
[Xiaomi Mi 11 Ultra] JazonX:
My Fluid Navigation gestures app dies after a while.

As in the gestures stop working (After a few minutes, or after a reboot), so had to switch to Edge Gestures.

Had Autostart enabled, Battery features disabled etc..

But didnt help. Is there anything additional that you did ?
[Xiaomi Mi 11 Ultra] wilpang:
Double tap works fine for Mi 11 Pro on 12.5.7 (same firmware) did not know it was available until I went through the settings again.
[Xiaomi Mi 11 Ultra] speedtripler:
It worked fine even on 12.5.4 as well
[Xiaomi Mi 11 Ultra] wilpang:
Weird I couldn't get it to work, I was double tapping on an empty space in home screen and it never worked except the lock screen.
[Xiaomi Mi 11 Ultra] Allexsander:
It had stopped here once, then I put it in the control center (status bar), left it without the battery saving restriction and activated the automatic start. After that it hasn't stopped yet.
[Samsung Galaxy J5 Questions & Answers] YLNdroid:
Hello everyone.

:)

I have a Samsung Galaxy J5 2016 SM-J510FN, running on stock Nougat (7.1.1) firmware.

Can anyone suggest or recommend respective flashable mods, or Magisk / Xposed modules to achieve the following functionalities, whilst continuing to use stock firmware?​

Disable SMS-to-MMS conversion​

Facilitate call recording​

:unsure:

I await your valuable replies.

(y)

​
[Android Auto General] mosheva:
Hi,

I'm having a lot of pain with my POCO X3 and Android Auto hope to find help here...

1. I need to connect my phone twice in order to connect to AA. I need to disconnect it twice from my car multimedia port side, if I unplug it from my phone side (USB-C) it takes more than 2 times to connect to AA.

2. After a phone call any audio (Spotify, streaming radio, other phone call) is routed to my phone speaker, I need to disconnect and connect my phone (twice) to solve it.

3. GPS signal is with a delay

4. Incoming call - it takes forever to show the call information (who's calling me).

5. Selecting apps via AA, very slow response time, even in app, for example I'm trying to add a report via Waze it's almost impossible, trying to make a phone call while using Waze.

I'm getting the same results in 2 different cars, I've tried different cables... I don't use Dual apps which I know is making trouble with AA.

I've tried Apple Carplay and it's working very well and very smooth.

Hope you guys will be able to help me..
[Android Auto General] brackenhill_mob:
Wow, I'm not the only one with your point 2! I thought it was my setup.

I'm running stock Android 10 MIUI rooted with Magisk.

@mosheva what's your setup so we can try and debug this?
[Android Auto General] mosheva:
I'm on stock Android 10 MIUI 12.0.8 not roored..

what about the other issues? your Waze is running correctly? You plug your device only 1 time?

So frustrating...
[Android Auto General] brackenhill_mob:
Waze, maps, etc work fine. It's just the sound direction after a phone call that is the issue for me (your point 2)
[Android Auto General] mosheva:
Thanks, the 2 times to connect is one of my most frustrating issues...

What is your setting for the usb? File transfer? MTP? Do you use special cable?
[Android Auto General] brackenhill_mob:
File transfer. In the car I use a micro usb cable with a usb c adapter.
[Android Auto General] mosheva:
I will try it...
[Android Auto General] akocli:
Anyone got the issue 2 solved? I've been trying so hard on getting it solved it's so frustrating :(
[Android Auto General] brackenhill_mob:
For those of us having issues with sound redirection after a phone call, are you rooted? I ask because I'm trying to narrow down the route to a possible solution. If we are rooted, it becomes easier. I'm not worried about using 3rd party ROMs because I had this issue on stock.

I'm rooted
[Android Auto General] valeri_s_k:
Seems it is not issue on POCO only. I have the same sound redirection with Mi11, stock global rom, not rooted. Bootloader is not unlocked yet, so once done, I am planning to flash xiaomi.eu rom as it seems the issue is fixed there.
[Android Auto General] brackenhill_mob:
I was on the EU ROM and it wasn't fixed for me :( Hope you have better luck
[Android Auto General] mosheva:
I guess it's Xiaomi issue and not just POCO phone issue...

I'm using an old iPhone as a secondary phone while I'm driving just for the Apple CarPlay as all of my other old working phones are Xiaomi... :(
[Android Auto General] valeri_s_k:
EU weekly Rom solved the issue - first clean flashed 21.5.26/27, now updated to 21.6.30. All is OK
[Android Auto General] mosheva:
IF I'm on a regular MIUI rom 12.0.1.0 RJGMIXM can I flash the EU rom over? or is the EU rom is a different rom then the original...
[Android Auto General] bufonius:
Hi, yesterday I installed the 12.5.9 eu version, confirm that the problem of the sound that is passed to the mobile after a call, continues to occur.
[Android Auto General] bufonius:
Today I installed version 21.6.30 as commented by the colleague and they have effectively solved the problem of the sound that jumped to the phone after a call.

Great!
[Realme X7] BISWAJEET1998:
I am unable to uninstall theme store and music app from my realme x7 using adb tool.Can anybody help me regarding the updated cmd commands
[Realme X7] anu27893:
Run adb shell

Then run

Pm uninstall -k - - user 0 package name
[Tilt, TyTN II, MDA Vario III General] ayuluv:
i am a newbie to this uploading of new rom with my tytn2

Can anyone pls guide me on which rom to choose example dutty's or hyperdragon?

How do i come about in installing it?

What is Hardspl cause i heard that if i dun install hardspl before flashing any rom ill get a bricked set!

PLs help me and thanks for the wonderful people here
[Tilt, TyTN II, MDA Vario III General] ChumleyEX:
All the ROMs are good so just pick one you like.

As for everything else, I came across this gem of a thread about a year ago. It still seems to work and it has EVERYTHING you need.

Awesome huh

http://xdaforums.com/showthread.php?t=397434

shhhh don't tell anyone!
[Tilt, TyTN II, MDA Vario III General] prabh:
Check the wiki...all your questions are already answered there :)

Edit : - got beaten to the punch :D
[Tilt, TyTN II, MDA Vario III General] stesul411:
Please read the WIKI and all the stickies, they will guide you through the steps for installing hard SPL, unlocking and upgrading your device.

As for choosing which ROM to upgrade to, that will be personal choice for you. Again, read the threads on your selected ROMs and make your final choice from that. Or better yet, flash one and use it for a few days, then flash the other and see which one works best for you.
[Tilt, TyTN II, MDA Vario III General] ChumleyEX:
OMG Jimmy is around and I feel like this thread will be closed.

Jimmy hardly lets me have fun anymore. He's all serious now with his MOD rights.

Whad up Jimbo
[Android Head-Units] Chazd62:
Just wondering if anyone can halp. When i try to buy apps on an atoto a6 through google play it says error transaction was declined. So i tried updating payment info and when i do it says added features unavailable on this phone this may be becaise phone is rooted or altered in some what. Just wondering if anyone knows what i can do thanks