thes command you flash twrp or orange fox without pc
pkg update && upgrade && pkg install git && pkg install vim && pkg install curl && pkg install wget
git clone https://github.com/Gtajisan/Twrp-orange-fox-flashing && cd Twrp-orange-fox-flashing && ls
Run setup.sh
to install required packages.
chmod +x setup.sh && ./setup.sh
1.check you're device Type fastboot devices and press Enter just to be sure your device is correctly recognized.
mi-fastboot devices
- recovery flash command 1st.
mi-fastboot flash recovery recovery.img
- if you open twrp
fastboot boot recovery.img
- Type fastboot reboot and press Enter to reboot your device after the flash is complete.
fastboot reboot