[Xiaomi Poco F1 Guides, News, & Discussion] LolFlasherNoob:
TWRP Flashing GUIDE (Linux-Only)

View attachment 5939973

Before following this guide, make sure you have followed the rom flashing guide below the post below or xiaomi.eu rom flashing guide.

If you have followed the flashing guide then you may continue.

Hello Amigos,

You can use this guide to install other recovery than TWRP also.(Other recoveries are listed in the guide itself)

Prerequisites:

Ubuntu/Debian/Ubuntu-Based Distros:

Open terminal

Type sudo apt install adb

Once that is installed.

Type sudo apt install fastboot.

Done.

Fedora:

Open terminal.

Type sudo dnf install android-tools.

Let it install and done.

OpenSUSE:

Download this official package from here according to your version :

https://software.opensuse.org/download.html?project=hardware&package=android-tools

(Use either one the add repository and install manually or grab binary packages directly options.)

Steps to install

Then go to your custom rom download thread and check the date of rom file (In this case derpfest) and choose the recovery version closest to the release date of your rom.

Download the latest platform-tools for linux from the Android developer site and extract the zip in an easily accessible folder

Download the recovery image file

Restart your device to fastboot mode

Method 1:

Using this adb command if you have USB debugging active on your device:

adb reboot bootloader

Method 2:

- Turn off your device

- After it has completely turned off, press and hold Vol - and the Power button at the same time until the word "FASTBOOT" comes out Method 3:- Turn off your device

- Press and hold Vol - button

- Connect the USB cable (previously connected to the PC) to the device and press and hold the button until the word "FASTBOOT" comes out

4. Connect your device to the PC

5. Open a terminal window in the folder where you extracted the binaries from the archive from step 1

Easy method: Open the folder, and open a terminal in the folder itself. Terminal will open a window directly in the folder location

6. Verify that your device is recognized by fastboot using this command:

fastboot devices

If your device has been detected (a serial number followed by the word fastboot), you can continue. Otherwise, check if the drivers are installed correctly, although if you used Mi Unlock and were able to unlock the device correctly on the PC you are using, you should not have problems with that.

7. Type this command in the terminal window, but don't press Enter yet, just type it and leave a space at the end:

fastboot flash recovery_

Don't write the "_". This only indicates the space you should leave at the end.

8. Now, drag the image file (yourrecoveryhere.img) to the terminal window and drop it above the window . This will make you copy your exact location for convenience.

fastboot flash recovery "home/user/location/to/your/file/yourrecoveryhere.img""

Quotation marks are only added if the entire location has spaces.

Otherwise, it is displayed without quotation marks.

9. Press Enter and wait a few seconds . Once it shows that it is successfully flashed hold the Vol Up + Power button , once the device restarts release the power button and keep the Vol Up button pressed , after a few seconds the TTWRP logo will show , release the Vol Up button now.

DONE! You've started perfectly in recovery

This guide applies to all recoveries:

NOTE:

If your rom mentions to use a specific recovery then use that instead

To flash shrp recovery you have to extract the .img from the zip file of the recovery that you downloaded ,then flash it in the same way as told above , make sure after booting in the recovery you flash the zip file of the shrp recovery from which you extracted the .img file in the recovery itself.

DO NOT USE ORANGE FOX RECOVERY ! It is deprecated and unmaintained so it wont be updated in future .

If mtp not working or device not getting detected as a portable device in any recovery then watch this guide here: GUIDE

Download Link

TWRP Download (If your rom mentions to use NSE TWRP then use the NSE TWRP with the closest android Version to your rom's android version or else if it doesn't specifically mention any twrp version then use the normal TWRP , the one without NSE in its name, with the closest android version to your rom's android version ):

https://www.pling.com/p/1346294/

SHRP Download:

https://sourceforge.net/projects/shrp/files/Beryllium/

Enjoy !

---------------------------------------------------------------------------------------------------------------------------

TWRP Flashing Guide (Windows-Only)

View attachment 5939999

Before following this guide, make sure you have followed the rom flashing guide below the post below or xiaomi.eu rom flashing guide.

If you have followed the flashing guide then you may continue.

Hello Amigos,

You can use this guide to install other recovery than TWRP also.(Other recoveries are listed in the guide itself)

Steps to install

First of all unlock bootloader of your device . Search net for more info.

After this install adb drivers from here: https://xdaforums.com/t/...reborn-v2-0-adb-fastboot-and-drivers.3854109/

Choose skip install for adb and install google drivers.

Connect your device in fastboot mode to your pc.

Go into device manager , right click on unrecognized android device , choose update drivers , let me pick from a list of drivers , select adb drivers , android bootloader interface and click install.

Then go to your custom rom download thread and check the date of rom file (In this case derpfest) and choose the recovery version closest to the release date of your rom.

Make sure you have the bootloader unlocked before you start. There are many guides on the internet for that.

Download the latest platform-tools from the Android developer site and extract the zip in an easily accessible folder

Download the recovery image file

Restart your device to fastboot mode

Method 1:

Using this adb command if you have USB debugging active on your device:

adb reboot bootloader

Method 2:

- Turn off your device

- After it has completely turned off, press and hold Vol - and the Power button at the same time until the word "FASTBOOT" comes out Method 3:- Turn off your device

- Press and hold Vol - button

- Connect the USB cable (previously connected to the PC) to the device and press and hold the button until the word "FASTBOOT" comes out

4. Connect your device to the PC

5. Open a cmd window in the folder where you extracted the binaries from the zip from step 1

Easy method: Open the folder, and without leaving it, type "cmd" in the address bar of the file explorer and press enter. Command promt will open a window directly in the folder location

6. Verify that your device is recognized by fastboot using this command:

fastboot devices

If your device has been detected (a serial number followed by the word fastboot), you can continue. Otherwise, check if the drivers are installed correctly, although if you used Mi Unlock and were able to unlock the device correctly on the PC you are using, you should not have problems with that.

7. Type this command in the cmd window, but don't press Enter yet, just type it and leave a space at the end:

fastboot flash recovery_

Don't write the "_". This only indicates the space you should leave at the end.

This is how it should look when you write it:

8. Now, drag the image file (yourrecoveryhere.img) to the command window and drop it above the window. This will make you copy your exact location for convenience.

- The result should be this:

Code:

fastboot flash recovery "C:\location\to\your\file\yourrecoveryhere.img"

Quotation marks are only added if the entire location has spaces.

Otherwise, it is displayed without quotation marks.

9. Press Enter and wait a few seconds . Once it shows that it is successfully flashed hold the Vol Up + Power button , once the device restarts release the power button and keep the Vol Up button pressed , after a few seconds the TWRP logo will show , release the Vol Up button now.

DONE! You've started perfectly in recovery

This guide applies to all recoveries:

NOTE:

If your rom mentions to use a specific recovery then use that instead

To flash shrp recovery you have to extract the .img from the zip file of the recovery that you downloaded ,then flash it in the same way as told above , make sure after booting in the recovery you flash the zip file of the shrp recovery from which you extracted the .img file in the recovery itself.

DO NOT USE ORANGE FOX RECOVERY ! It is deprecated and unmaintained so it wont be updated in future .

If mtp not working or device not getting detected as a portable device in any recovery then watch this guide here: GUIDE

Download Link

TWRP Download (If your rom mentions to use NSE TWRP then use the NSE TWRP with the closest android Version to your rom's android version or else if it doesn't specifically mention any twrp version then use the normal TWRP , the one without NSE in its name, with the closest android version to your rom's android version ):

Recovery For Poco F1

Team Win Recovery ProjectWht Works : * EVERYTHINGS *BUG : * You Tell Me *

www.pling.com

SHRP Download:

https://sourceforge.net/projects/shrp/files/Beryllium/

Enjoy !

---------------------------------------------------------------------------------------------------------------------------

ROM Flashing GUIDE (Windows-Only)

First of all unlock bootloader of your device . Search net for more info.

After this install adb drivers from here: https://xdaforums.com/t/...reborn-v2-0-adb-fastboot-and-drivers.3854109/

Choose skip install for adb and install google drivers.

Connect your device in fastboot mode to your pc.

Go into device manager , right click on unrecognized android device , choose update drivers , let me pick from a list of drivers , select adb drivers and click install.

Then go to your custom rom download thread and check the date of rom file(In this case derpfest).

Check the date of file.

Then go to xiaomifirmwareupdater.com and select rom archive and select your device.

Then MIUI downloads page will appear. type fastboot in search and look for a MIUI global version released

as the same or very close to the Custom ROM date (in this case it is this)

Download the fastboot version according to the date.

Go into the stock rom folder and double click on flash_all.bat(all data will be lost) .

Or open cmd in the folder and type flash_all.bat in cmd and hit enter.(This method allows to look for errors)

A cmd window will popup with fastboot commands automatically and after complete flashing of rom will close automatically. (approx. 20-25 mins)

Let the device boot into MIUI.

Once it boots, power it off . Then press the vol down + power button until fastboot in orange letters appear.

Then follow the twrp flashing guide from here

Then flash the ROM according to the instructions.

NOTE:

Make sure to always extract and move the stock rom folder in root of C: drive (this helps avoid flashing errors)The path should look something like this:

C:\beryllium_global_images_YourVersionhere

Then flash the stock rom.

Clean Flashing a ROM:

I hope you have followed the entire guide above before doing this step.

Reboot to recovery.

Format data.

Flash ROM file.

Wipe Dalvik Cache.

Reboot and enjoy.

Everytime you do a clean flash, you must redo all the steps above.

If a rom does not include flashing instructions, it requires a clean flash.

If a rom mentions to wipe something in advanced wipe , then wipe ONLY that and nothing else.

If rom mentions clean flash and not wiping of anything else then dont be smart to wipe anything unecessary.

If your rom mentions to use a specific recovery then use that instead

Always flash magisk after the first boot of your rom

If mtp not working or device not getting detected as a portable device in any recovery then watch this guide here: GUIDE

Do not replace the recovery or try to update recovery that comes with roms. This can brick your device

Enjoy!

---------------------------------------------------------------------------------------------------------------------------

ROM Flashing GUIDE (Linux-Only)

Prerequisites:

Ubuntu/Debian/Ubuntu-Based Distros:

Open terminal

Type sudo apt install adb

Once that is installed.

Type sudo apt install fastboot.

Done.

Fedora:

Open terminal.

Type sudo dnf install android-tools.

Let it install and done.

OpenSUSE:

Download this official package from here according to your version :

https://software.opensuse.org/download.html?project=hardware&package=android-tools

(Use either one the add repository and install manually or grab binary packages directly options.)

First of all unlock bootloader of your device . Search net for more info.

Then go to your custom rom download thread and check the date of rom file(In this case derpfest).

Check the date of file.

Then go to xiaomifirmwareupdater.com and select rom archive and select your device.

Then MIUI downloads page will appear. type fastboot in search and look for a MIUI global version released

as the same or very close to the Custom ROM date (in this case it is this)

Download the fastboot version according to the date.

Go into the stock rom folder and right click in empty area then select open terminal here then type this command:

./flash_all.sh

A terminal window will popup with fastboot commands automatically and after complete flashing of rom will close automatically. (approx. 20-25 mins)

Let the device boot into MIUI.

Once it boots power it off . Then press the vol down + power button until fastboot in orange letters appear.

Then follow the twrp flashing guide from here

Then flash the ROM according to the instructions.

NOTE:

Make sure to always extract and move the stock rom folder in root of home directory (this helps avoid flashing errors)The path should look something like this:

home\beryllium_global_images_YourVersionhere

Then flash the stock rom.

Clean Flashing a ROM:

I hope you have followed the entire guide above before doing this step.

Reboot to recovery.

Format data.

Flash ROM file.

Wipe Dalvik Cache.

Reboot and enjoy.

Everytime you do a clean flash, you must redo all the steps above.

If a rom does not include flashing instructions, it requires a clean flash.

If a rom mentions to wipe something in advanced wipe , then wipe ONLY that and nothing else.

If rom mentions clean flash and not wiping of anything else then dont be smart to wipe anything unecessary.

If your rom mentions to use a specific recovery then use that instead

Always flash magisk after the first boot of your rom

If mtp not working or device not getting detected as a portable device in any recovery then watch this guide here: GUIDE

Do not replace the recovery or try to update recovery that comes with roms. This can brick your device.

Enjoy!

---------------------------------------------------------------------------------------------------------------------------

Kernel Flashing GUIDE:

Always Flash a custom kernel after the first boot of the device in a rom which was clean flashed.

Always take a backup of your rom's boot.img incase something goes wrong.

NGK Kernel:

Download the latest nse and se version

Then store it somewhere in your internal storage

Boot to twrp

Flash NGK NSE kernel zip

Wipe Cache Dalvik

Reboot To System

NOTE:

If your rom doesnt mention if it is a nse (Non System_Ext) or se (System_Ext) rom then you may download both nse and se versions of the kernel . Then boot into twrp and flash nse version as above . If your device gets bricked , bootlooping , restart to recovery or fastboot , Then boot into recovery again and flash se version as above . After this your problem should be fixed . Still if something goes wrong , boot into recovery and flash boot.img of your rom.

LawRun Kernel:

Download the kernel version according to this index:

10-11-12 in the name here mentions the android versions supported . Android Version supported in this version of kernel is android 10 ,11,12 or android q , android r and android s.

09 , P or Pie here in the name mentions android version supported . Android Version supported in this version of kernel is android 9 or android pie.

10 or Q in the name mentions android 10 is supported.

10-2-13 in the name here mentions that android 10 to android 13 roms are supported

Store the kernel zip somewhere in your internal storage

Boot into twrp

Flash LawRun Kernel Zip

Wipe Cache Dalvik

Reboot to System

If something goes wrong , boot into recovery and flash boot.img of your rom.

NOTE:

Do check the kernel version and description at the download page of the kernel to know whether it is overclocked or not.

Enjoy !

---------------------------------------------------------------------------------------------------------------------------