[RECOVERY][OFFICIAL]TWRP 3.0.2-0 [LeEco Le Max 2]

deadman96385

Retired Forum Moderator / Recognized Developer
Aug 19, 2011
2,230
7,761
203
Saint Paul, Minnesota
Code:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about doing this to your device
* YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
This is an official build of TWRP for the LeEco Le Max 2

Downloads:
https://twrp.me/devices/leecolemax2.html

Sources:
https://github.com/TeamWin/android_device_leeco_x2

Installation:
  1. Make sure your bootloader is unlocked
  2. Download the recovery image from above
  3. Reboot into fastboot
  4. Run this command (Change the .img to whatever the name of file is you downloaded):
Code:
fastboot flash recovery recovery.img
Known issues:
  • OTG is working for some people but not for others also some readers and flash drives are not being seen. Will look into fixing it.

This should work on all the variants but its only been tested on x829 let me know if you have any issues.

Credits:
  • Ncrypt3d : He had a original base that did not boot but we ping ponged and got it working.
  • @AndroPlus Fixing Decryption and getting OTG working with some cables
 
Last edited:

Bogeyof

Senior Member
Nov 24, 2011
590
184
73
Augsburg
Thanks for devloping. Tested V1.0. Device is booting in recovery, settings as usual, seems working...
OTG dont work. No Option for backing up firmware (TWRP_TeamSpain has one), i think the Option for backing up EFS is not needed on this device (may be wrong text, backup of firmware here?)...
 

deadman96385

Retired Forum Moderator / Recognized Developer
Aug 19, 2011
2,230
7,761
203
Saint Paul, Minnesota
Thanks for devloping. Tested V1.0. Device is booting in recovery, settings as usual, seems working...
OTG dont work. No Option for backing up firmware (TWRP_TeamSpain has one), i think the Option for backing up EFS is not needed on this device (may be wrong text, backup of firmware here?)...
I will add firmware (Modem partition) in the next build, EFS is always good to have a backup of encase something happens to it. Do any of the recovery's have working OTG? My goal for this is to allow a central location for twrp so you do not have to go to random sites to get it and in the future to get it officially supported once decryption works.
 
  • Like
Reactions: thielek

Bogeyof

Senior Member
Nov 24, 2011
590
184
73
Augsburg
I will add firmware (Modem partition) in the next build, EFS is always good to have a backup of encase something happens to it. Do any of the recovery's have working OTG? My goal for this is to allow a central location for twrp so you do not have to go to random sites to get it and in the future to get it officially supported once decryption works.
I tried nearly all available TWRP versions for X820. I think i´ve tested about 8-10 different. None of them was capable of using OTG. But with firmware 14S/15S/16S OTG working flawlessly with booted system. So kernel should be ready for it?...
Do you know "flashfire" from chainfire? With flashfire, Backup to OTG storage is working flawlessly, may be cause he uses standard system kernel / software...
I´m not sure which partition (data) you save with "EFS", I thought there is no partition named EFS ?...
In TeamSpain-Recovery, it´s not just modem, all other firmware files are backed up too. (Not sure if this is necessary?).

Thanks again for developing things for our X820!!!
 
Last edited:

deadman96385

Retired Forum Moderator / Recognized Developer
Aug 19, 2011
2,230
7,761
203
Saint Paul, Minnesota
I tried nearly all available TWRP versions for X820. I think i´ve tested about 8-10 different. None of them was capable of using OTG. But with firmware 14S/15S/16S OTG working flawlessly with booted system. So kernel should be ready for it?...
Do you know "flashfire" from chainfire? With flashfire, Backup to OTG storage is working flawlessly, may be cause he uses standard system kernel / software...
I´m not sure which partition (data) you save with "EFS", I thought there is no partition named EFS ?...
In TeamSpain-Recovery, it´s not just modem, all other firmware files are backed up too. (Not sure if this is necessary?).

Thanks again for developing things for our X820!!!
For OTG to work i need to find the proper path i will be ordering a usb c otg cable very soon then i can get it fixed easily.

These are the partitions that get backed up under the EFS name. They are the EFS partitions of this device.
/dev/block/bootdevice/by-name/modemst1
/dev/block/bootdevice/by-name/modemst2

Personally i do not see a reason to backup all of the separate firmware partitions because there are lots of ota files that include them in their entirety.

Edit: New update that adds backing up of the modem partition (Firmware)
 
Last edited:
  • Like
Reactions: thielek and lshopq

deadman96385

Retired Forum Moderator / Recognized Developer
Aug 19, 2011
2,230
7,761
203
Saint Paul, Minnesota

Antisound

Member
Nov 24, 2012
42
20
28
Wow this is amazing work!! I have merged your pull request and have now put in a request to get the max 2 officially supported it will happen soon!
Sorry for being obtrusive... But you talked sometime about the CyanogenMod. Do you still think that there's an Option we'll c it (with kernel sources release) on our lovely phone sometime?
 

AndroPlus

Senior Member
Mar 13, 2013
1,707
3,984
153
Kyoto
androplus.org
There is a TWRP with OTG out now, may be the pathes for OTG could read out from it?
Download: TWRP_3.0.2-0_Le_X820.img (https://yadi.sk/d/MQFKSXjPvgdCF)
From: HTCMania - Ver Mensaje Individual - RECOVERY TWRP 3.0.2-0 con soporte OTG (http://www.htcmania.com/showpost.php?p=24395005&postcount=1)
It's just a copy of my build:silly:

When I tested with my OTG cable it didn't work, so I thought my attempt was failed...
Here is device tree of my build:
https://github.com/AndroPlus-org/android_device_leeco_x2-twrp
 
Last edited: