[LeEco Le 2 Guides, News, & Discussion] ixthUA:
On Linux adb and fastboot work perfectly right out of box - it means you dont need to restart, tweak or install any drivers. Connect your phone and adb/fastboot will recognize it correctly.

I. You need Linux, if you have it - skip this part.

1. Downloading Ubuntu Linux.

Ubuntu is the most user friendly linux with the largest software pool. Download latest release here: https://www.ubuntu.com/download/desktop (note that LTS means long-term support (5 years), so prefer it).

2. Creating space for Linux installation.

Next you need a place to install it (8 GB is minimum, but also enough for everything). It can be a usb flash drive (in this case you will need two usb flash drives) or a hard drive (right click Start, select Disk Management, select Shrink Volume (any that has free space) and make 8 GB of unallocated space).

Read more here: https://technet.microsoft.com/en-us/library/gg309169.aspx

3. Creating a bootable USB Drive.

Next you need to create a bootable USB Drive. Download rufus: https://rufus.akeo.ie/ , run it.

Device - your usb drive that is to become a bootable usb drive. Check 'Create a bootable usb disk using ISO', then click on disk image right to it and select your downloaded Ubuntu .iso file. Click 'Yes' every time Rufus promtps and wait until it finishes installing.

4. Booting from USB Drive.

Reboot your PC, during boot repeatedly press Del key to enter BIOS. In bios go to Boot section and select to boot from your USB Flash Drive.

5. Installing Ubuntu.

When Ubuntu welcome screen opens - select Install Ubuntu. Uncheck prompt about 3rd-party software to save time (or dont, up to you). Installation type - select Something Else. Again select Something Else.

5.1 Creating Partition.

Device - select free (unallocated) space that you created earlier, click + to create a partition in it (do not click 'new partition table' - it will erase all data on that disk).

5.2 Configuring Partition.

Size - at least 8 GB (8192 MB), Type - Primary, Location - Beginning, File system - Ext4, Mount Point - /.

5.3 Selecting Partition.

Click OK, then select the partition you created (Ext4 /), then click Device for bootloader installation - select the same device that holds the partition you created.

5.4 Commencing installation.

Click Install Now and agree to prompts.

Finish installation.

6. Booting into installed Ubuntu linux.

Shut down PC.

Remove bootable usb drive.

Start PC and boot from the drive where you installed bootloader.

You should be able to boot into installed Ubuntu

7. Source list configuration.

7.1 Generating source list.

Press Win button, type firefox and open it. Go to https://repogen.simplylinux.ch/ to generate sources list, select your country and ubuntu release, then select the following sources:

Go to bottom and click Generate list. Then click Direct Link to Sources List, it should look like this:

Select everything and copy it.

7.2 Editing system source list.

Press Win button and type terminal, open it and type the following:

sudo gedit /etc/apt/sources.list

and enter your user password when prompted.

Gedit will open a text document (sources.list), delete there everything, then paste the sources you generated (they should be still in your copy buffer).

Press CTRL + S to save the document and close Gedit.

Return to the rource list you generated and pay attention to lines that start with:

## Run this command:

For each line copy everything that follows, paste into terminal (right click and select Paste) and press enter. It should look like this:

wget -q -O- http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -

7.3 Updating source list.

Afterwards in terminal type:

sudo apt update

and press Enter.

7.4 Installing ADB and Fastboot and updating them.

In terminal type:

sudo apt install android-tools-adb<press enter>
sudo apt install android-tools-fastboot<press enter>

<press enter> - means you need to press enter there.

Then:

sudo apt upgrade<press enter>

and wait till it updates your system.

8. Done!

Congratulations! You have a fully working Linux and a fully working ADB + Fastboot!

This step and onwards you may brick your device, proceed at your own risk!

II. Installing a default Stock Fastboot ROM.

You need this step to make sure your phone is using its own binary images, especially if you used custom ROM's previously.

1. Download default Stock Fastboot ROM.

You can find it here: https://www.needrom.com , or on other websites.

I have Leeco S3 x626, so i will use it as example.

ROM is located here: https://www.needrom.com/download/leeco-letv-le-s3-x626-multilanguage-eu-fastboot-stock-rom/

Download it and extract.

You should get a folder like this:

2. Getting file list and flashing order.

Inside should be a .bat file with an ordered list of fastboot commands to flash binary images to your phone. I edited it and for my phone it looks like this:

sudo fastboot devices
sudo fastboot oem unlock
sudo fastboot flash preloader preloader_s2_plus.bin (-)
sudo fastboot flash lk lk.bin (+)
sudo fastboot flash lk2 lk.bin (+)
sudo fastboot flash logo logo.bin (+)
sudo fastboot flash tee1 trustzone.bin (+)
sudo fastboot flash tee2 trustzone.bin (+)
sudo fastboot flash md1img md1rom.img (+)
sudo fastboot flash md1dsp md1dsp.img (+)
sudo fastboot flash md1arm7 md1arm7.img (+)
sudo fastboot flash md3img md3rom.img (+)
sudo fastboot flash scp1 tinysys-scp.bin (+)
sudo fastboot flash scp2 tinysys-scp.bin (+)
sudo fastboot flash boot boot.img (+)
sudo fastboot flash recovery recovery.img (+)
sudo fastboot flash cache cache.img (this step only for cuoco ROM)
sudo fastboot flash -S 100M system system.img (+) (-S 100M means sending data in 100 MB parts)
sudo fastboot -w (-w means to erase userdata and cache and format)

3. Locate binary image files.

In case of this ROM binary images are located in folder images.

Go to that folder and you should see something like this:

Open terminal, navigate to the folder with binary images. They should be in the folder /home/your_user_name/Downloads/

Type

ls -l

to see folder content.

Type

cd path

to enter folder,

cd ../

to go to previous folder.

When typing a file name - press TAB to auto-complete it.

Now that you are in the folder with binary images.

4. Enable OEM Unlocking, USB Debug and enter Fastboot mode.

In your Phone go to Settings -> About Phone and tap 7 times on Build Number.

Go back enter Developer Options and enable OEM Unlocking and USB Debugging.

Shut down your phone (hold power button).

Connect your phone to PC via USB cable.

Press Volume - and Power buttons for around 15 seconds to enter Fastboot.

In terminal type

sudo fastboot devices

- your phone should be listed there.

5. Flashing Fastboot ROM.

In terminal one after another type commands from step II.2, pressing enter after each line. You can copy them and paste (right click in terminal - Paste). Do not copy part in (), including () - they are for information purpose only.

Note that this file list is for my own phone (Leeco x626), for your phone you will want to generate your own file list and order.

Do not type "fastboot reboot", or your phone may get bricked!

6. Finishing.

After everything is done - hold power button until phone shuts down (around 15 sec), then start it and boot normally.

III. Flashing custom Fastboot ROM.

1. Download custom Fastboot ROM (for example on this website) and extract it.

2. In terminal navigate to the folder where you extracted it and find the folder with binary images.

3. Enable OEM Unlocking and USB debugging on your phone as in step II.4

4. As in step II.5 flash binary images of your custom ROM, except images that are not present. In my case i marked present images as (+) and absent images as (-).

5. When everything is done - hold power button for 15 seconds to shut down, then boot normally.