How To Guide [TUTORIAL] ULTIMATE How to flash GSI Trebble AND ROM and root on Xiaomi device on Windows (files needed included)

Search This thread

rayman95

Senior Member
Jan 14, 2009
6,546
3,907
64
monaco
Google Nexus 4
Samsung Galaxy Note 3
When you say on Pg1

Code:

fastboot reboot recovery

This will boot you into a recovery and now you need to go to wipe and format data
After that go to apply update then adb sideload then

Which recovery pls? TWRP? or which recovery? At that stage, one hasn't loaded back up any other (custom rom) OS. On previous phones I had not problem using TWRP but after initailly formatting data & following the other flash commands on pg 1, I sideload Rice rom, then have the result as above...stuck on FASTBOOT (D). I no longer seem to ever get back to the android figure fastboot version on this phone. Help pls. Thanks
If you flash ROM, no need to go in fastbootD..and you don't have to be on twrp but on Los recovery..
 

TheDon13

Senior Member
Oct 9, 2010
153
12
Tried all that, still just keep coming back to fastboot D screen on a reboot. Stumped for the time being. Guess I could try the normal recovery image link from https://download.pixelexperience.org/renoir etc but as it is discontinued and no support and has a android security patch from June or July, which is no better than Miui 13.0.6 Global SKIEUXM that I have been on, there seems not much point....unless it would then allow me to move forward on to either Lineage or Tequila or Rice custom roms?? 🤔
 

rayman95

Senior Member
Jan 14, 2009
6,546
3,907
64
monaco
Google Nexus 4
Samsung Galaxy Note 3
Tried all that, still just keep coming back to fastboot D screen on a reboot. Stumped for the time being. Guess I could try the normal recovery image link from https://download.pixelexperience.org/renoir etc but as it is discontinued and no support and has a android security patch from June or July, which is no better than Miui 13.0.6 Global SKIEUXM that I have been on, there seems not much point....unless it would then allow me to move forward on to either Lineage or Tequila or Rice custom roms?? 🤔
You want to flash Los??? If another ROM, just flash Los then flash other ROM...but first do clean fastboot flash, with erase data, on last EEA 13.0.7...without locking bootloader
 

TheDon13

Senior Member
Oct 9, 2010
153
12
You want to flash Los??? If another ROM, just flash Los then flash other ROM...but first do clean fastboot flash, with erase data, on last EEA 13.0.7...without locking bootloader
Just any custom rom would be good. Flashing with TWRP in the past on previous phones seemed very straightforward. The recovery image being within boot.img and/or vendor boot.img seems mission impossible! As i say aster flahing those & then sideloading rom, getting up to 47% with known error at that point, thats all fine. BUT upon reboot, the new system doees not boot....I'm jutst back at FASTBOOT D screen every time......😢
 

TheDon13

Senior Member
Oct 9, 2010
153
12
Why don't these custom roms come with a FLASH ALL batch file like EEA 13.0.6 Glocal etc. When things go wrong, I just flash all.bat 13.05 Glocal EEA and that loads & boots fine, as well as retreiving eveything from my Google back up
 

TheDon13

Senior Member
Oct 9, 2010
153
12
Just to confirm I am using fastboot commands (within the minimal ADB & Fastboot program) and not the somewhat picky MiFlash software
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    Hi, first of all, I'm not a dev or else just user who had difficulties to flash GSI on my phone... Was 7 years with a samsung galaxy Note 3, with twrp....So easy to flash....
    with the help of @gr0ndpa, thanks to him.....

    FLASH GSI


    Now I will explain how to flash easily with files attached

    1/ first of all you need a phone and drivers installed, use xiaomi pc suite, unzip and install it
    2/ you need to activate USB debug in dev options.
    3/ dl adb folder unzip it and put in C
    4/ run command and type
    Code:
    cd /adb
    5/ then
    Code:
    adb devices
    to check if phone recognised
    6/
    Code:
    adb reboot bootloader
    once in fast boot
    7/
    Code:
    fastboot flash vbmeta vbmeta.img
    wait finished type to enter in fastbootD
    8/
    Code:
    fastboot reboot fastboot
    9/
    Code:
    fastboot flash system
    LiR 313.XXX.img
    you will have a system error, but wait the flash begin in few seconds
    at the end wait ok then
    10/
    Code:
    fastboot reboot recovery
    on stock recover
    11/ wipe data and reboot with +/- and PWR

    and you're done...

    In case you want to flash custom kernel or patched boot image to root with magisk, you have to

    12/
    Code:
    adb reboot bootloader

    Copy kernel boot image to C drive and rename kernel boot image to boot.img.

    13/
    Code:
    fastboot flash boot c:\boot.img
    14/
    Code:
    fastboot reboot


    In case you want to flash twrp put the file to adb folder and type in fastboot
    15/
    Code:
    fastboot boot twrp.img



    You can check what I ve done on tuto ss...

    if you have some comments, don't hesitate...
    I flashed LiR 18.1 rom and very happy with it.....

    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++==================================================================================================================================================================================================================++

    Flash ROM


    This now how to flash ROM on your device, it's convenient for all roms like LOS, corvus, awaken...

    First you need all the proper drivers installed and unlocked bootloader, USB debugging all of that stuff.

    Now open up a cmd/terminal , and put the files i sent and the ROM file in the folder from where you're opening the cmd/terminal and connect the phone (you may need to put ./ as an suffix for all the commands if you're on linux)

    Type
    Code:
    adb reboot bootloader

    Then type
    Code:
    fastboot devices
    to see if everything is ok

    Then type

    Code:
    fastboot flash boot_ab boot.img
    (you can drag and drop the file instead of typing it)

    After that's done type

    Code:
    fastboot flash vendor_boot_ab vendor_boot.img
    (you can drag and drop this too if you want)

    Code:
    fastboot flash dtbo dtbo.img
    (you can drag and drop this too if you want)

    After that's done type

    Code:
    fastboot reboot recovery
    This will boot you into a recovery and now you need to go to wipe and format data
    After that go to apply update then adb sideload then

    In the cmd type

    Code:
    adb sideload rom.zip
    for example (you put the ROM zip here you can drag and drop it)



    Wait for that to finish it will go to 47% and on the phone it will show step 1/2 then step 2/2
    and when it's done it's gonna show an error
    adb: failed to read command: No error

    Then you can reboot to system
    2
    After I enter this, it just stays on waiting for any device.

    View attachment 5419437

    Update: I was able to figure it out. My device had no drivers so I went search through updates on windows and installed a LeMobile Android driver os it shows up properly in device manager.
    because you don't have xiaomi drivers installed...install xiaomi pc suite and you will have drivers installed...
    1
    you have to put your rom to adb folder and dont forget to add .img at the end
    1
    I did all steps again, installed pc suite, usb debug and this is the result:
    1
    o.t. - but maybe you can also explain me what "fastbootD" (written in yellow) is ?!?
    It's written like this to be sure that people read correctly and see difference with only fastboot...it seems D mode bypass some limitations, but not sure exactly..Google is not always your friend specially on this...I'm sure that if you don't use it you can't flash correctly GSI builds...