Guide for modding android devices
- Installation tool
or
$ sudo apt install android-tools-adb android-tools-fastboot -y
$ sudo pacman -Sy android-tools
- Get the code name of your device:
$ adb shell getprop ro.product.device
-
Install custom recovery (TWRP or OrangeFox)
- Unlock bootloader (with xiaomi tool)
- adb reboot bootloader ( for restart in fastboot)
- fastboot flash recovery recovery.img (at the end turn off devices)
-
Install custom recovery (TWRP or OrangeFox)
- Reboot in fastboot
$ adb reboot bootloader
- Unlock bootloader (with xiaomi tool)
- Install custom recovery
$ fastboot flash recovery recovery.img
- Reboot on custom recovery
$ fastboot reboot recovery
- Reboot in fastboot
-
Install custom ROM
- Reboot device in custom recovery
$ adb reboot recovery
- Open adb sideload from device
- Intsall custom rom with sideload
$ adb sideload "ROM file.zip"
- Reboot device in custom recovery