[TWRP][harpia] TWRP for Moto G Play

Search This thread

BouncingState

Senior Member
May 18, 2018
165
91
Nuuk
Dear @squid2 I'm using the latest version of TWRP (v3.2.3-r1) with the latest version (16-Feb-2019) of ResurrectionRemix Oreo ROM by @razhor54

The problem is when I encrypted my Moto G4 Play, everything works very well. But when I boot to the Recovery, it asks me for the PIN/Password. Even if I write the correct PIN/Password, it says: "failed to decrypt data" or "Incorrect Password" :(

So, the only way to install something is formatting the whole system :(
I cannot install any Audio Mod, change SuperSU to Magisk, Update the ROM with new version or Update the OpenGapps

Please bro squid2, fix that :( !!
 

rybshik

Senior Member
Oct 17, 2009
319
21
After writing twrp, phone reverts to stock recovery

On my unlocked XT1601, I write the latest twrp
Code:
fastboot flash recovery twrp-harpia-3.2.3-r1.img
.

It goes OK, and seems OK after one power-off and reboot. Then, I am able to run twrp.
Unfortunately, some time later the phone reverts to the stock recovery.

I also tried to install twrp image file from within runing twrp as follows:
in recovery go to install and then install image. Pick the new version and make sure to select recovery.
It installs ok, but later, again the phone reverts to the stock recovery.

Android 7.1.1 Build NPIS26.48-43-2, June 2018 security patch.
 
Last edited:

spiked_mistborn

Senior Member
Nov 28, 2012
280
127
It installs ok, but later, again the phone reverts to the stock recovery.

It is common for ROMs to revert to stock recovery after they boot. Try this from within twrp after you flash your rom.

Mount /system
Go to advanced / file manager
Under /system rename the file recovery-from-boot.p

This should prevent twrp from being overwritten.
 
  • Like
Reactions: rybshik

rybshik

Senior Member
Oct 17, 2009
319
21
Mount /system
Go to advanced / file manager
Under /system rename the file recovery-from-boot.p
.
So far, I have not modified my system.
If I rename the file recovery-from-boot.p, will my phone still be able to do OTA updates?
If not, will it be eligible for OTA after I rename the file back to its original name?
 
Last edited:

spiked_mistborn

Senior Member
Nov 28, 2012
280
127
So far, I have not modified my system.
If I rename the file recovery-from-boot.p, will my phone still be able to do OTA updates?
If not, will it be eligible for OTA after I rename the file back to its original name?

I don't know for sure if it will affect the ability to do OTA updates, but I would say make a full backup first just in case. I think if you do have any issues you should be able to rename the file back to its original name and that will probably fix it. If not you can always flash the factory image.
 

_that

Recognized Developer / Inactive RC
Oct 2, 2012
4,822
4,211
So far, I have not modified my system.
If I rename the file recovery-from-boot.p, will my phone still be able to do OTA updates?
If not, will it be eligible for OTA after I rename the file back to its original name?

If a device is using dm-verity and block-based system updates (current devices do; not sure about this one), then renaming any file will permanently modify the partition, causing OTA updates to fail; the system may fail to boot (unless dm-verity is disabled by a custom kernel), and renaming the file back will *not* restore it.
 
  • Like
Reactions: DB126 and rybshik

rybshik

Senior Member
Oct 17, 2009
319
21
renaming any file will permanently modify the partition, causing OTA updates to fail; the system may fail to bootit.
Yes, I think so. I use stock Android 7 ROM.

So effectively, I can use TWRP in a boot-only mode.
I can still back up and restore data, but need a PC to load/boot TWRP.
Is there any other way to boot TWRP without access to a PC?
 

Sukram2014

Senior Member
Jun 24, 2014
257
84
Cham
Need help please!

Tried so many times to flash latest TWRP via Fastboot. Flashing works as always, but when I want to boot into TRWP it wont work: The phone freezes at the teamwin screen and wont start the recovery :( That means, I cannot install any custom rom or anything else! Does anybody has the right clue for me to handle that problem?

Thanx,

Sukram.

EDIT: woooha: It works! Just have to wait for nearly two minutes to start! Is that normal?
 
Last edited:

DanHutchins

Senior Member
Sep 2, 2015
621
112
Claremont, N.H
Need help please!

Tried so many times to flash latest TWRP via Fastboot. Flashing works as always, but when I want to boot into TRWP it wont work: The phone freezes at the teamwin screen and wont start the recovery :( That means, I cannot install any custom rom or anything else! Does anybody has the right clue for me to handle that problem?

Thanx,

Sukram.

EDIT: woooha: It works! Just have to wait for nearly two minutes to start! Is that normal?
Typically after flashing anything it will take a bit more time the first time you boot into recovery or system.

Sent from my [device_name] using XDA-Developers Legacy app
 
  • Like
Reactions: Sukram2014

BouncingState

Senior Member
May 18, 2018
165
91
Nuuk
Hello dear @_that & @squid2

Can you make a TWRP version with the ability to Decrypt Pie ROMs ??? Even if I type the correct PIN/Password, in Recovery says: "unable to decrypt /data" :(
Thanks a lot :)
 

squid2

Recognized Developer
Mar 9, 2015
1,723
10,981
Ontario
Hello dear @_that & @squid2

Can you make a TWRP version with the ability to Decrypt Pie ROMs ??? Even if I type the correct PIN/Password, in Recovery says: "unable to decrypt /data" :(
Thanks a lot :)

Sorry, I had been a combination of busy and lazy for the past 8 months, and so I didn't get to do much related to Android. I got back into it last night, and want to try getting the msm8916 common family in shape for official LineageOS 16. I don't want to make any more promises given my other broken promises, but I should be releasing updated TWRP builds for all these devices some time over the next month or so. I'm currently working on catching up on 9 months of kernel security patches.
 

BouncingState

Senior Member
May 18, 2018
165
91
Nuuk
Sorry, I had been a combination of busy and lazy for the past 8 months, and so I didn't get to do much related to Android. I got back into it last night, and want to try getting the msm8916 common family in shape for official LineageOS 16. I don't want to make any more promises given my other broken promises, but I should be releasing updated TWRP builds for all these devices some time over the next month or so. I'm currently working on catching up on 9 months of kernel security patches.

Dear bro :) I'm so glad for your return :D I'm very sure more than one member would be happy about your news :)

I will wait the new version of your awesome TWRP with the ability to decrypt </data> partition in Pie ROMs :good:

Thanks a lot, and have a wonderful day :highfive:
 
  • Like
Reactions: rori1977

rm43115

Senior Member
May 13, 2017
176
45
Sorry, I had been a combination of busy and lazy for the past 8 months, and so I didn't get to do much related to Android. I got back into it last night, and want to try getting the msm8916 common family in shape for official LineageOS 16. I don't want to make any more promises given my other broken promises, but I should be releasing updated TWRP builds for all these devices some time over the next month or so. I'm currently working on catching up on 9 months of kernel security patches.

Hello squid2,

have you made progress?
We are eagerly waiting for LineageOS 16.
 

TheWarrior01

Senior Member
Apr 16, 2017
184
57
Mumabi
Xiaomi Poco X3 Pro
Realme 8i
Sorry, I had been a combination of busy and lazy for the past 8 months, and so I didn't get to do much related to Android. I got back into it last night, and want to try getting the msm8916 common family in shape for official LineageOS 16. I don't want to make any more promises given my other broken promises, but I should be releasing updated TWRP builds for all these devices some time over the next month or so. I'm currently working on catching up on 9 months of kernel security patches.
Any updates?
 
  • Like
Reactions: BouncingState

rm43115

Senior Member
May 13, 2017
176
45
Hello squid2,

are you still planning a LineageOS 15 or 16?

I now have to decide whether to buy a new smartphone for my daughter. But when a new LineageOS comes, we stay with the Moto G4 Play.

Please, please ... give yourself a sign of life!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 62
    This is my version of TWRP built for the 2016 Moto G Play. It should work fine, but using it is a try at your own risk procedure. Your bootloader must be unlocked to use this recovery. Fastboot mode is used to flash or boot this recovery. To enter fastboot mode, turn off your device, hold PWR and VolDn for 3 seconds, then let go.

    Differences between upstream TWRP and my fork:
    • My original green theme
    • No SuperSU
    • No TWRP app
    • No HTC Dumlock cruft
    • Updated pigz compressor (slightly faster and more tolerant of corruption)

    To temporarily boot this recovery:
    Code:
    fastboot boot twrp.img

    To permanently flash it:
    Code:
    fastboot flash recovery twrp.img

    The download is up on the downloads tab.

    XDA:DevDB Information
    TWRP for Moto G Play (harpia), Tool/Utility for the Moto G4 Play

    Contributors
    squid2
    Source Code: https://github.com/sultanqasim/android_device_motorola_harpia


    Version Information
    Status: Stable
    Current Stable Version: 3.2.3-r1
    Stable Release Date: 2018-08-16

    Created 2016-09-03
    Last Updated 2018-08-16
    15
    Squid TWRP 3.2.1-r1

    I've posted an updated build of my TWRP fork. It brings bug fixes related to the ADB backup feature, and also executes automated recovery scripts (such as wipe and update commands) without first waiting for the user to enter a decryption password. As usual, the download is on the downloads tab.
    12
    Squid TWRP 3.2.3-r1

    I've posted an updated build of my TWRP fork that has been rebased off the latest upstream version. As usual, the download is on the downloads tab.
    12
    Squid TWRP 3.2.0-r1

    I've posted a new build of my TWRP with the latest changes from upstream. It brings better support for Oreo zips while still supporting older ones. It also has improvements to the reliability of backups.
    11
    Hello dear @_that & @squid2

    Can you make a TWRP version with the ability to Decrypt Pie ROMs ??? Even if I type the correct PIN/Password, in Recovery says: "unable to decrypt /data" :(
    Thanks a lot :)

    Sorry, I had been a combination of busy and lazy for the past 8 months, and so I didn't get to do much related to Android. I got back into it last night, and want to try getting the msm8916 common family in shape for official LineageOS 16. I don't want to make any more promises given my other broken promises, but I should be releasing updated TWRP builds for all these devices some time over the next month or so. I'm currently working on catching up on 9 months of kernel security patches.