How to install xiaomi.eu on Mi 6X with antirollback


Aug 19, 2018
25
7
5
#1
Now that antirollback is implemented, the general instructions for installing EU ROM no longer work.

This method allows you to install without needing OTG cable/usb stick.

  1. Boot TWRP
    Do not try to flash twrp, just boot to twrp (./fastboot boot TWRP_wayne.img )
    Even though TWRP is in English at boot, you must press select language and choose English (or other language) or it will switch to Chinese at the next step.
    If somehow it goes to chinese anyway, then press the bottom right hand button above the swipe box to select language
    Ignore error about decryption and press cancel when it asks for password
  2. Wipe Internal Storage to remove encryption
    Wipe -> Advanced wipe dalvik + cache + data + Internal Storage
  3. Enable MTP
    Mount -> Enable MTP
  4. Copy ROM to Internal Storage
    With MTP enabled your PC should see your phone as a hard drive.
    Copy the ROM to the phone. E.g. xiaomi.eu_multi_MI6X_V10.0.2.0.ODCCNFH_v10-8.1.zip
  5. Install ROM
    Go to Install and select the file from /data/media


Now, does anyone know where I can find that /media/data folder when i am running MIUI? I would like to get the space back. I can see it is still there if i boot to TWRP.

EDIT: To remove the ROM image and recover the space, you need to boot once more into TWRP and use adb to remove
Code:
dantheperson@danski:~/opt/adb/platform-tools$ ./adb shell
~ # cd /data/media
/data/media # rm xiaomi.eu_multi_MI6X_V10.0.2.0.ODCCNFH_v10-8.1.zip

/data/media # df -h .
Filesystem                Size      Used Available Use% Mounted on
/dev/block/mmcblk0p64
                         50.4G      2.9G     47.4G   6% /data
 
Last edited:
Aug 19, 2018
25
7
5
#3
Hrm. Still don't see it. I try adb shell but /sdcard just looks the same it appears on the PC as MTP device.
Yet when i boot to TWRP the file system looks very different.

Code:
wayne:/sdcard $ ls -l
total 32
drwxrwx--x 3 root sdcard_rw 4096 2018-09-06 21:59 Android
drwxrwx--x 3 root sdcard_rw 4096 2018-09-06 21:59 MIUI
drwxrwx--x 2 root sdcard_rw 4096 2018-09-06 22:56 TWRP
drwxrwx--x 4 root sdcard_rw 4096 2018-09-06 22:09 browser
-rw-rw---- 1 root sdcard_rw    2 2018-09-06 22:59 dctp
-rw-rw---- 1 root sdcard_rw   74 2018-09-06 22:59 did
drwxrwx--x 2 root sdcard_rw 4096 2018-09-06 22:00 mi_drive
drwxrwx--x 3 root sdcard_rw 4096 2018-09-06 22:59 tencent
 
Aug 19, 2018
25
7
5
#6
I think it's the multi user stuff hiding it? Now after i have installed MIUI10, if i reboot to TWRP things look different. MTP in TWRP is exporting /data/media/0 over USB, but before it was exporting /data/media

From adb shell when booted to TWRP
Code:
/data/media/0 # ls -l
drwxrwxr-x    3 media_rw     media_rw          4096 Sep  6 09:59 Android
drwxrwxr-x    5 media_rw     media_rw          4096 Sep  7 07:36 DCIM
drwxrwxr-x    4 media_rw     media_rw          4096 Sep  7 06:55 MIUI
drwxrwxr-x    3 media_rw     media_rw          4096 Sep  8 10:22 Pictures
drwxrwxrwx    2 media_rw     media_rw          4096 Sep  6 10:56 TWRP
drwxrwxr-x    6 media_rw     media_rw          4096 Sep  7 14:00 WhatsApp
drwxrwxr-x    4 media_rw     media_rw          4096 Sep  6 10:09 browser
-rw-rw-r--    1 media_rw     media_rw             0 Sep  8 10:26 dantest.txt
-rw-rw-r--    1 media_rw     media_rw             2 Sep  8 10:10 dctp
-rw-rw-r--    1 media_rw     media_rw            74 Sep  8 10:10 did
drwxrwxr-x    2 media_rw     media_rw          4096 Sep  6 10:00 mi_drive
drwxrwxr-x    3 media_rw     media_rw          4096 Sep  8 10:12 romtoolbox
drwxrwxr-x    3 media_rw     media_rw          4096 Sep  6 10:59 tencent

/data/media/0 # ls -l ..
drwxrwx---   12 media_rw     media_rw          4096 Sep  8 10:26 0
drwxrwxr-x    2 media_rw     media_rw          4096 Mar  6  1970 obb
-rw-rw-r--    1 root         root         1549186394 Mar  6  1970 xiaomi.eu_multi_MI6X_V10.0.2.0.ODCCNFH_v10-8.1.zip
So anyway, the solution is to reboot to TWRP after the install and remove the file using adb shell. That's gets me 1.6Gb back

Code:
dantheperson@danski:~/opt/adb/platform-tools$ ./adb shell
~ # cd /data/media
/data/media # rm xiaomi.eu_multi_MI6X_V10.0.2.0.ODCCNFH_v10-8.1.zip 
/data/media # df -h .
Filesystem                Size      Used Available Use% Mounted on
/dev/block/mmcblk0p64
                         50.4G      2.9G     47.4G   6% /data
 
Feb 10, 2017
12
5
15
#7
Now that antirollback is implemented, the general instructions for installing EU ROM no longer work.

This method allows you to install without needing OTG cable/usb stick.

  1. Boot TWRP
    Do not try to flash twrp, just boot to twrp (./fastboot boot TWRP_wayne.img )
    Even though TWRP is in English at boot, you must press select language and choose English (or other language) or it will switch to Chinese at the next step.
    If somehow it goes to chinese anyway, then press the bottom right hand button above the swipe box to select language
    Ignore error about decryption and press cancel when it asks for password
  2. Wipe Internal Storage to remove encryption
    Wipe -> Advanced wipe dalvik + cache + data + Internal Storage
  3. Enable MTP
    Mount -> Enable MTP
  4. Copy ROM to Internal Storage
    With MTP enabled your PC should see your phone as a hard drive.
    Copy the ROM to the phone. E.g. xiaomi.eu_multi_MI6X_V10.0.2.0.ODCCNFH_v10-8.1.zip
  5. Install ROM
    Go to Install and select the file from /data/media[/CODE]

Your steps worked like a charm kind sir!! My Mi6X no longer runs a shitty fake rom. Much love! :D
 
Likes: dantheperson
Aug 19, 2018
25
7
5
#9
@dantheperson

I want to do a factory reset for my phone, and i used your method by only booting to TWRP without flashing it, will that work ?

Or do i have to flash TWRP ?

FYI, my Mi 6X ARB is +2
You should be able to wipe the phone just by booting TWRP. No need to flash.

But can't you just boot to the stock xiaomi recovery to perform factory reset?
 
Feb 10, 2017
12
5
15
#10
You should be able to wipe the phone just by booting TWRP. No need to flash.

But can't you just boot to the stock xiaomi recovery to perform factory reset?

Ok, let me explain my question further.

I'm going to sell my 6X, and i want to keep the stable xiaomi.eu rom on it.

Some time ago i had a xiaomi device with the eu rom on it, when i decided to sell it to a shop, i did a factory reset, and after i did, the phone ended being with no rom installed haha.

So, since i flashed the eu rom on my 6X without flashing TWRP, am i going to face the same problem ? Or does the eu stable rom already has a recovery with it ?

That old phone i had, i was forced to return home, and flash the stock rom on it, which is something i dont want to do :)

Thank you.