[Xiaomi Mi A1 Guides, News, & Discussion] Saswata Chakraborty:
Xiaomi released July security patch a couple of days back. However, as always, a lot of people didn't receive it yet. But the wait is over. Now everyone can update their device to the latest security patch.

Disclaimer:

If you are planning to flash the ROM on your device, you are on your own. I can not be held responsible if anything happens to your device. Your warranty will be void after unlocking the bootloader. You need to lock the bootloader for any warranty.

Requirements:

1. Xiaomi Mi A1 (Ofcourse)

2. A PC (I am using Windows 7 here)

3. The ROM file (Available on the link below)

4. MiFlash Tool ( Link: http://en.miui.com/thread-345974-1-1.html ) (A big thanks to Miui forum for making the tool available on miui forum)

5. ADB Platform tool (Search on google)

6. Patience

Installation Process:

1. Download the ROM file from the given link and extract it.

2. You will see a folder with name as tissot_images_V9.6.4.0.ODHMIFE_20180712.0000.00_8.0_735823083f

3. Double click on the folder and open it. You will see another folder with name as tissot_images_V9.6.4.0.ODHMIFE_8.0

3. Copy the folder into the C drive. Remember, you need to copy tissot_images_V9.6.4.0.ODHMIFE_8.0 and not the main folder.

4. Install MiFlash Tool on your PC from the given link

5. Set up ADB driver properly on your PC (It's very important)

6. Now go to your device and enable Developers option by tapping on Build Number 7 times.

6. Open Developers Option and enable "OEM Unlocking" and "USB Debugging" option.

7. Now press and hold the power button and Volume down button for about 10 seconds until you see a small bunny on the screen.

Now connect your device to your PC and open a command box and type fastboot oem unlock

8. Once the bootloader is unlocked, put your device in fastboot mode again and connect it to PC. (BE WARNED!!! if anyone is on May security patch, unlocking bootloader will erase everything from the device and device will restart again. You will need to unlock developers option again and enable "USB debugging" option once more)

9. Now open MiFlash Tool and see if it reads your device serial number by clicking on "Refresh". Now, select tissot_images_V9.6.4.0.ODHMIFE_8.0 and click on "Flash". Make sure you are doing it in a proper way.

10. It may take around 10-15 minutes (for me it took around 11 minutes) to get the process completed. Once done, your device will boot into system and Congrats! Now you have Oreo 8.1 on your device with July security patch.

N.B. It is best that you select "Clean all and lock" option on MiFlash tool.

Flashing Guide For TWRP & Custom Kernel:

1. Grab the latest twrp recovery image (Oreo) and twrp installer zip file.

2. Put the recovery image in ADB folder and the installer zip in your device.

2. Boot your device into fastboot mode and connect it to the PC.

3. Make sure the bootloader is unlocker.

4. Open a command box and type fastboot boot xxx.img (xxx= recovery image name)

5. Once your device is boot into twrp, flash TWRP installer zip file and reboot back to recovery.

6. Now flash the custom kernel of your choice and Magisk (optional).

7. Reboot back to system.

Important Note:

If anyone has any problem understanding the steps, I would recommend that you google or search on Youtube. There are lots of Videos showing on how to flash stock ROM on MiFlash tool. Please don't blame me if you skip any step or do it wrong. I have shared the standard steps that remain the same for flashing both stable and beta rom. It is advised that you STAY AWAY if you don't know what you are doing. I am certainly not going to take any blame for improper flashing. As you have decided to flash the ROM, I expect you to have a little knowledge about how to use MiFlash tool. All newbies have a problem at first, especially when flashing ROM on MiFlash tool. That's because of selecting and flashing the ROM file in an improper way. You need to first learn exactly which folder to flash or else you will always end up on a bootloop. Please don't blame me for not spoon feeding you.

Bugs Encountered:

LED notification stays still when a notification comes in. It doesn't blink.

ROM Download Link:

https://www.androidfilehost.com/?fid=5862345805528051162

Credit:

Xiaomi

Special Note:

I apologize to all for breaking any possible XDA rule and hurting anyone here!! Please note that I am not getting paid for sharing this post here. If anyone still feels something bad, you can either let me know or you can report it to the admin. But again, I am extremely sorry for breaking any rule here.