[Xiaomi Mi 11 Lite 5G] rayman95:
ALTERNATIVE WAY OF FLASHING THE ROM

For those like me who have issue with flashing this rom here i what I do to bypass recovery issue..

after flash boot+vendor and start on LOS recovery and format data, I click update but I haven' apply update from sdcard1 but justapply from ADB..in advanced settings, there isn't such option....so I installed with ADB sideload

that what I do, and after 1 error I tried again and got error when I command adb reboot that system was not installed but I'm now on your rom....only issue is with my sdcard not recognized...have to backup on pc, format and recopy back, but certainly error on my side when I flash back miui rom.......

Install Custom ROM with ADB sideload

What is Android Debug Bridge?

ADB is a command-line tool included in the Android SDK development kit. It is used to communicate with any device that runs the Android operating system. You can use the ADB commands to perform various operations on your Android device.

With the help of the Android Debug bridge, you can install custom ROMs, mods, GApps, backup Android, flash official stock firmware, and install Android apps. Besides, you can also use ADB to uninstall bloatware without Root, downgrade an app, etc.

What is ADB Sideload?

ADB sideload, a command that transfer and install a zip file on an Android device from the PC. This command is handy for a custom ROM developer to push and install any installation zip file directly on a device.

The sideload feature was introduced with the Android Jelly bean recovery. Most importantly, this sideload mode requires a TWRP recovery version 2.3 or higher. Besides, it is also essential to install the latest ADB binaries on your PC.

How to Flash Custom ROM using ADB and Fastboot

Are you ready to use ADB and Fastboot for flashing custom firmware on your Android phone? Then let’s get started.

Warning

Ensure to install the right custom ROM on your Android phone. Do NOT proceed if the firmware is incompatible with your phone model number.

Requirements

A Windows PC and a standard USB cable.

Charge your device to a minimum of 50%.

Install mobile USB drivers on your computer.

Enable USB Debugging mode from your device settings.

Also, enable the OEM unlocking and Advance reboot mode.

Moreover, unlock your device bootloader.

Install TWRP 2.3 or higher on your Android device.

(Optional) Temporarily disable antivirus and firewall on your PC.

Steps to Install Custom ROM using ADB Sideload

Follow these step-by-step instructions to sideload the zip file on your Android phone.

1. Download Custom ROM

At first, download the mobile-specific Android custom ROM on your PC.

Ensure that the ROM file is in zip format.

Also, download the correct firmware that is compatible with your device’s model number.

2. Install ADB and Fastboot drivers

Download and install the latest ADB drivers on your computer.

Make sure that the ADB version is 1.0.29 or higher.

3. Transfer Custom ROM to ADB folder

Copy the downloaded custom ROM and paste it into the ADB folder.

The folder default location will be C:\Program Files\Minimal ADB and Fastboot.

4. Boot Android phone into Recovery mode

Switch off your Android phone.

Now, restart it into recovery mode.

Every device has different methods to boot into recovery.

You can either Google it or use the Recovery reboot app from Play Store.

5. Set the device into ADB sideload mode

As soon as you enter the recovery mode, click on the Advanced button.

On the next screen, click on the ADB sideload option.

6. Connect Android phone to PC

Now, connect your Android device to the computer using a USB cable.

Keep the device as it is in sideload mode.

After a successful connection, tick the Wipe Davik Cache and Wipe Cache options.

Then, swipe right on your device to start sideload.

7. Launch CMD window

Open the ADB folder, hold your keyboard’s Shift button, and right-click.

From the list of options, tap on the Open command window here option.

This will open the command prompt window on your PC.

8. Confirm the ADB connection

Furthermore, type the below command in the cmd window and press the enter key:

adb devices

You’ll see some random numbers with a ‘List of devices attached’ message.

This will confirm that your Android device is successfully connected to the PC.

9. Flash Custom ROM with ADB sideload command

To flash the custom ROM zip package file, enter the below command in the CMD:

adb sideload LineageOS18.zip

Make sure to type the exact name of the custom ROM file.

Also, don’t forget to add the zip extension at the end.

Here, I’m flashing LineageOS18 custom ROM.

Finally, hit the enter key to begin the ROM flashing process.

10. Reboot Android phone

On the installation finishes, your device will show a message saying, ‘ADB sideload complete.’

Tap on the Reboot System option to restart your device.

or those who don't know how to use ADB sideload here is a tuto you can read

How to Flash Custom ROM using ADB sideload [Easy Steps] ​

Flash Custom ROM zip file with ADB and Fastboot commands on any Android phone. Install Custom Firmware without TWRP recovery using CMD.

How to use adb

Attachments​