[LeEco Le 2 Guides, News, & Discussion] PojntFX:
[GUIDE 2] Unbrick, Unlock the LeEco Le 2 (X52x/Snapdragon) and Install LineageOS 15.1

Necessary Files

Editor's Note: I know that I should not mirror some of these. I'm still going to do it for preservation's sake, but please consider using the official ones if possible. Mirroring files, like I am doing below, is simply necessary in the custom ROM world as they they tend to disappear quite quickly otherwise. For example, at the time of writing this, the modem files have already disappeared from the internet. Take a look at projects like the Interplanetary File System that try to solve such problems and contribute if you are able to.

[COLOR=#333333][FONT=monospace][COLOR=#333333]| File | Needed Platform | Usage | Official Info Site | Official Download Site | Unofficial Download Mirror |[/COLOR]
[COLOR=#333333]| ---------------------------------------------------------------- | ----------------- | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |[/COLOR]
[COLOR=#333333]| [/COLOR][COLOR=#333333]`QPST_2.7.438.3 By Tech Poison.zip`[/COLOR][COLOR=#333333] | Windows | Flashing official factory images | [/COLOR][COLOR=#383a42][[/COLOR][COLOR=#4078f2]Tech Poison[/COLOR][COLOR=#383a42]][/COLOR][COLOR=#a626a4](https://www.techpoison.in/2017/12/how-to-flash-letv-le-2-x526-stock.html)[/COLOR][COLOR=#333333] | [/COLOR][COLOR=#383a42][[/COLOR][COLOR=#4078f2]MediaFire[/COLOR][COLOR=#383a42]][/COLOR][COLOR=#a626a4](http://www.mediafire.com/file/avfo9ql599suxdb/QPST_2.7.438.3+By+Tech+Poison.zip)[/COLOR][COLOR=#333333] | (Not available yet, sorry) |[/COLOR]
[COLOR=#333333]| [/COLOR][COLOR=#333333]`x526.zip`[/COLOR][COLOR=#333333] | Windows | Official factory image | [/COLOR][COLOR=#383a42][[/COLOR][COLOR=#4078f2]xdadevelopers[/COLOR][COLOR=#383a42]][/COLOR][COLOR=#a626a4](https://xdaforums.com/le-2/development/tools-unbrick-thread-leeco-le-2-x52x-t3634609/post72975107#post72975107)[/COLOR][COLOR=#333333] | [/COLOR][COLOR=#383a42][[/COLOR][COLOR=#4078f2]Mega[/COLOR][COLOR=#383a42]][/COLOR][COLOR=#a626a4](https://mega.nz/#!65xR2AiB!crBkfNh8eLAsvl3ts1SZBMYzjCQZdgkA-YamUz0NysM)[/COLOR][COLOR=#333333] | (Not available yet, sorry) |[/COLOR]
[COLOR=#333333]| [/COLOR][COLOR=#333333]`QDLoader HS-USB Driver .rar`[/COLOR][COLOR=#333333] | Windows | Qualcomm Drivers 1 | [/COLOR][COLOR=#383a42][[/COLOR][COLOR=#4078f2]xdadevelopers[/COLOR][COLOR=#383a42]][/COLOR][COLOR=#a626a4](https://xdaforums.com/le-2/development/tools-unbrick-thread-leeco-le-2-x52x-t3634609/post72975107#post72975107)[/COLOR][COLOR=#333333] | [/COLOR][COLOR=#383a42][[/COLOR][COLOR=#4078f2]Mega[/COLOR][COLOR=#383a42]][/COLOR][COLOR=#a626a4](https://mega.nz/#!ughHVAqK!79wHiYqTDZDk3_6flBu6G9JtlSDRpYctqd-op2584iA)[/COLOR][COLOR=#333333] | (Not available yet, sorry) |[/COLOR]
[COLOR=#333333]| [/COLOR][COLOR=#333333]`QUD.WIN.1.1 Installer-10037.3 Setup .zip`[/COLOR][COLOR=#333333] | Windows | Qualcomm Drivers 2 | [/COLOR][COLOR=#383a42][[/COLOR][COLOR=#4078f2]xdadevelopers[/COLOR][COLOR=#383a42]][/COLOR][COLOR=#a626a4](https://xdaforums.com/le-2/development/tools-unbrick-thread-leeco-le-2-x52x-t3634609/post72975107#post72975107)[/COLOR][COLOR=#333333] | [/COLOR][COLOR=#383a42][[/COLOR][COLOR=#4078f2]Mega[/COLOR][COLOR=#383a42]][/COLOR][COLOR=#a626a4](https://mega.nz/#!e4YCTS4Z!YpNK36Mc6jk5ncDkYmMlriYVAixO5ldMBlglvU3ipb8)[/COLOR][COLOR=#333333] | (Not available yet, sorry) |[/COLOR]
[COLOR=#333333]| [/COLOR][COLOR=#333333]`MSM8976.TA.2.0.0.c18-00004-8976_GEN_PACK-1.65238.1.66782.1.zip`[/COLOR][COLOR=#333333] | GNU/Linux/Windows | Modem (fixes WiFi + cellular ) | [/COLOR][COLOR=#383a42][[/COLOR][COLOR=#4078f2]xdadevelopers[/COLOR][COLOR=#383a42]][/COLOR][COLOR=#a626a4](https://xdaforums.com/le-2/how-to/modem-lineageos-rr-case-messed-zips-t3533570)[/COLOR][COLOR=#333333] | [/COLOR][COLOR=#383a42][[/COLOR][COLOR=#4078f2]Google Drive[/COLOR][COLOR=#383a42]][/COLOR][COLOR=#a626a4](https://drive.google.com/file/d/0B1CAcz7jct9jcllxNmNIcVRnbmM/view)[/COLOR][COLOR=#333333] | (Not available yet, sorry) |[/COLOR]
[COLOR=#333333]| [/COLOR][COLOR=#333333]`twrp-3.2.1-0-s2.img`[/COLOR][COLOR=#333333] | GNU/Linux/Windows | TWRP recovery | [/COLOR][COLOR=#383a42][[/COLOR][COLOR=#4078f2]TeamWin - TWRP[/COLOR][COLOR=#383a42]][/COLOR][COLOR=#a626a4](https://eu.dl.twrp.me/s2/)[/COLOR][COLOR=#333333] | [/COLOR][COLOR=#383a42][[/COLOR][COLOR=#4078f2]TeamWin - TWRP[/COLOR][COLOR=#383a42]][/COLOR][COLOR=#a626a4](https://eu.dl.twrp.me/s2/)[/COLOR][COLOR=#333333] | (Not available yet, sorry) |[/COLOR]
[COLOR=#333333]| [/COLOR][COLOR=#333333]`minimal_adb_fastboot_v1.4.3_setup.exe`[/COLOR][COLOR=#333333] | Windows | ADB + Fastboot tools | [/COLOR][COLOR=#383a42][[/COLOR][COLOR=#4078f2]xdadevelopers[/COLOR][COLOR=#383a42]][/COLOR][COLOR=#a626a4](https://xdaforums.com/showthread.php?t=2317790)[/COLOR][COLOR=#333333] | [/COLOR][COLOR=#383a42][[/COLOR][COLOR=#4078f2]Android File Host[/COLOR][COLOR=#383a42]][/COLOR][COLOR=#a626a4](https://androidfilehost.com/?fid=746010030569952951)[/COLOR][COLOR=#333333] | (Not available yet, sorry) |[/COLOR]
[COLOR=#333333]| [/COLOR][COLOR=#333333]`adb`[/COLOR][COLOR=#333333] and [/COLOR][COLOR=#333333]`fastboot`[/COLOR][COLOR=#333333] packages | GNU/Linux | ADB + Fastboot tools | [/COLOR][COLOR=#383a42][[/COLOR][COLOR=#4078f2]Debian[/COLOR][COLOR=#383a42]][/COLOR][COLOR=#a626a4](https://packages.debian.org/search?searchon=names&keywords=android-tools)[/COLOR][COLOR=#333333] | Run [/COLOR][COLOR=#333333]`apt install android-tools-adb android-tools-fastboot`[/COLOR][COLOR=#333333] on Debian/Ubuntu or [/COLOR][COLOR=#333333]`dnf install android-tools`[/COLOR][COLOR=#333333] on Fedora | Not relevant |[/COLOR]
[COLOR=#333333]| [/COLOR][COLOR=#333333]`lineage_s2-2018-08-13-12-03-21.zip`[/COLOR][COLOR=#333333] | GNU/Linux/Windows | LineageOS 15.1 (Unofficial) with OTA | [/COLOR][COLOR=#383a42][[/COLOR][COLOR=#4078f2]xdadevelopers[/COLOR][COLOR=#383a42]][/COLOR][COLOR=#a626a4](https://xdaforums.com/le-2/development/x52x-lineage-15-1-ota-t3821001)[/COLOR][COLOR=#333333] | [/COLOR][COLOR=#383a42][[/COLOR][COLOR=#4078f2]Own Server[/COLOR][COLOR=#383a42]][/COLOR][COLOR=#a626a4](http://vps533936.ovh.net/ota/zip/s2/)[/COLOR][COLOR=#333333] | (Not available yet, sorry, but check out the [/COLOR][COLOR=#383a42][[/COLOR][COLOR=#4078f2]source code[/COLOR][COLOR=#383a42]][/COLOR][COLOR=#a626a4](https://github.com/topjohnwu/Magisk)[/COLOR][COLOR=#333333]) |[/COLOR]
[COLOR=#333333]| [/COLOR][COLOR=#333333]`Magisk-v16.7.zip`[/COLOR][COLOR=#333333] | GNU/Linux/Windows | Root Permission Manager | [/COLOR][COLOR=#383a42][[/COLOR][COLOR=#4078f2]GitHub[/COLOR][COLOR=#383a42]][/COLOR][COLOR=#a626a4](https://github.com/topjohnwu/Magisk)[/COLOR][COLOR=#333333] | [/COLOR][COLOR=#383a42][[/COLOR][COLOR=#4078f2]GitHub[/COLOR][COLOR=#383a42]][/COLOR][COLOR=#a626a4](https://github.com/topjohnwu/Magisk/releases)[/COLOR][COLOR=#333333] | Not available yet, sorry, but check out the [/COLOR][COLOR=#383a42][[/COLOR][COLOR=#4078f2]source code[/COLOR][COLOR=#383a42]][/COLOR][COLOR=#a626a4](https://gitlab.com/le2_lineage)[/COLOR][COLOR=#333333]) |[/COLOR]
[COLOR=#333333]| [/COLOR][COLOR=#333333]`FDroid.apk`[/COLOR][COLOR=#333333] | GNU/Linux/Windows | Free/Open Source Software App Store | [/COLOR][COLOR=#383a42][[/COLOR][COLOR=#4078f2]F-Droid[/COLOR][COLOR=#383a42]][/COLOR][COLOR=#a626a4](https://f-droid.org/)[/COLOR][COLOR=#333333] | [/COLOR][COLOR=#383a42][[/COLOR][COLOR=#4078f2]F-Droid[/COLOR][COLOR=#383a42]][/COLOR][COLOR=#a626a4](https://f-droid.org/)[/COLOR][COLOR=#333333] | (Not available yet, sorry, but check out the [/COLOR][COLOR=#383a42][[/COLOR][COLOR=#4078f2]source code[/COLOR][COLOR=#383a42]][/COLOR][COLOR=#a626a4](https://gitlab.com/fdroid)[/COLOR][COLOR=#333333]) |[/COLOR]
[/FONT][/COLOR]

Preparation

We start with the worst state possible - the blinking/flashing red light brick. If this is not the case for you, just continue after these first steps, but I encourage you to read through them anyways as they are quite fascinating problems.

Hardware

If the phone is still charging, make sure you have enough (50% +) battery left to avoid going through extra steps

Make sure that the cable you are using is in good shape and does not have a flimsy connection (yes, this is important - the original LeEco cable is of quite bad quality, and it should not fail during a flashing process)

Software

Install QDLoader HS-USB Driver .rar, QUD.WIN.1.1 Installer-10037.3 Setup .zip, QPST_2.7.438.3 By Tech Poison.zip and minimal_adb_fastboot_v1.4.3_setup.exe on Windows. If you are using GNU/Linux, you'll have to use Windows machine to do the unbrick at first, but you'll be able to use GNU/Linux as soon as it has finished.

Fixing the Blinking/Flashing Red Light

This one nearly gave me a heart attack, but it's quite simple to fix. It simply means that the battery is deeply discharged and thus the phone can't boot. To continue to the next step, do the following:

Use a 3A charger. This one is crucial, as less powerfull chargers might not be able to fix the deeply discharged battery.

Use a working cable that is in good shape. This one is also crucial - the original LeEco cable seems to be of rather bad quality, so replace it with a better on if possible in case the brick does not go away after continuing.

Try plugging the USB cable into the charger and connecting the phone to it. The blinking/flashing red light should show up.

Leave the phone plugged in for some time. This will take longer, depending on your charger (it took about 3 minutes with the official 3A charger, but nearly a whole night with a 500mA one - so use the official one)

Press power and volume-up repeatedly for 15s+. Sooner or later, the LED will stop blinking/flashing and the phone will no longer charge. If the phone is bricked, it is now in Download mode - follow the next steps now. Note that the phone does no longer seem to be charging (I checked it with a power meter), but don't worry - this seems to be intentional. If the phone does not show up on your computer, just repeat steps 3-4 over and over again. It will work sooner or later. This is the same procedure as with the Redmi Note 4, in case someone is interested.

Entering Download Mode

Editor's Note: This is different from Recovery or Fastboot Mode, even though you can also download things through both of them.

The LeEco Le 2 has different "modes" which it can be in. You can enter them like this:

[COLOR=#333333][FONT=Fira Mono][COLOR=#333333]| Mode | Key Combination |[/COLOR]
[COLOR=#333333]| ------------ | -------------------------------------------------------------------------------- |[/COLOR]
[COLOR=#333333]| [/COLOR][COLOR=#986801][B]**Normal**[/B][/COLOR][COLOR=#333333] | Press [/COLOR][COLOR=#333333]`power`[/COLOR][COLOR=#333333] for 15s |[/COLOR]
[COLOR=#333333]| [/COLOR][COLOR=#986801][B]**Recovery**[/B][/COLOR][COLOR=#333333] | Press [/COLOR][COLOR=#333333]`power`[/COLOR][COLOR=#333333] and [/COLOR][COLOR=#333333]`volume-up`[/COLOR][COLOR=#333333] for 15s |[/COLOR]
[COLOR=#333333]| [/COLOR][COLOR=#986801][B]**Fastboot**[/B][/COLOR][COLOR=#333333] | Press [/COLOR][COLOR=#333333]`power`[/COLOR][COLOR=#333333] and [/COLOR][COLOR=#333333]`volume-down`[/COLOR][COLOR=#333333] for 15s |[/COLOR]
[COLOR=#333333]| [/COLOR][COLOR=#986801][B]**Download**[/B][/COLOR][COLOR=#333333] | Press [/COLOR][COLOR=#333333]`power`[/COLOR][COLOR=#333333], [/COLOR][COLOR=#333333]`volume-up`[/COLOR][COLOR=#333333] and [/COLOR][COLOR=#333333]`volume-down`[/COLOR][COLOR=#333333] for 15s (yes, all of them at once!) |[/COLOR]
[/FONT][/COLOR]

To unbrick the phone, enter the Download mode as described above.

Editor's Note: The screen will be black and there will be no visible feedback. This is intentional.

Connect to the Computer

Now, with the phone in Download mode, connect it to the computer using a USB-C to USB-A cable (such as the original one provided with the phone). Open up "Device Manager" and take a look at "Other Devices" - Something with "Qualcomm" should show up.

Extract the Factory Image

Extract x526.zip using 7-Zip.

Open QFIL and select the phone's COM port

Editor's Note: Make sure that you are using version 2.0.0.5 of the tool. Older and/or newer versions might not work (>= 2.0.0.5 did not work for me).

Open up QFIL from the start menu (the tool you've installed from above). Next, click on Select Port in the top right and select something with "Qualcomm" in the name (your phone). Make sure it actually is your phone - in my case, my laptop's mobile broadband module showed up as well, and we don't want to brick that (obviously ...).

Select the Extracted Factory Image

Below Select Build Type, select Flat Build

Below Select Programmer, select prog_emmc_firehose_8976_ddr.mbn from the extracted factory image's root directory

Below Select Build, select the factory image's root directory

Below Download, click on Load XML. First, select rawprogramm0.xml, click Open, then select patch0.xml and click Open again.

Check if the Download button is not striped anymore. This means that we can start the flashing process.

Flash the Factory Image

IMPORTANT: If you want to avoid the blinking/flashing red light brick alltogether, make sure that the following two requirements are met:

The phone is charged. Note that your computer might not provide enough amperage to sustain the phone in Download mode, so charge it before continuing, in case your phone does not suffer from the blinking/flashing red light brick yet.

The cable is plugged in correctly and can't slip out easily. While it is not the end of the world of the cable slips out during the flash, it will lead to the blinking/flashing red light brick more easily (as the loading bar won't show up anymore)

To flash the image, click on the blue Download button. In the Status output below the log of the flashing process can be seen. After it has finished, you should see "Download Succeed" in blue.

Test Out the Factory Image

If the flash was successful, enter Normal Mode, and test out the ROM and other phone functionality. The first boot might take some time (5-10 minutes).

Editor's Note: WiFi and cellular might not work just yet, at least it didn't for me (Hong Kong version/X520)

Enable OEM unlock

This is crucial - if you don't do this, you won't be able to flash a the recovery (TWRP) and/or any custom ROM.

Editor's Note: This is the part that got me into trouble in the first place.

To enable OEM unlocking, enter Normal Mode, and then do the following:

Open up Settings

Open up "About Device" (at the bottom)

Tap the "Build Number" 7 times (a toast should come up saying "Developer Settings have been enabled" or something like that)

Open up "Developer Settings"

Enable OEM unlock. Accept any warnings and double-check that the switch has actually been turned on.