All-in-one Guide Compilation On How To Flash Xiaomi.eu Roms On Your Mi5s

Discussion in 'Xiaomi Mi 5S / Plus' started by ZenXXII, Nov 15, 2016.

Tags:
  1. ZenXXII

    ZenXXIIMembers

    Nov 8, 2016
    15
    17
    15
    Male
    Hi there! I’ve decided to make an all-in-one guide compilation to help every noob out there unlock, root, and flash custom ROMs on their Xiaomi Mi5s. Truth be told, before getting my very own Mi5s, I knew nothing about rooting android phones and didn’t really care much for it. But seeing as it was a necessity for a non-Chinese user like me to flash a Play Store supported and Multilanguage translated custom ROM (care of xiaomi.eu), it is likely that there are others out there with the same predicament as I had, with fears and doubts with the admittedly very confusing process.

    Chapter 1: Unlocking your Mi5s
    > This is an essential step! If your device is not unlocked you will not be able to flash Official ROMs via MiFlash nor Custom ROMs via TWRP.

    Source Guide:
    http://xiaomitips.com/guide/unlock-mi-5-bootloader/

    TLDR
    You have to apply for unlock permissions by logging in and filling up an application form at Xiaomi’s Official Unlock Request Site:
    http://en.miui.com/unlock/

    From there, it’s a battle of luck and patience in getting your application approved by the MIUI team. They say it can take 7-10 days but mine got approved in 3 days.

    The reason I used was “My Mi5s came with a custom ROM. Please approve my unlock permissions so I can flash the official MIUI ROMs.” Translated by Google, you get:
    我的Mi5s配有一个自定义ROM。请批准我的解锁权限,以便我可以刷新官方MIUI ROM。
    Feel free to copy-paste this on your unlock application.

    You will then have to download and use Xiaomi’s Official Unlock Tool to unlock your Mi5s:
    MiFlashUnlock: http://bigota.d.miui.com/miflashunlock/MiFlashUnlock_1.1.0317.1_en.zip

    Important Note:
    You have to be logged into your Mi Account on your Mi5s before using the Unlock Tool!

    The process is very straightforward afterwards but you may encounter a few driver-related issues along the way that will cause the Unlock Tool to get stuck at or fail at 50%. Here are a few methods that may resolve this issue:
    1. Manually uninstall the old drivers using “Device Manager”, restart your computer and reconnect your Mi5s.
    2. Try different USB ports (preferably USB 2.0) on your PC, or try using a different PC with a different OS (preferably Windows 7).
    3. Try using a different USB Type-C cable.

    Other Notes:
    - It may not necessarily be required for the phone to be at China Stable/Developer ROM to unlock your phone. In my case, my Mi5s was running on a custom ROM (V8.0.10.0.0.M), which prevented me from updating to the China Stable/Developer ROM using the System/Recovery Update Methods, but I was still able to unlock it.
    - You can apply for unlock permissions even if you don’t have a Xiaomi phone yet. Just register at the forums and you can apply in advance.
    - You can only unlock 1 phone every 30 days per account! You can however create multiple Xiaomi forum accounts linked to different phone numbers and have them all apply for unlock permissions.

    I wish you all have a hassle-free unlocking process. And for those successful, Congratulations on unlocking your Mi5s!

    Chapter 2: Flashing Official MIUI ROMs using MiFlash
    > Once your phone is unlocked you can directly proceed to Chapter 3 and start the process of flashing the xiaomi.eu ROMs, but I feel that it is necessary for all of us (especially noobs) to know how to use the Fastboot Update Method in flashing the Official Xiaomi ROMs using MiFlash. With it, we can always save our device from bricking/bootlooping, as long as we can still boot the device into Fastboot Mode (access it by pressing Volume- Key and Power Button when the phone is off). At the very least, I advise everyone to download these files beforehand and test it, before flashing custom ROMs.

    Source Guide:
    http://en.miui.com/a-234.html

    TLDR
    You first have to download the MiFlash program and install it:
    MiFlash: http://api.bbs.miui.com/url/MiFlash

    You then have to download the Fastboot version of the Mi5s China Stable/Developer ROMs.
    Stable: http://update.miui.com/updates/v1/fullromdownload.php?d=capricorn&b=F&r=cn&n=
    Developer: http://update.miui.com/updates/v1/fullromdownload.php?d=capricorn&b=X&r=cn&n=

    Honestly, the source guide above is very detailed and easy to follow so just use it. If successful, your phone will boot with the Official MIUI ROMs. Congratulations!

    Important Note:
    Do not use the “clean all and lock” option unless you plan on sticking with the official ROMs or have unlimited unlocks.

    Once again, the process is very straightforward but you may encounter a few driver-related issues which may be resolved by doing the following:
    1. Manually uninstall the old drivers using “Device Manager”, restart your computer and reconnect your Mi5s.
    2. Try different USB ports (preferably USB 2.0) on your PC, or try using a different PC with a different OS (preferably Windows 7).
    3. Try using a different USB Type-C cable.

    Other Notes:
    - Your phone has to be unlocked for this method to work even if it’s flashing Official MIUI ROMs!

    Chapter 3: Using ADB to install TWRP
    > Basically, you are using this ADB program via command prompt on your PC to install TWRP into your Mi5s.

    TWRP is essentially a Custom Recovery Program that replaces the phone’s original Recovery Mode (access it by pressing Volume+ Key and Power Button when the phone is off). It is the program we use to flash the xiaomi.eu ROMs and root your Mi5s by flashing SuperSU.

    Source Guides:
    http://www.xda-developers.com/how-to-install-twrp/
    http://xiaomitips.com/guide/how-to-flash-twrp-v3-0-2-1-on-mi-5/

    Before we start, please download and install the following in your PC:
    15 seconds ADB Installer v1.4.3: http://forum.xda-developers.com/showthread.php?p=48915118#post48915118
    ADB Driver Installer (Universal): http://adbdriver.com/
    - These will install all necessary adb drivers on your PC so that you may proceed smoothly.

    Next, download and extract (to a folder in desktop or Drive C:\) the latest TWRP program compatible with the Mi5s from here:
    ZCX-TWRP_MI5S_Capricorn_20161023.zip: http://www.miui.com/thread-5768960-1-1.html

    Note:
    I recommend that you factory data reset your device before proceeding. There is no need to login into your Gmail/Mi Accounts after the reset so just skip those steps.

    TLDR
    Step 1: Enable USB debugging by following this guide then connect your phone to your PC:
    http://xiaomitips.com/guide/how-to-enable-and-disable-miui-developer-mode/

    Step 2: On your extracted ZCX-TWRP_MI5S_Capricorn_20161023.zip folder, simply rename the ZCX-TWR-3.0.2-X-MI5S-Capricorn-16.10.23.img file to twrp.img

    Step 3: Once again, on your extracted ZCX-TWRP_MI5S_Capricorn_20161023.zip folder, press Shift + Right click on any empty white space inside the folder and then select "Open command window here".

    Step 4: On the command window, enter the following:

    adb devices
    - This will check if the phone’s adb drivers are detected by the PC. If not, check your phone and let it authorize the PC to access your phone. Type “adb devices” again and it should detect your phone. Once it does, proceed to the next step.

    adb reboot bootloader
    - This will command your Mi5s to go into Fastboot Mode. Once you see the Fastboot Mi Bunny, you may proceed.

    fastboot flash recovery twrp.img
    - Wait a few seconds after it finishes and proceed.

    fastboot boot twrp.img
    - And you’re done! Your phone will now restart into the TWRP Recovery Menu. It’s initially in Chinese though, so change the language to English by following this guide:


    Now that you can read the options, try rebooting your phone and see if you can still access the TWRP Recovery Menu by pressing Volume+ Key and Power Button when the phone is off. If it does, the whole process was a success!

    Chapter 4: Using TWRP to flash the xiaomi.eu ROMs and rooting your device by flashing SuperSU

    Source Guide:
    https://xiaomi.eu/community/threads/6-11-10.36056/

    Download your desired xiaomi.eu Stable/Weekly ROMs:
    Stable: https://www.androidfilehost.com/?fid=529152257862678079
    Weekly: https://www.androidfilehost.com/?fid=457095661767113668

    If you also plan on rooting your device, download the latest SuperSU here:
    http://forum.xda-developers.com/apps/supersu/stable-2016-09-01supersu-v2-78-release-t3452703
    - click on the “TWRP / FlashFire installable ZIP” link

    Step 1: Copy the .zip files (xiaomi.eu ROM and/or SuperSU) to your Mi5s. No need for additional folders, the base of your storage would be best.

    Step 2: Turn your device off and boot into TWRP Recovery Menu by pressing Volume+ Key and Power Button.

    Step 3: Tap “Wipe” then swipe the “Swipe to Factory Reset” option. This step is optional, but it is recommended by other users as they claim that it prevents errors.

    Step 4: Tap the Home button and now tap “Install”, search for the .zip file of the xiaomi.eu ROM you want to use and flash it. Wait for it to finish flashing (takes about 3-5 minutes). Be patient!

    Step 5: After that, you’ll be given the options to Wipe or Reboot. Once again, other users highly recommend you Wipe first then Reboot.

    And you’re done! After about 5-10 minutes your phone should be booting with the xiaomi.eu ROM. Do the initial setup and enjoy your Mi5s running a better and optimized ROM! Congratulations!

    If you're satisfied with just flashing the xiaomi.eu ROM then this guide ends here. But for those who want to root their Mi5s all the way, read further.

    Rooting Guide:
    Step 1: Boot once again into the TWRP Recovery Menu.

    Step 2: Tap “Install” and select the .zip file of the SuperSU program and flash it.

    Step 3: Once again, you’ll be given the option to Wipe or Reboot. Simply Wipe first then Reboot.

    Step 4: Your phone will now reboot and SuperSU will now install itself on your Mi5s. This process can take 5-10 minutes so just be patient.

    Step 5: Once your phone has booted into your Homescreen search your app drawer for the SuperSU app. If it is there, Congratulations! Your Mi5s is now rooted!

    I hope this guide was helpful in some way to all of you out there confused by this whole flashing/fastbooting/rooting process. I know how terrifying it feels to blindly experiment on your hard-earned devices but I assure you the convenience of using the xiaomi.eu ROM is worth it.
     
  2. Alexiaomi

    AlexiaomiMembers

    Oct 28, 2014
    328
    35
    50
    Male
    Rotterdam, Netherlands
    Hello, i have mi5s with MIUI Global 8.0 stable 8.0.10.0 (MAGCNDH) and i want to install the latest dev rom from this website, but i cannot use the mi unlock app. Is there another way to flash another rom and install TWRP?
    Can i use a flashing tool or use fastboot?
    Do you have a solution?
     
  3. alandroid63

    Nov 17, 2016
    16
    0
    11
    How do you lock back the bootloader after the flashing? I tried to lock the bootloader by executing fastboot oem lock and now I am unable to boot the phone.
     
  4. ivan.martinko

    Nov 17, 2016
    115
    10
    30
    Male
    is it mi5s plus compatible?
     
  5. caribdis10

    caribdis10Members

    Nov 13, 2016
    16
    5
    13
    Male
    To my knowledge, the way to lock back again an unlocked bootloader is to flash an official MIUI ROM
     
  6. alandroid63

    Nov 17, 2016
    16
    0
    11

    I've just flash a official MIUI rom through miflash. Managed to get my bootloader locked and phone booting at last. However, it failed the CTS Test. Meaning no go for Android Pay. Any experts here can help with pointers to fix this? Many thanks in advance.
     
  7. Jouni Holsius

    Nov 18, 2016
    40
    5
    20
    Male
    Finland
    Hello
    I just bought Xiaomi Mi 5s Plus phone, phone was delivered with MIUI 8.1 by xiaomi.eu 6.10.27/beta ROM(checked from phone).
    Does it mean that my phone is already unlocked , I dont find any marks unlocked or not.
    If I want update (newest)6.11.17 eu rom can I use System Update method (put the file downloaded_rom folder and update there)?
    Do I need factory reset before update or etc. ?
     
  8. Alexiaomi

    AlexiaomiMembers

    Oct 28, 2014
    328
    35
    50
    Male
    Rotterdam, Netherlands
    Hello Zen XXII, i get stuck with "fastboot flash recovery twrp.img". I don't understand. See printscreen:

    upload_2016-11-19_0-5-37.png

    What am i doing wrong?

    Can you help me?
    Someone?

    Thanks,
    Alex
     

    Attached Files:

  9. ivan.martinko

    Nov 17, 2016
    115
    10
    30
    Male
    tipe fastboot reboot and try again..
    hope you run CP like administrator
     
  10. Alexiaomi

    AlexiaomiMembers

    Oct 28, 2014
    328
    35
    50
    Male
    Rotterdam, Netherlands
    Well, i dragged another .img file (from to the trwp folder in the explorer) to the extracted twrp, so only then i could rename to twrp.img. I think that's why i get this message "cannot load .img).

    The twrp zip contains a .img file, but after extracting the zip it's not possible to rename the file. I think there's the problem. So, why i cannot rename this file?

    TWRP.ME send me to a Chines site, where i don't know what to do, so no downloading the twrp for the mi5s.
    Is there a right twrp for the mi5s anyway?
     
  11. Alexiaomi

    AlexiaomiMembers

    Oct 28, 2014
    328
    35
    50
    Male
    Rotterdam, Netherlands
    So what to do on this Chinese website?

    Here should be the TWRP.zip for the Mi5s (I also see for Mi5 en Mi5s plus), but how to download the right zip?

    upload_2016-11-19_10-41-3.png
     
  12. Alexiaomi

    AlexiaomiMembers

    Oct 28, 2014
    328
    35
    50
    Male
    Rotterdam, Netherlands
    The other one gives a TWRP, but i cannot rename the .img file:

    upload_2016-11-19_10-49-46.png

    These files are from the zip and the .img file cannot be renamed.

    The file above it (left in the explorer) gives the same file and can be renamed.
    Still the same error. .img cannot be load.

    So, what must i do now?

    Thanks
     
  13. Alexiaomi

    AlexiaomiMembers

    Oct 28, 2014
    328
    35
    50
    Male
    Rotterdam, Netherlands
    The mi5s is unlocked.
    Is there another way to install TWRP and the DEV ROM 6.11.17 on the phone?
    I mean NOT using the fastboot way?
     
  14. Alexiaomi

    AlexiaomiMembers

    Oct 28, 2014
    328
    35
    50
    Male
    Rotterdam, Netherlands
    Mi PC Suite does not recognize my mi5s (it's in fastboot mode), it says "update you device first".
    So, now i am trying to flash an official rom with Mi Flash. Downloaded the fastboot update rom.
    Let's see if that works.

    If anybody has a idea to get it done, please feel free te react.

    Thanks
     
  15. Alexiaomi

    AlexiaomiMembers

    Oct 28, 2014
    328
    35
    50
    Male
    Rotterdam, Netherlands
    Isn't this the same as this tutorial just here?
     
  16. ivan.martinko

    Nov 17, 2016
    115
    10
    30
    Male
    Maybe and it works..
     
  17. Alexiaomi

    AlexiaomiMembers

    Oct 28, 2014
    328
    35
    50
    Male
    Rotterdam, Netherlands
    Oké thanks. I will try this evening and let you know. I believe this was the same problem with mi4s, it also had a wrong rom.

    Hope i will succeed. Then twrp and the latest dev rom.
     
  18. Alexiaomi

    AlexiaomiMembers

    Oct 28, 2014
    328
    35
    50
    Male
    Rotterdam, Netherlands
    Need help:

    Downloaded the Official Dev Rom and extracted it, but no flash_all file. So can't flash.
    How is that possibel?
     
  19. Alexiaomi

    AlexiaomiMembers

    Oct 28, 2014
    328
    35
    50
    Male
    Rotterdam, Netherlands
    Nope, nothing works.

    So why can't i rename the .img file in the TWRP ?
     
  20. GuybrushT1

    GuybrushT1Members

    Nov 9, 2016
    6
    1
    13
    Male
    Swipe to factory reset means that all data will be deleted?
    I thought that the way to install a room without erasing all was the following:

    Step 1: Copy the .zip files (xiaomi.eu ROM and/or SuperSU) to your Mi5s. No need for additional folders, the base of your storage would be best.

    Step 2: Turn your device off and boot into TWRP Recovery Menu by pressing Volume+ Key and Power Button.

    Step 3: Tap “Wipe” then tap Advanced Wipe then tap Wipe Cache then Swipe to Wipe, then tap Dalvik again tap Swipe to Wipe

    Step 4: Tap the Home button and now tap “Install”, search for the .zip file of the xiaomi.eu ROM you want to use and flash it. Wait for it to finish flashing (takes about 3-5 minutes). Be patient!

    Step 5: Repeat step 3 go back and tap reboot. I am not sure if it is necessary to repeat it.​
     
  21. Wanakmalarief

    Nov 13, 2016
    2
    0
    13
    Male
    Is there any problem w ur custom rom at first the one w 8.0.10.0.0
     
  22. ivan.martinko

    Nov 17, 2016
    115
    10
    30
    Male
    Data will be saved if your choose to wipe data, system, cache, dalvik cache. Nothing else, internal storage do not wipe.
     
  23. alandroid63

    Nov 17, 2016
    16
    0
    11
    I flashed the original ROM that comes with it and it passed CTS. Afterwards just do an update to 8.0.17 and it will pass CTS. If you go straight to official 8.0.17, CTS will fail. Not sure why though but I did notice the update was about 200MB while the entire 8.0.17 was 1GB or so.
     

Share Our Site