[RECOVERY][UNOFFICIAL] TWRP-3.2.3-x [lake]

jeffreyvh

Senior Member
Jan 18, 2013
521
1,055
0
127.0.0.1
Team Win Recovery Project (TWRP) is an open-source software custom recovery image for Android-based devices. It provides a touchscreen-enabled interface that allows users to install third-party firmware and back up the current system, functions often unsupported by stock recovery images. It is, therefore, often installed when rooting Android devices, although it isn't dependent on a device being rooted to be installed.

Notes for themers: In addition to the udpated theme, we have introduced a theme version variable to the TWRP theme system. If the theme version does not match the version that TWRP expects, TWRP will reject the custom theme and load its stock theme. This change will ensure that people who update TWRP without updating their theme will still have a workable recovery. We have removed libjpeg support. The stock theme was only using a jpeg image for the splash / curtain. This change means that any custom themes will no longer be able to use jpeg images. It also means that tools used to repack recovery images with a different curtain / splash will need to be updated to use the new method.

Version number notes: For a while we’ve been using a 4 digit version number and reserved the 4th digit for device-specific updates. For instance, we find and fix a device-specific issue like decryption of data on Nexus 5, we would release that as a 2.8.7.1. After a while, some people would start asking where 2.8.7.1 was for other devices. So, going forward we have decided to change the numbering scheme to 3.0.0-2, etc. Our hope is that this version numbering scheme will more clearly identify that the 4th digit does not indicate a version change for the code base.

We need your help! The bulk of TWRP work is done by 3 people on a volunteer basis. We have pushed most of our device files to our github and we have a gerrit instance. If you have the ability, please help us maintain our official devices and/or add your device to our official device list. Thanks in advance!



DOWNLOAD:
Note this is a very early build. Feel free to report bugs.
twrp*.img (DO NOT FLASH OR TRY TO BOOT THIS, SOFT BRICK CAN OCCUR)


Fastboot Flashing Code (Boot only, not flash!)
Code:
[CENTER]fastboot boot twrp*.img[/CENTER]
BUGS:
  • /EVERYTHING > IT NOT EVEN BOOTS AND MIGHT SOFT BRICK YOUR PHONE

If you have found a bug, please consider posting it to our github issues log. It's pretty much impossible for us to keep up with the more than 40 threads that we have for the devices that we "directly" support. If you have a significant problem that cannot be answered in this thread, your best bet is to PM me directly, contact us via our website, or find us in our IRC channel below. If you see someone that's struggling, feel free to point it out to us. We need your help to help us keep track of all of our devices! Thanks!

SUPPORT:
Live support is available via #twrp on Freenode with your IRC client or just click this link.

Kernel source: Prebuilt stock kernel
 
Last edited:

jeffreyvh

Senior Member
Jan 18, 2013
521
1,055
0
127.0.0.1
The command is wrong, it should be:

fastboot boot recovery twrp*.img

Haven't tried it yet as I'm already rooted but may soon.
No, I haven't wrote it wrong.
You mean "fastboot flash recovery twrp*.img".
But like I wrote, we will for now just boot it ;)

Our device got treble (A/B) so our recovery is intergrated into the kernel, which means that if you'll flash it you will not be able to boot anymore.

I'd like to hear from somebody if it works, I can't test it as I not yet unlocked the bootloader.
 

Dahenjo

Senior Member
Oct 18, 2014
678
326
83
CT
No, I haven't wrote it wrong.
You mean "fastboot flash recovery twrp*.img".
But like I wrote, we will for now just boot it ;)

Our device got treble (A/B) so our recovery is intergrated into the kernel, which means that if you'll flash it you will not be able to boot anymore.

I'd like to hear from somebody if it works, I can't test it as I not yet unlocked the bootloader.
Sorry, I thought it needed 'recovery' in the command either to boot twrp or to flash it.

So when we have an official working TWRP what command will we use to install it?

Maybe some other brave soul will give it a try.
 

jeffreyvh

Senior Member
Jan 18, 2013
521
1,055
0
127.0.0.1
No it doesnt.

And booting TWRP is safe, as it won't install anything to you're phone! It is only temporary, as you boot it.

The Moto Z3 Play (almost the same specs) also use this method. You can take a look at their forum ;)
 

washoq

Senior Member
May 25, 2016
139
74
28
No it doesnt.

And booting TWRP is safe, as it won't install anything to you're phone! It is only temporary, as you boot it.

The Moto Z3 Play (almost the same specs) also use this method. You can take a look at their forum ;)
Hi, thanks for bringing it up. I have tried to boot the TWRP but it does not work. It simply reboots to system.
Is there anything more I should do beside rebooting to bootloader and executing command?
 

jeffreyvh

Senior Member
Jan 18, 2013
521
1,055
0
127.0.0.1
Hi, thanks for bringing it up. I have tried to boot the TWRP but it does not work. It simply reboots to system.
Is there anything more I should do beside rebooting to bootloader and executing command?
As far as I know you shouldn't do more then this, I'll probably just unlock my bootloader ;)

Ah and can you write me the exact command which you have been using?

Thanks for testing!
 

washoq

Senior Member
May 25, 2016
139
74
28
As far as I know you shouldn't do more then this, I'll probably just unlock my bootloader ;)

Ah and can you write me the exact command which you have been using?

Thanks for testing!
Yeah, sure, this are commands I have used:

Code:
adb devices
adb reboot bootloader
fastboot devices
fastboot boot twrp-3.2.3-1-lake.img
Image file was in adb folder.

One more thing. After I've tried above I couldn't boot to system normally (it always booted to stock recovery). Only executing 'fastboot boot recovery twrp-3.2.3-1-lake.img' booted to system.
So I thought it is common problem when you need to use 'fastboot continue' to go to system but after using this command I was not able to boot system at all, even boot recovery command
was not working (it gave me an error). Eventually I was forced to do factory reset from stock recovery and it did the trick, system booted normally. So unfortunately I must say it is not safe to even boot this recovery.
However I am willing to help/test as long as I am able to recover using factory reset.
 
Last edited:
  • Like
Reactions: tmbernt and FrankRr

Dahenjo

Senior Member
Oct 18, 2014
678
326
83
CT
And booting TWRP is safe, as it won't install anything to you're phone! It is only temporary, as you boot it.
I tried this too last night (using command: 'fastboot boot twrp-3.2.3-1-lake.img') with same result requiring a factory reset, it boots to system then on next reboot got the "Can't Load Android System" error repeatedly with the only apparent option to do a factory reset which wipes everything.

However, I just saw in OP of this G6+ thread that flashing the gpt.bin from the firmware may fix partition table corruption likely causing that, so will try that first next time before doing a factory reset. Command is: 'fastboot flash gpt.bin'.

I suggest you take down the link until either you can unlock & test or one of us willing guinea pigs can, but I don't think posting it publicly totally untested was a good idea. You could PM myself, Washoq, or others who volunteer here with a private link, then when it's safely functional enough for a few of us then it post again publicly for fine-tuning. Appreciate your efforts but let's try to proceed more cautiously.
 

jeffreyvh

Senior Member
Jan 18, 2013
521
1,055
0
127.0.0.1
Yeah, sure, this are commands I have used:

Code:
adb devices
adb reboot bootloader
fastboot devices
fastboot boot recovery twrp-3.2.3-1-lake.img
Image file was in adb folder.

One more thing. After I've tried above I couldn't boot to system normally (it always booted to stock recovery). Only executing 'fastboot boot recovery twrp-3.2.3-1-lake.img' booted to system.
So I thought it is common problem when you need to use 'fastboot continue' to go to system but after using this command I was not able to boot system at all, even boot recovery command
was not working (it gave me an error). Eventually I was forced to do factory reset from stock recovery and it did the trick, system booted normally. So unfortunately I must say it is not safe to even boot this recovery.
However I am willing to help/test as long as I am able to recover using factory reset.
Hey, I see the problem. Like I already thought....

In my post is "fastboot boot twrp-3.2.3-1-lake.img" not include recovery!

Try this command and let me know, sorry if it sounds rude. But I told it was safe with my command, and you didn't use my command.

Thank you very much for testing, I really appreciate that! :D
 
  • Like
Reactions: FrankRr

jeffreyvh

Senior Member
Jan 18, 2013
521
1,055
0
127.0.0.1
I tried this too last night (using command: 'fastboot boot twrp-3.2.3-1-lake.img') with same result requiring a factory reset, it boots to system then on next reboot got the "Can't Load Android System" error repeatedly with the only apparent option to do a factory reset which wipes everything.

However, I just saw in OP of this G6+ thread that flashing the gpt.bin from the firmware may fix partition table corruption likely causing that, so will try that first next time before doing a factory reset. Command is: 'fastboot flash gpt.bin'.

I suggest you take down the link until either you can unlock & test or one of us willing guinea pigs can, but I don't think posting it publicly totally untested was a good idea. You could PM myself, Washoq, or others who volunteer here with a private link, then when it's safely functional enough for a few of us then it post again publicly for fine-tuning. Appreciate your efforts but let's try to proceed more cautiously.
I edited the OP and putted there clear warnings ;)

I leave the download link there yet for people who might wanna help me :)
 
  • Like
Reactions: FrankRr

washoq

Senior Member
May 25, 2016
139
74
28
Hey, I see the problem. Like I already thought....

In my post is "fastboot boot twrp-3.2.3-1-lake.img" not include recovery!

Try this command and let me know, sorry if it sounds rude. But I told it was safe with my command, and you didn't use my command.

Thank you very much for testing, I really appreciate that! :D
Not rude at all, no problem. It is actually my mistake. I wrote from my memory. I used command without 'recovery' as I copied it from your post.
Sorry for this. confusion. I will correct my post. So basically we are at the same place. Dahenjo confirmed that it does work like I described.
Still I am willing to test when you deliver new version with some fixes. Good luck :)
 
  • Like
Reactions: FrankRr

disi_de

New member
Mar 15, 2019
2
0
0
I also tried to boot the TWRP image, but nothing happened except a reboot of the g7 Plus to the system. Did I do something wrong?

Code:
C:\adb>adb devices
List of devices attached
ZY225CQ6T7      device
C:\adb>adb reboot bootloader
C:\adb>fastboot devices
ZY225CQ6T7      fastboot
C:\adb>fastboot boot twrp-3.2.3-1-lake.img
downloading 'boot.img'...
OKAY [  0.880s]
booting...
OKAY [  5.188s]
finished. total time: 6.068s
I would like to install Magisk. Is it possible to do this in a different way?
 

Jleeblanch

Senior Member
Feb 6, 2012
1,993
5,690
153
Colchester, VT
I edited the OP and putted there clear warnings ;)



I leave the download link there yet for people who might wanna help me :)
So I got Moto to finally release kernel source. Where you have your device tree for lake? I got the kernel just about ready, but am curious what you used for device tree before I start my own.

Long story short, I'm trying to get TWRP working and bootable for you guys (I am picking up the device in the coming weeks). But I'd like to get things going for you guys in the meantime. I currently own Beckham and Evert (both very similar devices) so I know a little about these devices.
 

Dahenjo

Senior Member
Oct 18, 2014
678
326
83
CT
So I got Moto to finally release kernel source. Where you have your device tree for lake? I got the kernel just about ready, but am curious what you used for device tree before I start my own.

Long story short, I'm trying to get TWRP working and bootable for you guys (I am picking up the device in the coming weeks). But I'd like to get things going for you guys in the meantime. I currently own Beckham and Evert (both very similar devices) so I know a little about these devices.
Thanks for working on this, Joshua. OP hasn't said how they produced it, but it was untested causing a soft brick/factory reset for a few of us who tried it with the proper command line syntax for booting.

I was experimenting but am not a dev, began a porting guide but it didn't cover differences on newer A/B phones with recovery integrated into the boot.img so I couldn't follow it. However, along the way I tried booting both G6+ (evert) and Z3 Play (beckham) official TWRPs, which didn't work, just ended up back at bootloader, but didn't cause any further problems from simply booting.

I'll be glad to test if/when something is ready, and thanks again for helping us out. I already have root using this procedure without TWRP, but it'd be nice to do nandroids and I assume/hope we'll see some ROMs someday, perhaps RR for Lake. ;)
 

Jleeblanch

Senior Member
Feb 6, 2012
1,993
5,690
153
Colchester, VT
Thanks for working on this, Joshua. OP hasn't said how they produced it, but it was untested causing a soft brick/factory reset for a few of us who tried it with the proper command line syntax for booting.



I was experimenting but am not a dev, began a porting guide but it didn't cover differences on newer A/B phones with recovery integrated into the boot.img so I couldn't follow it. However, along the way I tried booting both G6+ (evert) and Z3 Play (beckham) official TWRPs, which didn't work, just ended up back at bootloader, but didn't cause any further problems from simply booting.



I'll be glad to test if/when something is ready, and thanks again for helping us out. I already have root using this procedure without TWRP, but it'd be nice to do nandroids and I assume/hope we'll see some ROMs someday, perhaps RR for Lake. ;)
From what I hear it's just a ported version, which is fine. I'll finish putting together a device tree in the coming days and the kernel and should have a build for testing soon. I'll link it here when I got a build for testing so we can get a bootable build going.
 

washoq

Senior Member
May 25, 2016
139
74
28
From what I hear it's just a ported version, which is fine. I'll finish putting together a device tree in the coming days and the kernel and should have a build for testing soon. I'll link it here when I got a build for testing so we can get a bootable build going.
Thanks for your work. I am also willing to test when you have possibly working build.
 

jeffreyvh

Senior Member
Jan 18, 2013
521
1,055
0
127.0.0.1
From what I hear it's just a ported version, which is fine. I'll finish putting together a device tree in the coming days and the kernel and should have a build for testing soon. I'll link it here when I got a build for testing so we can get a bootable build going.
Hi, my build wasn't ported. I used the zImage from the stock kernel which I extracted. The device tree I made was based of the Z3 Play device tree. I probably know why it was causing this issue. It has something to do with encryption, when I'll have my new Linux Machine set up I'll take a look at this. And also this time I will be downloading the full omni source, instead of the minimal one required to build only TWRP. It could be the case that this is causing issues as well.

Nice to see some more devs coming over to this device. It's a pretty decent phone, the only downside for me is the battery but I'm glad we've got this rapidly fast 28W fast charging.

Anyways, when I'll have my Linux environment set up. I'll upload the device tree to GitHub including the extracted kernel image I've used.
 
  • Like
Reactions: Dahenjo and FrankRr
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone