TWRP for Moto G7 (river)

Search This thread

Zaxx32

Senior Member
Mar 23, 2019
510
195
Morgantown
Moto G5 Plus
Moto G7
So every time Android get it's security patch, the A/B slot setup/system causes a crash? If there was a way, I'd due without the OTA update and do it manually to both slots maybe? This blows...
 

droidsometimes

Senior Member
Dec 23, 2017
167
58
LG G2 Mini
Nvidia Shield Tablet
So every time Android get it's security patch, the A/B slot setup/system causes a crash? If there was a way, I'd due without the OTA update and do it manually to both slots maybe? This blows...
I take it you're running stock OS?
Magisk or other mods?
What exactly do you mean by 'crash' - fails to apply the update, stuck on reboot, etc.?

Do you have TWRP installed permanently?
If so, maybe don't install it permanently, just boot it temporarily when you need it, so it can't interfere with the OTA.

Just guessing here because I'm running LOS 17.1 on my Moto G7 - but so far LOS OTAs have been working just fine. No Gapps, no Magisk, no permanent TWRP though.
 

Zaxx32

Senior Member
Mar 23, 2019
510
195
Morgantown
Moto G5 Plus
Moto G7
Going by whats been said by other users in the thread.

I really would like the twrp-Magisk root I've gotten used to having with my last phone, a G5+.

I do like what I've read about Lineage tho. Was no support for my G5+ but now I'm official with G7.
I think I might give it a try while this issue gets figured out...hmm...
 

Zaxx32

Senior Member
Mar 23, 2019
510
195
Morgantown
Moto G5 Plus
Moto G7
It'll backup all but data

The way I understand it (Dunno if I'm right or wrong...) is that all's well until it does it's OTA monthly security update/patch or the user attempts to backup/restore??

If so...is there ANY way to opt-out or otherwise avoid OTA updates or not install them once d/led?

I'm totally willing to take the hit and start from scratch once a fix or work-around is found.
I just want a Magisk rooted G7 for now...screw the updates & backups until there is a fix!

Btw...is it safe to assume that the TWRP devs are aware of the issue(s)??
I'd rather not go with LOS to get my customization 'fix' then have this issue solved
'a day later' so to speak! :mad: :eek: :eek:

I can't be the only one tired of waiting and wondering! :rolleyes:

later
 

maybeme2

Senior Member
Aug 28, 2015
2,307
738
Google Pixel 5
Moto G 5G
It'll backup all but data
But will it restore it correctly? A backup without restore is useless.

Last time I tried a twrp restore on this phone I ended up with unresolvable bootloops and an unusable phone for 3 days. Needed to re-install everything from scratch.

(My Moto G7 river is on stock android pie with permanently installed 3.3.1-2-river twrp, rooted with latest Magisk. Afraid since then to try another twrp restore and have to reinstall everything again).
 

HueyT

Senior Member
Apr 3, 2014
4,814
2,182
New Albany, IN
OnePlus 7T
But will it restore it correctly? A backup without restore is useless.

Last time I tried a twrp restore on this phone I ended up with unresolvable bootloops and an unusable phone for 3 days. Needed to re-install everything from scratch.

(My Moto G7 river is on stock android pie with permanently installed 3.3.1-2-river twrp, rooted with latest Magisk. Afraid since then to try another twrp restore and have to reinstall everything again).

Of course you can restore all partitions except for "data"; otherwise what's the point of TWRP backup. Trouble restoring is usually related to encryption issues so all my custom roms are unencrypted so TWRP can backup data also. Stock PIE can backup data via TWRP if you provide 4 digit lockscreen pin which TWRP will ask to "decrypt" data before you can back it up.
 
  • Like
Reactions: Andvark

Zaxx32

Senior Member
Mar 23, 2019
510
195
Morgantown
Moto G5 Plus
Moto G7
This isn't the TWRP '10' they've been working on, is it?
Think I'm just gonna forgo a backup and root...Titanium will do until they can sort a tWRP 10. When/If it's released, I'll start anew.
For now I just wanna play with my toys, damn it! lol
 

Haloman800

Senior Member
Dec 16, 2010
294
19
I think I bricked my g7 plus, is there any hope?

I unlocked the bootloader and used adb to load twrp, I tried to install it but kept getting an error, then I turned off the phone. Now it's unresponsive (won't turn on or do anything when plugged in). Am I screwed?
 

sd_shadow

Recognized Contributor / XDA Welcome Team
Sep 21, 2011
18,751
2
9,592
South Dakota
goo.gl
Motorola Droid X
Amazon Fire
I think I bricked my g7 plus, is there any hope?

I unlocked the bootloader and used adb to load twrp, I tried to install it but kept getting an error, then I turned off the phone. Now it's unresponsive (won't turn on or do anything when plugged in). Am I screwed?
In device manager if it's listed as Qualcomm you will need to Use a blankflash for lake if you have G7 Plus
Please post in correct forum if you Require more help
 

libengine

New member
Apr 15, 2021
1
0
A few day are gone since latest posts here.
Is it still impossible to restore /data using TWRP on the G7??
 

generalnod

Senior Member
Dec 2, 2012
68
7
I unlocked my bootloader and flashed TWRP as per the LOS instructions for this device and can now only boot into bootloader mode. Can't boot into recovery or boot into the OS. Tried multiple versions of TWRP no success.

When I try to go into recovery I usually i get a black screen with some kind of white icon in the upper left, I'll get a file prompt dialog on the PC so it seems like recovery is partially loading. It then usually turns off or i've had it go into bootloader mode with some type of error.

I've tried various versions of below, I've tried upgrading fastboot to latest version.

fastboot flash boot <recovery_filename>.img
fastboot boot <recovery_filename>.img
fastboot flash boot_a <recovery_filename>.img
fastboot flash boot_b <recovery_filename>.img

Any suggestions to get the device working? My goal is to permanently use it with LOS probably 17.

thanks
 

Zaxx32

Senior Member
Mar 23, 2019
510
195
Morgantown
Moto G5 Plus
Moto G7
No...it'll just reinstall the factory ROM and 'unroot' the phone and show that annoying 'This phone can't be trusted. Re-locking requires a bit of ADB wizardry first. Not sure if the orig. signed stock kernal must too be installed as well but one would think everything would halk be bone stock to qualify for re-locking and the 'trust' status that goes with it. The a thread telling how to re-lock here somewhere... :p

EDIT:
Here u are are bro-man... https://forum.xda-developers.com/t/back-to-stock-relock-boot-loader-google-fi.3966959/
 
Last edited:
  • Like
Reactions: maybeme2

maybeme2

Senior Member
Aug 28, 2015
2,307
738
Google Pixel 5
Moto G 5G
No...it'll just reinstall the factory ROM and 'unroot' the phone and show that annoying 'This phone can't be trusted. Re-locking requires a bit of ADB wizardry first. Not sure if the orig. signed stock kernal must too be installed as well but one would think everything would halk be bone stock to qualify for re-locking and the 'trust' status that goes with it. The a thread telling how to re-lock here somewhere... :p

EDIT:
Here u are are bro-man... https://forum.xda-developers.com/t/back-to-stock-relock-boot-loader-google-fi.3966959/
Thank you for taking the time to answer. I really appreciate it.

Maybe I'm going about this the wrong way. My wife has the same phone but unrooted. She just got a seamless OTA update from android 9 to 10 and I'm jealous. What I really want to do is move to android 10 too without having to reinstall all my apps and settings. Is that possible?

I am rooted by Magisk, have twrp nandroid backups and Titanium Backups (both on the second sdcard and on my laptop). I do have adb enabled and fastboot etc on my laptop.

What is the easiest way I could move to android 10 since I cannot receive ota updates? I am not knowledgeable in android/fastboot etc but I can follow clear instructions.

Is there a way?

Thank you.
 

sd_shadow

Recognized Contributor / XDA Welcome Team
Sep 21, 2011
18,751
2
9,592
South Dakota
goo.gl
Motorola Droid X
Amazon Fire
Thank you for taking the time to answer. I really appreciate it.

Maybe I'm going about this the wrong way. My wife has the same phone but unrooted. She just got a seamless OTA update from android 9 to 10 and I'm jealous. What I really want to do is move to android 10 too without having to reinstall all my apps and settings. Is that possible?

I am rooted by Magisk, have twrp nandroid backups and Titanium Backups (both on the second sdcard and on my laptop). I do have adb enabled and fastboot etc on my laptop.

What is the easiest way I could move to android 10 since I cannot receive ota updates? I am not knowledgeable in android/fastboot etc but I can follow clear instructions.

Is there a way?

Thank you.
You can try the update option in LMSA

You will need to pull the boot.img from LMSA update folder and patch it with Magisk, but you will not lose data.
 

maybeme2

Senior Member
Aug 28, 2015
2,307
738
Google Pixel 5
Moto G 5G
You can try the update option in LMSA

You will need to pull the boot.img from LMSA update folder and patch it with Magisk, but you will not lose data.
Thank you sd shadow. I will read up on it. Thanks for the link.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 23
    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.

    Unlocked bootloader is required.


    This device has 2 "slots" for ROMs / firmware. TWRP will detect whichever slot is currently active and use that slot for backup AND restore.
    There are buttons on the reboot page and under backup -> options to change slots. Changing the active slot will cause TWRP to switch which slot that TWRP is backing up or restoring.
    You can make a backup of slot A, switch to B, then restore the backup which will restore the backup of A to slot B.
    Changing the slot in TWRP also tells the bootloader to boot that slot.

    Warning:
    • Do NOT switch slots unless you have installed copy-partitions-AB.zip or manually flashed the bootloader on both the slots:
      This device comes out of the box with the bootloader installed only on the active slot (eg: bootloader_a).
      Once you manually switch slots, your device will use the other bootloader partition (eg: bootloader_b) which is empty because of this factory setup therefore the device won't be able to boot in any way.
      For this reason you should install the bootloader on your own on both the slots with fastboot or copy the currently installed one to the inactive slot by flashing copy-partitions-AB.zip at least once.

    Note:
    • Decryption only works when TWRP is permanently installed.

    Installation
    To temporarily boot this recovery:
    Code:
    fastboot boot twrp-[B]version[/B]-[B]build[/B]-river.img

    To permanently install it:
    • Temporarily boot TWRP
    • Put the TWRP image in your external SD Card or, in case you don't have one, push it to /data with adb this way:
      Code:
      adb push twrp-[B]version[/B]-[B]build[/B]-river.img /data/
    • Tap Advanced -> Install Recovery Ramdisk -> Navigate to /data or /external_sd and select TWRP -> Swipe to Install
    • If you previously installed Magisk: Select Fix Recovery Bootloop from Advanced to fix/avoid recovery bootloops
    • Done! Optionally you can delete TWRP from /data or from your external SD Card now.

    Download
    AndroidFileHost

    XDA:DevDB Information
    TWRP for Moto G7, Tool/Utility for the Moto G7

    Contributors
    Alberto97
    Source Code: https://github.com/TeamWin


    Version Information
    Status: Beta

    Created 2019-04-14
    Last Updated 2019-07-02
    10
    I went insane to figure out decryption was not possible by just fastboot booting the image. I hope the hard work paid off :)
    4
    TWRP 3.3.1 is out!

    TWRP 3.3.1 is out and it is available in the AFH folder in the OP.
    I want to apologize to everyone that bricked their device by switching slots. I'm so sorry about that, I did not know the inactive bootloader slot came empty from the factory when I posted this :( I hope moto will install it on both of them at some point.
    There is a brief explaination about how this could happen in the OP and how to prevent it. Unluckily I'm not aware about any procedure to fix that without a blankflash. It seems that sending the device to a Motorola Service Center is the only option right now.
    Once I have more time I'll try to figure out what's going wrong with backups on the SD.
    2
    this is a blessing, i was working on twrp as well but hdd fail and it was music to my ears when it was mentioned this post went up in the tele group. so thanks bro
    2
    So here's my experience so far.
    Backup, works just fine, afaik.
    Restore, System,etc results in bootloop. Data restore, gets "extractTarFork() process ended with ERROR: 255"

    Not sure if this is already known but figured id share what ive experienced. also feel free to tell me if im doing stuff wrong, it's been a while since i messed with android more than just using it.

    Edit: This is with it perm installed.
    Did you restore "system" or "system image"? In the first case It's normal you get a bootloop, you changed the content of the system partition and that triggers verity. You can use "system image" that makes a bit per bit copy of the partition to avoid problems. Obviously that does not work if you manually changed even just a file.
    TLDR: Just disable verity, you should be able to do that easily with Magisk.
    About the extractTarFork() error instead it's something that I've seen on every device I used TWRP. I never figured out what means, I guess data was not backed up properly but I would not worry about that, it rarely happens. Just to know, did you backup on an external sd or internal storage?

    Is this for all moto g7 versions
    It is for all G7 variants. G7 Play/Power/Plus are different devices and require different builds.
    I hope that answered your questione somehow (I'm not sure what you meant with 'versions').