Created
May 28, 2018 12:11
-
-
Save molguin92/09b71f0eb0fe01c11786c398d95e65b8 to your computer and use it in GitHub Desktop.
Flash Firmware Xiaomi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -x | |
# 1) Go to Xiaomis Fastboot Update Page. http://en.miui.com/a-234.html | |
# 2) Download latest Fastboot ROM. Like latest China dev. | |
# 3) Extract the content. | |
# 4) Boot your phone to Bootloader Mode. Vol Down and Power. Until Fastboot shows up. | |
# 5) Run this script from the root folder of the downloaded files. | |
echo "Flashing Firmware" | |
cat "./misc.txt" | |
cd images | |
fastboot flash dsp adspso.bin | |
fastboot flash bluetooth BTFM.bin | |
fastboot flash cmnlib64 cmnlib64.mbn | |
fastboot flash cmnlib64bak cmnlib64.mbn | |
fastboot flash cmnlib cmnlib.mbn | |
fastboot flash cmnlibbak cmnlib.mbn | |
fastboot flash devcfg devcfg.mbn | |
fastboot flash aboot emmc_appsboot.mbn | |
fastboot flash abootbak emmc_appsboot.mbn | |
fastboot flash hyp hyp.mbn | |
fastboot flash hypbak hyp.mbn | |
fastboot flash keymaster keymaster.mbn | |
fastboot flash keymasterbak keymaster.mbn | |
fastboot flash logo logo.img | |
fastboot flash modem NON-HLOS.bin | |
fastboot flash pmic pmic.elf | |
fastboot flash pmicbak pmic.elf | |
fastboot flash rpm rpm.mbn | |
fastboot flash rpmbak rpm.mbn | |
fastboot flash splash splash.img | |
fastboot flash tz tz.mbn | |
fastboot flash tzbak tz.mbn | |
fastboot flash xbl xbl.elf | |
cd .. | |
echo "Done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment