yashsingh1/xdaforums huggingface dataset:
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] Geofferey:
If you can not decrypt data via TWRP due to may-june (depending on oem) onward security update it will not succeed during backup. If you wish to use the backup feature data must be decrypted prior to performing backup. The way I do it is by disabling lockscreen pattern/pin/pass before booting into TWRP then I perform backup. See this here... There is a way to fix it but it requires compiling from source.
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] Scholeggo:
well, can't you like, force TWRP to decrypt storage on later patches? or..
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] Geofferey:
[MENTION=8590486]Scholeggo[/MENTION]

All I can tell you is, a lot of devices have the issue currently and not everyone has patched their source for it. Probably not even the guys working on official build. Remove your lockscreen before booting into TWRP and backups should work fine. If they don't I don't know what to tell yuh.
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] jplayer01:
I can get into twrp through fastboot, but I can't make a backup or install to ramdisk. I get a "Cannot create /data/media/0/TWRP folder (Required key not available)." error. Lockscreen is set to None. Not sure what else I could do.

20190904-0715

EU

August 1, 2019

PPOS29.114-134-2
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] Scholeggo:
you have to format data.. it's the only way
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] Geofferey:
[MENTION=3548759]jplayer01[/MENTION]

Why can't you install to ramdisk? You pushed the image to /tmp/ like I said? TWRP can not decrypt data in any form until it is in the ramdisk of device. I don't think you should have to format to get it installed especially if Magisk has already toched device. I'm not entirely sure about your device however since it's an EU variant.
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] jplayer01:
I ended up starting from scratch and reflashing stock because of some other issues I was having. Also, it was at the time fresh, factory wiped without Magisk or anything else. I may have just not realized I had to fix the recovery bootloop (it was bootlooping).

So I've managed to install to ramdisk and I've also flashed the Magisk zip. My only issue now is that for some reason the Magisk Manager isn't recognizing that Magisk is installed. I had it working before I flashed stock, so I'm not sure what could be wrong. If I try to reflash Magisk, it clearly says that it finds a Magisk patched boot image. I'd manually installed the Magisk Manager apk, which wasn't detecting Magisk. Uninstalling that and reflashing Magisk, then using the Manager that's automatically installed with it fixed that.
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] Geofferey:
[MENTION=3548759]jplayer01[/MENTION] I have a question for you while I have some people around, which is slightly related. Have you or anyone here been able to successfully disable encryption and AVB dm-verity on magisk with this device? When I tried I ended up having to restore stock dtbo.img using`fastboot flash dtbo dtbo.img` and reinstall magisk to get it booting again *hint*hint*. Have you tried to disable those two check boxes and reinstall magisk through manager after uncheck?
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] Scholeggo:
hey [MENTION=3421557]Geofferey[/MENTION].. i found someone who was able to back up encrypted data... please look into it.. this is the image used: https://drive.google.com/open?id=1OxsRol9tEL01jn8klpXtNU4HNvJOtP4a
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] Geofferey:
[MENTION=8590486]Scholeggo[/MENTION] Where are you getting those from lol? For now I'm just gonna leave this as is. There is no point in working on it unless some other major functionality is broke besides decryption... Since someone is building it directly from source I hope I haven't stepped on toes by including the kernel from first image you posted inside 20190904-0715. I would like to credit those who have put their time and effort into that and maybe speak with them. What's stopping you from using the second test image you obtained? If you really need data decryption why don't you just return to PCO29.114-54-2 System/Vendor/Oem/Boot images? I'm currently on that build and decryption/backup/restore works.

Extremely Important!

NEVER FLASH A BOOTLOADER THAT'S OLDER THAN CURRENT
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] Scholeggo:
Ok, I'll try the vendor and boot image, but why the OEM image? And I shouldn't flash the images because I'm gonna be using a gsi..
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] Geofferey:
Just flash the images to be safe... Honestly I flashed everything from that image but the bootloader to make sure I was clean. l'm not sure about oem partition but I know for a fact GSI roms rely on the vendor partition. That's where a lot of the important kernel modules & libs reside.

The GSI roms work okay for you? I had problems with WiFi/mobile data and couldn't find any fixes... The WiFi only work on some access points due to dhcp bug in GSI and mobile data didn't work at all. I really want PixelDust but I had to settle for stock with Taichi Xposed and Gravity Box. That and I've read battery with GSI roms on this device is not near as nice as stock.
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] Scholeggo:
The Wifi DHCP problem is kinda universal: not only the G7 Power faces it; I can confirm this same issue with my Moto E5 Plus. The only mobile issue is receiving sms/MMS over LTE.. needs 3g for sms functions.. and not many people are complaining about the battery anymore..

If you have a Telegram, we have a G7 Power group: Moto G7 Power Discussion

https://t.me/G7Power
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] ziusudra:
for any user already have magisk installed all your doing is step one and fastbooting twrp in and your good to go

thank you for this, ive been waiting forever! now for android 10 roms ;)
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] pantmunu:
Can I just fastboot twrp and flash magisk ... ?
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] aggresive:
I have a metroPCS G7 power. Can I unlock it from metroPCS by flash the TWRP and custom ROM? So that I can save $40 from ebay.
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] Scholeggo:
btw, i flashed the oem, vendor, and boot image, it didn't decrypt still.... any reason why [MENTION=3421557]Geofferey[/MENTION]?
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] flash713:
Successfully rooted following the exact instructions from the op on my Metro PCS G7 Power. I am on June 1 stock pie. VERY much appreciate your work on this op!! Excellent thread and great job on making everything clear and easy to understand.
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] aggresive:
Are you able to use SIM from other carrier or is there a way to do that?
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] flash713:
I don't have any other sim cards. Just bought the device and switched back to metro pcs.

You mean sim unlock? I haven't checked that out just yet....
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] temijun:
Thanks for making this possible. I was able to successful oem lock and twrp/magisk setup on

20190904-0715

MetroPCS Variant

June 1, 2019

PCO29.114-134

I had a slight bootloop problem initially, even though I hadn't install magisk in the past it kept bootlooping. I was able to get past it by doing the last step.
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] jhjhjhjhjhjh:
Much Thanks to everyone involved in this TWRP for the motog7power.

I successfully installed this image you posted and is working perfectly.

I managed to install by "fastboot boot TWRP.img" . While in TWRP, mount all options then hit advanced then select install to ramdisk. I had the image copied to my external sd card. I hit storage and selected external sd I chose the test image 1.img flash it and now I bootlooped. Wait there's more... Then I reflashed magisk19.3v I had on my sd card and flash the no dmverity.zip I Also had on my sd card. And ""Bam"" I'm booted back up. I installed reboot to recovery apk. And I can get in and out of TWRP with no issues.

The TWRP img in the op would not respond to touches. But this image works perfectly.

I had a few questions. I backed up my boot.img to test and it worked. I tried to back up more options like system and system image, data but the file size was 12GB just for the first 3 back up options. How can we decompress the back up to save space? Normal back ups should be no more than 4GB normally.

And what is a successfull back up? Like Wich partitions should be backed up.

Thanks again ..

I'm on Retail stock rom already rooted June security patch.

Successfull Flashes so far

1.BusyBox 129 yds universal,

2.Magisk19.3v,

3.Disable DM noverity force encrypt

4.unlockfps terminal.zip

5.Dolby Digital plus for Pie. (Finally got Dolby to work on this device)
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] AndroidBR:
I was wondering what is the difference between the G7 and the G7 Power in regards to TWRP. Didn't they just release official TWRP for the G7 this week? https://twrp.me/motorola/motorolamotog7.html Wouldn't it be the same thing as they share the Snapdragon 632?
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] pantmunu:
I'm pretty sure there are some device specific tuning that needs to be done for this.
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] ST Dog:
First the display is different so at a minimum it needs a different driver.

Or maybe 2-3 of they used multiple panels.

The CPU is just a small part of it.
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] jhjhjhjhjhjh:
I updated to the newest firmware dated 9/4:. I'm on security patch August 2019. Rooted,Xposed and Twrp working.
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] mrk2815:
how did you accomplish this.i am just wondering.what are the steps involved.
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] applebot:
I've registered with this site for the first time, after years of use to thank you. Using your port and instructions I have installed twrp and rooted my phone. All seems good! I can't wait to see how this develops. Thank you!
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] RheinPirat:
Hello

I bought the G/7 to replace my OnePlus7 Pro while its away for repair...

I have a XT1955-4 RETEU2. But i cant install TWRP. The Screen does not work when i fastbboot boot twrp.img (i shorted the name)... So i flashed the XT1955-4_OCEAN_RETEU_9.0_PPOS29.114-134-2_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml via Powershell - but no luck - touch does not work.

I also have a problem with the guide. After i typed in "adb shell" and installed magisk, i cant push twrp.img to the phone.

ocean:/ # getprop ro.vendor.build.date.utc

1555340586

ocean:/ # getprop ro.bootimage.build.date.utc

1555340586

ocean:/ #
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] ST Dog:
You have to exit the shell back to the PC for "adb push"

"adb shell" starts a command terminal on the phone. So you have to exit that back the PC's C prompt to run adb again.
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] Growking99:
Can someone please help me!

I have successfully done everything up until it's time to install twrp and following the steps I get this error message

Any help would be very much appreciated at this point don't want to roll the dice on trying to booting up and end up bricked so right now I'll be keeping my phone in recovery mode....
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] RheinPirat:
Tried that. Touch does not work :rolleyes:
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] n3rdy13:
Hi, I've tried flashing all versions of your TWRP img and touchscreen isn't functioning on any of them for me. I have the tmobile variant and have magisk installed. Any ideas?
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] ST Dog:
Can't help there. Just knew why you got the command not found error.
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] masonw1999:
Moto G7 Power

This tutorial ended up bricking two G7 Power phones I had when I got done doing the tutorial I got the error of mounting 'firmware' 'dps' 'vendor' 'data' etc I need some help getting them back to normal I can't access fastboot and I'm stuck in Qualcomm HS-USB QDLoader 9008 any help would be appreciated it.
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] sd_shadow:
QHSUSB_Bulk or qloader means it's in emergency download mode.

Only real fix is flash a Blank Flash or mmcblk0.img
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] sd_shadow:
[MENTION=10182963]masonw1999[/MENTION]

I had written more, not sure what happened

One thing you can try is let the battery died.

You might be able to get to bootloader mode then and flash firmware with fastboot.
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] masonw1999:
G7 Power

[MENTION=4267571]sd_shadow[/MENTION]

Hi shadow, thank you for the advice do you happen to have a link to the mmcblk0.img or know of where I can find one I can go buy a 64 GB sd card today.
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] sd_shadow:
I posted one here

https://xdaforums.com/g7-power/help/help-blank-flash-moto-g7-power-t3930168/page4

But it isn't working.
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] jono0007:
Looks like the official TWRP has been released

https://twrp.me/motorola/motorolamotog7power.html
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] xe500linux:
Has anyone gotten Tipatch (forces TWRP to backup user data) to work correctly on this device? It keeps inflating the data partition to ~30gb when its only 10gb full. Happens on both the official and unofficial TWRP build
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] levpard:
Did you flashed the recovery using the app or patched image using TWRP? I flashed the patched image using TWRP, but i didn´t know which partition i should choose to install so i decided to choose boot-partition and it flashed without errors and after was the full backup available, but i got recovery bootloop.
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] ElijahZAwesome:
Anyone know how I can flash the recovery ramdisk without touchscreen access? perhaps using the `adb shell twrp` commands?
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] xe500linux:
I used the app. In twrp did the data size look right? And did you try twrp's recovery bootloop fix?

Flashing the twrp zip should have the same effect:

fastboot boot twrp-3.3.1-0-ocean.img

adb push twrp-installer-3.3.1-0-ocean.zip /tmp/

adb shell

twrp install /tmp/twrp-installer-3.3.1-0-ocean.zip
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] xe500linux:
Found the problem with my tipatched TWRP reading data size incorrectly. There was a .thumbnail file in DCIM reading as 28gb. Deleted that and it's back to how it should be. So tipatch seems to work fine
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] jkeuclid:
I just received my G7 Power today and successfully unlocked the bootloader but when I try and fastboot flash TWRP I get this, any help with this is very much appreciated...

"PS C:\adb> fastboot flash recovery twrp-3.3.1-0-ocean.img

(bootloader) is-logical:recovery: not found

Sending 'recovery' (27144 KB) OKAY [ 1.049s]

Writing 'recovery' (bootloader) Invalid partition name recovery

FAILED (remote: '')

fastboot: error: Command failed"
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] sd_shadow:
Read post #1

Boot twrp
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] jkeuclid:
Tried that, no joy. I can't figure out why it's behaving as such, the unlock went without a hitch, was easy enough. Honestly, I've already arranged a return of this phone but before I do so I really would like to get this figured out.

For the record I was using the current image: twrp-3.3.1-0-ocean.img
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] sd_shadow:
Try flashing to the non active slot
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] jkeuclid:
commandline? thanks for responding.

Update: I managed to get it to flash but with the OP's "twrp-3.3.1-0-ocean-20190904-0715.img"...

C:\adb>fastboot boot twrp-3.3.1-0-ocean-20190904-0715.img
Sending 'boot.img' (25554 KB) OKAY [ 0.789s]
Booting OKAY [ 0.877s]
Finished. Total time: 1.762s

C:\adb>adb push Magisk-v19.3.zip /tmp/
Magisk-v19.3.zip: 1 file pushed. 24.7 MB/s (5348187 bytes in 0.206s)

C:\adb>adb shell
ocean:/ # twrp install /tmp/Magisk-v19.3.zip
Installing zip file '/tmp/Magisk-v19.3.zip'
Checking for Digest file...
************************
* Magisk v19.3 Installer
************************
- Current boot slot: _b
- Mounting system
- Mounting vendor
- Device is system-as-root
- System-as-root, keep dm/avb-verity
- Encrypted data, keep forceencrypt
- Target image: /dev/block/mmcblk0p42
- Device platform: arm64
- Constructing environment
- Boot image is signed with AVB 1.0
- Unpacking boot image
- Checking ramdisk status
- Stock boot image detected
- Backing up stock boot image
- Patching ramdisk
- Repacking boot image
- Flashing new boot image
- Sign image with test keys
- Unmounting partitions
- Done
Done processing script file
ocean:/ # adb push twrp-3.3.1-0-ocean-20190904-0715.img /tmp/
/sbin/sh: adb: not found
127|ocean:/ #
C:\adb>adb push twrp-3.3.1-0-ocean-20190904-0715.img /tmp/
twrp-3.3.1-0-ocean-20190904-0715.img: 1 file pushed. 25.3 MB/s (26167296 bytes in 0.986s)

C:\adb>

frankly I'm not certain on what I might have done differently than before but this time decided to just use that particular img file. Anyhow is it recommended to use an older magisk (e.g. 19.3?) than 20.0?

phone was purchased thru Consumer Cellular, 20190904-0715, Security Patch 10/1/19, ROM: PPOS29.114-134-4

question on Step#3, is this done via ADB Sideload via TWRP? disregard, it's been awhile but I got back out of shell prompt in TWRP terminal and got step 3 ok...so I've completed steps 1-4, safe to reboot?

I rebooted to system but it does in fact bootloop to recovery, did that fix under TWRP>Advanced and ended up factory resetting, then just slept on it and now seem to be back at sq 1 at boot screen. I can no longer copy any files to the phone while in windows for whatever reason now, all it shows are empty folders, no data.

pretty sure I'll need to reflash the fw, anyone have a working link to do so?
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] xe500linux:
Try booting again from that img, then push the official Twrp Zip to your phone and install that through your booted twrp (either via touchscreen or adb cmds). Make sure twrp is still there after a reboot, then install Magisk (v20). You dont want to install unofficial anyway as theres no decryption

If theres still no data transfer youll probably have to flash stock rom over again (and move it to slot A while youre at it).
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] jkeuclid:
If I may, I'll need a working link/method for flashing stock firmware and the correct stock firmware file which I don't have atm.

This is the FW I have currently:

https://mirrors.lolinet.com/firmware/moto/ocean/official/RETAIL/

particularly,

OCEAN_RETAIL_9.0_PPOS29.114-134-4_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

I also have the blank:

blankflash_ocean_PDOS29.114-134-2.zip
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] xe500linux:
If you're in the US use RETUS instead of RETAIL:

https://mirrors.lolinet.com/firmware/moto/ocean/official/RETUS/

I like to boot Twrp img first and wipe all partitions, then reboot to slot A. Or you can change slots via "fastboot set_active other".

Move all firmware files to adb folder, then paste these commands all at once into adb/fastboot cmd window:

https://xdaforums.com/showpost.php?p=79854606&postcount=17
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] jkeuclid:
I seemed to have had better luck with the new TWRP released yesterday (10/31) and now appear to have things installed correctly, though within TWRP there was no "Advanced > Install Recovery Ramdisk >" (Step#4, OP)so I had to use the traditional Install button to do so and all seems fine, rebooted to the OS and Magisk Mgr was present in the app drawer ss's attached.
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] WaterMan!:
Seems like there a lot of issues still to be worked out. Is there any news or information on when the official build comes out?
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] vinoxflame:
we do have an official build

http://twrp.me/motorola/motorolamotog7power.html
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] maddstealth:
When I boot into TWRP, the screen won't respond to any touch, so I can't interact with the interface at all. Any way to remedy this?
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] xe500linux:
It might work after it's installed. Disable your lock screen, flash boot into twrp, then install twrp from adb (twrp install twrp-installer.zip). But even the installed official build has that problem every 4th boot or so
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] maddstealth:
Do I disable the lock screen in the bootloader screen or on TWRP somehow? Also, how do I go about that? I'll happily follow a link to a relevant payee of you don't wanna type the instructions out.
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] ST Dog:
No, from settings after booting normally.
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] xe500linux:
Boot the OS to remove your lockscreen password, you only need it gone so you wont get stuck at the decrypt page in Twrp. Might work regardless though..

Then go back to bootloader and from adb, run:

fastboot boot twrp-3.3.1-2-ocean.img

(after twrp boots: )

adb push twrp-installer-3.3.1-2-ocean.zip /tmp/

adb shell

twrp install /tmp/twrp-installer-3.3.1-2-ocean.zip

after install, do 'adb reboot recovery' to see if you have touch.

(using latest official Twrp from here: https://dl.twrp.me/ocean/ )
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] maddstealth:
Okay, removing the lockscreen didn't do anything, but using an official TWRP Image from the link you provided seems to be doing the trick, at least initially. I'll let you know if installation is successful.

---------- Post added at 05:28 PM ---------- Previous post was at 05:12 PM ----------

OooooKAY... So, good news, TWRP installed successfully.

Bad news... The phone won't boot into the OS anymore. Whether I select to go straight in from TWRP or I try to take the Bootloader detour, it just jumps straight to TWRP...

I'm going to guess the OS has been screwed up and-or removed? I'll try pushing the stock firmware to the tmp folder and install it from there, see if that helps.

...

Why can't this mess ever be simple? lol
[Moto G7 Power ROMs, Kernels, Recoveries, & Other D] xe500linux:
Did you install the Twrp app to system by chance? It causes the same for me. If so, just reboot Twrp and uninstall the app from the Advanced tab. If that's not the problem, try the unofficial twrp build instead, as it has a "fix recovery bootloop" option that should fix it.