yashsingh1/xdaforums huggingface dataset:
[Moto G Power ROMs, Kernels, Recoveries, & Other De] alexp1289:
Snip
[Moto G Power ROMs, Kernels, Recoveries, & Other De] alexp1289:
Yeah I would personally like to learn how to build TWRP and lineage OS for unsupported devices so that I could fill that role. But I haven't come across anybody that has been willing to mentor me in that regard. I'm pretty familiar with Linux and whatnot but I haven't been able to figure it out on my own yet.
[Moto G Power ROMs, Kernels, Recoveries, & Other De] Beetle84:
Boot it first to test it (fastboot boot xxxx.img) for me it works great on g8 and g8 power
[Moto G Power ROMs, Kernels, Recoveries, & Other De] Thomas0430:
yes everything works just unlocked the bootloader prebooted the image before installing then found a android 12 beta 5 rom for it :)
[Moto G Power ROMs, Kernels, Recoveries, & Other De] Thomas0430:
https://t.me/MotoUpdates/1118 <-- link to the rom for those interested
[Moto G Power ROMs, Kernels, Recoveries, & Other De] alexp1289:
@Thomas0430 is this the one you're using that @vache linked to? Want to make sure I'm getting the right version of 3.5.0.0

Also it may be appropriate to wait for 3.5.1.0 because as I understand it 3.5.0.0 doesn't flash slot A/B simultaneously which is why there's a report of someone bricking their device a few pages back in this thread.
[Moto G Power ROMs, Kernels, Recoveries, & Other De] alansworld2010@gmail:
I've got this one and it works fine...except if you use android 11 firmware, all our custom roms on a10... Super img can be flashed in twrp ..like all other devices it keeps encryption on data even if you format...I use stock recovery and fastbootd a lot because I'm into the gsi flashing and creating super.img now that we figured out how to flash magisk and gapps plus its more secure with official moto patches on vendor boot.IMG...because any one can change the date on the default prop to look current and they certainly do...I have slowly watched twrp fall off because of google...and really I just use to flash zips and get full root at the terminal ..so I learned how to use DD commands and terminal to pull stock IMG and found that for backups the migrate app is topnotch...whenever I need to switch recovery I flash from in the ROM with smartpack kernel mgr...as long as I'm still rooted I flash twrp back in the kernel mgr after reboot...or PC but less on the PC is best for me
[Moto G Power ROMs, Kernels, Recoveries, & Other De] Leroy_Sparks:
Outstanding! I have done limited test of the twrp 3.5.2-10 that krasevalex made using this (for touchscreen issues some of us have had until he found the alternate supplier/driver fix) and it looks very good.
[Moto G Power ROMs, Kernels, Recoveries, & Other De] pdbqstab1:
I'm on Android 11 and data is encrypted. If I format data in twrp will this remove encryption? I know that it will be encrypted again when booting to system.
[Moto G Power ROMs, Kernels, Recoveries, & Other De] darko454:
Thanks for the info

Can you please guide us how flash twrp correctly

Thanks
[Moto G Power ROMs, Kernels, Recoveries, & Other De] bgii2000:
It was a long time ago, and both Motorola and TWRP have updated since. In order to write it up I'd have to do it over again and relearn it all. Not gonna happen, sorry.
[Moto G Power ROMs, Kernels, Recoveries, & Other De] darko454:
Should I follow these instructions to install twrp 3.5.2-10 ;

fastboot flash recovery twrp.i

fastboot flash recovery_b twrp.? Thanks
[Moto G Power ROMs, Kernels, Recoveries, & Other De] darko454:
Any info please
[Moto G Power ROMs, Kernels, Recoveries, & Other De] Beetle84:
Yes
[Moto G Power ROMs, Kernels, Recoveries, & Other De] )))asas(((:
Sofiar with Android 11 TWRP is working ???
[Moto G Power ROMs, Kernels, Recoveries, & Other De] ehidle:
Anything new for A11? I have not been able to find any version of TWRP that works with it. (and this one does not seem to have the right display driver as only a narrow strip of the touchscreen works)
[Moto G Power ROMs, Kernels, Recoveries, & Other De] devilred:
after a long time there is still no stable and easy-to-install version. apparently it's all bankruptcy on this device
[Moto G Power ROMs, Kernels, Recoveries, & Other De] wc4usa:
Hello! Any chance that this TWRP form Moto G Power "sofia", would work on a newer model Moto G Power "tonga" ???? Or, does anyone know of a custon twrp for the "tonga" XT2165-5 ? Thanks!
[Moto G Power ROMs, Kernels, Recoveries, & Other De] jhford:
Can someone please help me flash a good custom ROM on my G Power Sofia XT2041-4. I'm running stock A10.

Thank you.
[Moto G Power ROMs, Kernels, Recoveries, & Other De] _tyler_:
When I boot into TWRP it asks for decrypt password and I can't wipe to install ROM. I boguth on eBay and did a factory reset but it still asks for decrypt password. ANy clue?
[Moto G Power ROMs, Kernels, Recoveries, & Other De] nathandanielparadainfante:
same problem, help
[Moto G Power ROMs, Kernels, Recoveries, & Other De] jojo313:
Hey, awesome to see work on this baby!

I'm pretty much a noob in terms of development, not sure if I can be of any help except buy somebody a few beers :).

I created a Telegram group like every other phone has, so everybody can discuss it there. https://t.me/mg8power
[Moto G Power ROMs, Kernels, Recoveries, & Other De] jojo313:
https://xdaforums.com/g7-power/development/port-twrp-g7-power-t3963738

TWRP is working on the G7 Power, and they have Android 10 working too as it seems. Or are phones delivered with 10 different to start with to phones upgraded to 10?
[Moto G Power ROMs, Kernels, Recoveries, & Other De] CodyF86:
TWRP 10 is looking for libinit as a shared library, the aosp android 10 recovery, seems to provide one in some shape way or form and works. Im going to see if I can dig through that code and see where its being generated. I tried adding the caf generic init, but ... not sure yet, but still wroking on it.
[Moto G Power ROMs, Kernels, Recoveries, & Other De] CodyF86:
Anyway I have TWRP 10 booted on Android 10 / sofia, but the touch screen doesnt work. I need to load kernel modules to make that work, which I already have done, but unfortunately the build system is janky, so I can't even finish a normal build. I have to build aosp recovery and then repack things. ADB is up and running but cant see any partitions because its a repack hack half way through.

its pretty silly actually. I have twrp 10 running but cant load kernel modules etc because i cant even finish an actual build. I have to peice it together. So its another step forward, but taking a lot of work. aosp recovery builds lib init fine, TWRP10 complains it needs it as a shared library, blah blah blah. it will work eventually , but i dont even think any of the twrp people have tried to build for android 10.
[Moto G Power ROMs, Kernels, Recoveries, & Other De] CodyF86:
Don't fret though. :) I will make it work...

Here is a video so far:....

TWRP-(Android-10) booting on Sofia
[Moto G Power ROMs, Kernels, Recoveries, & Other De] nidpancho:
Really appreciate the work you're putting in!

I decided to go ahead and order this phone in part because I see you are actively working to get TWRP running on it.

Thank you!
[Moto G Power ROMs, Kernels, Recoveries, & Other De] tnomtlaw:
Keep on keeping on
[Moto G Power ROMs, Kernels, Recoveries, & Other De] freddienuxx:
Much appreciated trying to get twrp recovery going for this device
[Moto G Power ROMs, Kernels, Recoveries, & Other De] CodyF86:
Here is a start. The build system is still trash not to put any omni devs down, but this basically my tree slightly repacked with the sofiar twrp, which is built as SAR which isn't right so i dont even know how its working lol.

Touch screen doesn't work. I can fix that tomorrow and it seems data decryption doesnt work either, but if youre data partition is unencrypted you should be able to make backups but I haven't tested. You will have to 'adb shell' once its booted and use the twrp command to do things.

Sofia-TWRP-3.4.0.0 (Haggard Edition)

Will work on it more tomorrow I went ham on it today and barely got it booting. I'm using the full omni build system and it puts init as a sym link and /system/bin/init as a symlink lol so I guess I'm going back to building as SAR even tho thats wrong.
[Moto G Power ROMs, Kernels, Recoveries, & Other De] CodyF86:
I updated the kernel modules and firmware script and touch screen still won't work so going to try the other 2 firmware .bin files for sofia in vendor/firmware but it should be just about ready to work.
[Moto G Power ROMs, Kernels, Recoveries, & Other De] CodyF86:
Here she is boys.

sofia-twrp-3.4.0-0

The touchscreen works, you just need to cycle the screen off then back on with the power button once its booted.

decryption is still iffy a lot of work to do. Had to do some messing around with the image, the build system / device trees are still weird.
[Moto G Power ROMs, Kernels, Recoveries, & Other De] jhjhjhjhjhjh:
Thanks for your hard work. I'll be testing it later today.

Much appreciated!!!
[Moto G Power ROMs, Kernels, Recoveries, & Other De] Ljrouse5:
Bro thank you so much for your time and hard work!! Awesome
[Moto G Power ROMs, Kernels, Recoveries, & Other De] gearsofwar567:
So glad you got it working! I'm curious, how did you get the touchscreen to work? I attempting to help you out got it to boot, but just couldn't get that touchscreen to work lol
[Moto G Power ROMs, Kernels, Recoveries, & Other De] CodyF86:
Had to add the kernel modules from /vendor/firmware and also adjust the load_ts_firmware.sh file in /sbin. Although i didn't think it was working at first. You have to cycle the screen off then back on again with the power button for it to start working.

The image is built with system as root = true which is wrong according to AOSP documentation. Native Android 10 devices it should be false. It's just used to be an indicator of native android 10 or not, so the whole thing is wonky it appears.
[Moto G Power ROMs, Kernels, Recoveries, & Other De] HkQc:
Yes CodyF86, I'm going to thank every single one of your posts :laugh:
[Moto G Power ROMs, Kernels, Recoveries, & Other De] Noot_noot:
Interestingly, this does not work on the Moto G8 Power, the non-US version of the G Power. I thought they were the same in all but name. Installed via "fastboot flash recovery filename.img". "fastboot reboot recovery" then causes a bootloop (the Moto logo briefly appears, I'm thrown back to the unlocked bootloader warning, this repeats endlessly). Re-flashing the stock recovery was necessary.
[Moto G Power ROMs, Kernels, Recoveries, & Other De] nidpancho:
How do you re-flash the stock recovery?

I wanted to try this but wanted a way to roll back since my phone is encrypted and I wouldn't be able to do anything anyway until that gets fixed
[Moto G Power ROMs, Kernels, Recoveries, & Other De] Noot_noot:
You enter fastboot by holding power + volume down. Then follow this guide to flash the recovery (obviously using the stock one instead of TWRP). The recovery.img can be found in any stock ROM, downloadable e.g. here or using Lenovo Smart Assistant for Windows (recommended, as this way you're sure to get the correct version for your phone).
[Moto G Power ROMs, Kernels, Recoveries, & Other De] vache:
There's some differences, like the panel backlight drivers. You can find a working one for the g8 power here : twrp-3.4.0-0-sofiar-test3.img
[Moto G Power ROMs, Kernels, Recoveries, & Other De] Noot_noot:
Wow, didn't expect a solution this fast! Works like a charm. Thanks a lot & cheers from Austria! :)
[Moto G Power ROMs, Kernels, Recoveries, & Other De] gearsofwar567:
[MENTION=5337314]CodyF86[/MENTION] Aaaahhh no wonder! That makes sense! That was stressful ?
[Moto G Power ROMs, Kernels, Recoveries, & Other De] Ljrouse5:
How do I get unencrypted data? Format data then flash magisk boot.img with verity and force enc unchecked?
[Moto G Power ROMs, Kernels, Recoveries, & Other De] nidpancho:
Could you theoretically assist in development of this custom recovery knowing Linux but not Android app development?

Is there any material I could study to understand how to port TWRP?

I really would like for this to be fully functional and support encrypted partitions.
[Moto G Power ROMs, Kernels, Recoveries, & Other De] jhjhjhjhjhjh:
Coming from US Best buy version,

TWRP isn't working properly.

Can't format data

Can't install zips

Can't use adb sideload.

Can't do anything really...

Just FYI..
[Moto G Power ROMs, Kernels, Recoveries, & Other De] skoopster:
It would be awesome for me to learn/help in any way to develop this for our device :) :good:
[Moto G Power ROMs, Kernels, Recoveries, & Other De] fix-this!:
I think this twrp build is just a proof of concept. to my knowledge twrp doesn't work on Android 10.
[Moto G Power ROMs, Kernels, Recoveries, & Other De] Ljrouse5:
Well somehow I ended up with a halfway working twrp? I basically unpacked the twrp from the op and just copied and pasted all the updated files from GitHub that they've been working on the last couple of days. Pasted them into where I half way guessed they should go and packed it with Android kitchen and somehow I have more options as far as mounting, it decrypts my data (I followed the usual steps on course but nonetheless could fit the Life of me get unencrypted data with the original twrp) I can now flash zips from internal, do backups and even format data
[Moto G Power ROMs, Kernels, Recoveries, & Other De] efuston:
Would you mind sharing a link to your Frankenstein TWRP?
[Moto G Power ROMs, Kernels, Recoveries, & Other De] CodyF86:
Sorry guys I've been Mia for a week or so. More stupid bs because of covid hit me with a curveball for a few days, but anyway I think [MENTION=1829889]vache[/MENTION] just about has sofiax unified, and i'm all good now too and back.

I thing I have learned is to not only read the documentation but read it carefully lol.
[Moto G Power ROMs, Kernels, Recoveries, & Other De] efuston:
Yikes. I'm glad you're doing alright! I really appreciate all of the work you have put into this.

Forgive me if I'm mistaken, but is this (one of) the first Android 10 device to have a somewhat functioning TWRP?
[Moto G Power ROMs, Kernels, Recoveries, & Other De] Ljrouse5:
Sure. https://1drv.ms/u/s!Auj12T6z6JFogqMqJa_JT8LlDT4ZAQ
[Moto G Power ROMs, Kernels, Recoveries, & Other De] efuston:
How did you manage to get it to decrypt your data? Mine acts the same as the previous version. :confused:

::EDIT:: I managed to get it to decrypt, but it isn't recognizing the Data partition. "Failed to mount '/data' (No such file or directory)"
[Moto G Power ROMs, Kernels, Recoveries, & Other De] CodyF86:
There is a version with working decryption. I meant to test it yesterday, and let them know if it works... It should though, it's from [MENTION=1829889]vache[/MENTION] unified build. They'll have to post it or I'll ask, Telegram is going all freakazoid on me right now ofc lol.

Give me a bit to boot it and ask them. It's his build for sure though.
[Moto G Power ROMs, Kernels, Recoveries, & Other De] CodyF86:
Ok yeah decryption works. Send me a dm for now and ill send you a link to it, but ill let [MENTION=1829889]vache[/MENTION] post his own builds / I asked them to post it / just waiting to see what Dark says.
[Moto G Power ROMs, Kernels, Recoveries, & Other De] vache:
Here you go : https://drive.google.com/file/d/1x4t6ca8TLf1bNHrQa-jjCN_AhdV2W78u/view?usp=drivesdk

Boots on sofia (g power), sofiar (g8 power), sofiap (g stylus), sofiap_ao (g pro)
[Moto G Power ROMs, Kernels, Recoveries, & Other De] nidpancho:
Is there a changelog for this?

Is it fully functional?
[Moto G Power ROMs, Kernels, Recoveries, & Other De] Ulfys:
So, how can data be decrypted with the latest build? It asks me for a password.
[Moto G Power ROMs, Kernels, Recoveries, & Other De] efuston:
The password is your unlock PIN/password.
[Moto G Power ROMs, Kernels, Recoveries, & Other De] jumpup:
So far, I've had great success with this. Please let me know if there are particulars for which you need feedback. Thanks! I'm excited to see some community around the Moto G!
[Moto G Power ROMs, Kernels, Recoveries, & Other De] 3dekstron:
I have a G8power xt2041-3 I'm very happy with twrp - great job.

Question:

how to mount the RW system?
[Moto G Power ROMs, Kernels, Recoveries, & Other De] CodyF86:
Should be able to issues the command 'adb remount' from a console if it is in read-only mode. Although I haven't tried it with this image, but yeah adb remount should do it.
[Moto G Power ROMs, Kernels, Recoveries, & Other De] vache:
You can't remount RW system/product/vendor on stock ROM cause of dynamic partitions. Nothing TWRP can do about that.
[Moto G Power ROMs, Kernels, Recoveries, & Other De] nidpancho:
couldn't get adb sideload to initialize. It just hung there until I got a "Could not get child item" error message
[Moto G Power ROMs, Kernels, Recoveries, & Other De] samiej927:
Adb sideload comes back with errors
[Moto G Power ROMs, Kernels, Recoveries, & Other De] Weeaboodesu:
Anybody else having issues with the touch points not being accurate but have not been able to get around swipe to flash/swipe to backup it starts to move when i touch just below the camera but i can't get it to slide all the way any advice would be appreciated Thanks:) NVM using adb shell commands
[Moto G Power ROMs, Kernels, Recoveries, & Other De] :
can confirm latest build is working on my 1 day old g8 power

''Anybody else having issues with the touch points not being accurate'' - This is true for me, only on swipe to unlock
[Moto G Power ROMs, Kernels, Recoveries, & Other De] Weeaboodesu:
Yes i am having same problem i just ended up using openrecovery script commands to get around the touch screen issues
[Moto G Power ROMs, Kernels, Recoveries, & Other De] CUBeR64:
Is there a way to fix touch controls? I have Sofia and literally just can’t swipe right and those shell commands are above my head. Thanks

EDIT

I use a mouse now, but the hurdle now is I never see a system partition ever, even after decryption or formatting/advanced wiping. Any ideas? I have the US Moto G Power

EDIT

I figured out how to not use twrp in general as I finally grasped the concept of fastbootd lol. Thank you all overall for amazing development work!
[Moto G Power ROMs, Kernels, Recoveries, & Other De] xT29c:
could you shed some light on fastbootd? I need to sideload gapps
[Moto G Power ROMs, Kernels, Recoveries, & Other De] CUBeR64:
In your adb folder, make sure whatever apk is in there as well and open a cmd in admin mode and type this in with usb cable attached

fastboot reboot fastboot

If you already have a different recovery then that won't work and it'll just go into twrp or whatever you have. After that type in

adb sideload X.zip

Not sure if you even need fastbootd for that, regular adb commands can sideload gapps
[Moto G Power ROMs, Kernels, Recoveries, & Other De] Q9Nap:
[MENTION=5337314]CodyF86[/MENTION] [MENTION=1829889]vache[/MENTION]

Wondering, would it be possible to add vbmeta partition flashing to twrp?
[Moto G Power ROMs, Kernels, Recoveries, & Other De] awoolf:
Touchscreen not working correctly for me on XT2041-4. Only the right half of the screen seems to accept touch input. If I toggle the screen off/on, I can't slide from the left to unlock.

Any updated versions with working touchscreen support?

EDIT: I can precisely define the touchscreen issue now: Right half of the screen works fine, but touch sensor for left half of screen is flipped top-to-bottom.

EDIT: I made a USB-C to USB (2.0) female OTG adapter, and am able to connect a USB mouse to control TWRP. (To hack one together, you'll need to remove the USB-C connector's pull-up resistor (between CC and +5v), and install a 5.1k pull-down resistor (between CC and GND) instead. power. Then just wire up +5v/D-/D+/GND between the connectors .)
[Moto G Power ROMs, Kernels, Recoveries, & Other De] sselick:
No ext SD card available

I am having the same issues with sofia/XT2041-4 where I only have touchscreen on the right half and cannot unlock after power cycling and I also solved it with a physical OTG mouse. Once I am in TWRP however I am unable to see the external SD card. The OTG cable makes ADB sideloading difficult as well.
[Moto G Power ROMs, Kernels, Recoveries, & Other De] kc6wke:
No issues with ext sd here, are you sure its mounted?

View attachment 5126241 View attachment 5126243
[Moto G Power ROMs, Kernels, Recoveries, & Other De] sselick:
I'm not sure of anything - first week with the new phone :) I've worked with TWRP on other phones (LG V20, G3) and never had to mount the SD card. SD works on Moto G Power with HavocOS loaded up. 250gb SDXC card ... is that too large or does it have to be formatted a certain way for TWRP to see it?
[Moto G Power ROMs, Kernels, Recoveries, & Other De] DeathToy:
Could POSSIBLY be the format. I have a 128gb card that I transfered over from my Razer Phone 2. My RP2 formatted it as vfat (didn't even know that was a thing) and both HavocOS and TWRP pick it up just fine. From what I've read, the G/8 Power support up to 512gb sd cards so your size shouldn't be an issue.
[Moto G Power ROMs, Kernels, Recoveries, & Other De] sselick:
I formatted the SD card inside HavocOS and it shows up in TWRP now. I don't see any way to determine what the format is or was within the OS but it does now work. Somehow I don't have enough space to install GAPPS though - micro, so it should be smaller than the built-in GAPPS.
[Moto G Power ROMs, Kernels, Recoveries, & Other De] jhill110:
[MENTION=5337314]CodyF86[/MENTION]

Did you give up on this project?

Do i need to format data?

Thanks Dude

EDIT:

It's working great but I'd like to be able to not use a mouse.
[Moto G Power ROMs, Kernels, Recoveries, & Other De] CodyF86:
Give up, no, but as far as I know it all should work more or less, and although I was a major driving force in making it work, in the end it was someone else who got it to work first with encryption. lol xD, but he was nice enough to let me post the link to his build in the OP. What's up? Why do you have to use a mouse (ill look at the previous threads, just got an email from xda haven't yet.)
[Moto G Power ROMs, Kernels, Recoveries, & Other De] jhill110:
Well, the first time I used it, it went haywire on me and I lost data... I didn't go near wipe.

Some of the buttons are inoperable with touch. But with the mouse they work fine.

Anyway, do I need disable DM Verity?

[MENTION=5337314]CodyF86[/MENTION]

Thanks for the effort with this I appreciate it.

Now if somebody could do this for the Galaxy tab s7 wifi. :confused:
[Moto G Power ROMs, Kernels, Recoveries, & Other De] jhill110:
So when I want to make a complete backup which items do I tic in TWRP.

There's all this stuff that I've never seen coming from a long line of samsung phone's.
[Moto G Power ROMs, Kernels, Recoveries, & Other De] CodyF86:
As long as you have a pin code or pattern it should ask you to enter it when it boots and it will decrypt. If you did a factory reset in twrp it would format your userdata.

I'd have to look at the options but user data is your data. Boot, system and or super and vbmeta is basically the rest of it. Not a bad idea to just back all of it up once.
[Moto G Power ROMs, Kernels, Recoveries, & Other De] jhill110:
[MENTION=5337314]CodyF86[/MENTION]

Boot (64MB)

DTBO (24MB)

SUPER (9312MB)

METADATA (0MB)

DATA (5928MB)

RECOVERY (64MB)

PERSIST (1MB)

BLUETOOTH (4MB)

DSP (32MB)

EFS (8MB)

FSG (24MB)

LOGO (32MB)

SUPER (9312MB)

As you can see no vbmeta. Super is there twice with the same size in MB.

So, should I do all of them for a full backup or like with a Samsung can I skip some?

I have no pin code just swipe.
[Moto G Power ROMs, Kernels, Recoveries, & Other De] awoolf:
Mount /system as RW?

Am I missing something, or is there no ability to mount system as RW? (XT2041-4, "test9")
[Moto G Power ROMs, Kernels, Recoveries, & Other De] kc6wke:
No you are not missing it, as of android 10, Google blocked any writable access to system.