[TWRP][montana] Squid TWRP for Moto G5S

squid2

Recognized Developer
Mar 9, 2015
1,722
10,972
0
Ontario
This is my version of TWRP built for the 2017 Moto G5S. 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 available on the downloads tab.

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

Contributors
squid2
Source Code: https://github.com/moto8937-twrp


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

Created 2017-11-05
Last Updated 2018-08-17
 

nexx2

Member
Jul 7, 2016
16
4
0
Hi,

i just flashed your TWRP. The flash was successful, after booting to recovery twrp came up just fine. I wiped /data to decrypt, then rebooted the phone... Now it seems either bootlooping or bricked.
(Of course i unlocked the bootloader before flashing)

The phone just shows the bootloader-screen (blue background, red M-Logo, white letters "powered by android") with a small text in the middle "bad key).
Nothing happens. I cant even shut it down. Holding the power button for 10 seconds seems to start a reboot (screen goes black) but the bootloader-screen immediately shows back up and stays. Theres nothing i can do, no adb/fastboot access either...

Any suggestions? :(

Edit1:
AH! Pressing VolDown + Power gets me to fastboot/recovery... Phew. Guess i flash the stock rom first before proceeding any further.
Edit2:
Succeeded, nice!
 
Last edited:
  • Like
Reactions: Nowbie

kalyansundhar

Senior Member
Aug 22, 2008
300
380
0
Bangalore
Hi,

I flashed this TWRP. After flashing I went to recovery mode. Format Data failed as /data unknown. Flashed stock ROM. Again flashed TWRP. This time it just bootloops into TWRP recovery. When I power off and ON again, it bootloops and goes into TWRP recovery again and again. Any idea what could be wrong? My guess is I screwed up partition table. But not sure.

Thanks
KS

I went through flashing stock ROM, TWRP once again. After flashing TWRP, I went to recovery repeatedly and did 'Format Data' every time. I flashed Magisk. System booted fine. I verified by power off/on several times. Seems to be working fine.

Thanks
KS
 
Last edited:

sudd1976

Senior Member
Jan 16, 2013
253
50
58
Coventry
Thanks for your hard work at bringing TWRP to the MOTO G5s.
It took me a while to install it on my XT1797, as there was some strange message during boot which said

ID: Bad key

But after many many times bricking and unbricking, I am now finally rooted using Magisk.

Hope that we can see some custom Roms for this great device soon.
 
  • Like
Reactions: Sher1234 and Adi5

FAFAŁ

Member
Sep 30, 2010
29
7
0
Wrocław
Hi . Thx for You job . My phone stil a live :D But I have a question .

how about this one ? At first boot twrp will ask for "Swipe to allow modifications for /system" and if you choose to allow it system partition will get modified. So if you choose to reboot back to OS without performing anything in twrp, the OS won't boot (as verity check is enabled in stock OS/kernel) . To avoid this you have to flash either SuperSU or flash any of the verity disabler zips there in xda
 

janhieber

Member
May 10, 2011
25
9
0
Hi . Thx for You job . My phone stil a live :D But I have a question .

how about this one ? At first boot twrp will ask for "Swipe to allow modifications for /system" and if you choose to allow it system partition will get modified. So if you choose to reboot back to OS without performing anything in twrp, the OS won't boot (as verity check is enabled in stock OS/kernel) . To avoid this you have to flash either SuperSU or flash any of the verity disabler zips there in xda
What is the question? For me it worked without such vertiy disable stuff. Simply unlock the bootloader, boot and/or flash TWRP, root your phone or do anything else. When TWRP asks to change /system, answer yes.
 

dau999

Senior Member
Dec 27, 2010
175
52
48
Unable to Flash twrp recovery

After flashing oficial firmware, i am no longer able to flash twrp recovery, after each system reboot, i am back on stock recovery.
Does anyone know how to fix?

Flashed using: fastboot flash recovery twrp.img

Get a notification: bootloader file not signed or corrupt
 
Last edited: