[Xiaomi Mi A1 Guides, News, & Discussion] Saswata Chakraborty:
Ladies and Gentlemen,

It is my pleasure to present the latest stock Oreo 8.1 (Beta) ROM for Xiaomi Mi A1. Up till now, only a handful of testers were able to use the stock beta 8.1

But now, everyone has the opportunity to use it on their device.

Disclaimer:

If you are planning to flash the ROM on your device, you are on your own. I would not be responsible if anything happens to your device. Your warranty will be void after flashing the ROM. You need to go back to stock stable ROM with a locked bootloader for 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 unzip it.

2. You will see a folder with name as tissot_images_V9.6.2.0.ODHMIFE_8.1

3. Keep it on C drive

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.2.0.ODHMIFE_8.1 and click on "Flash". Make sure you are doing it in a proper way.

10. Wait until you see a "Flash Done" message on the screen. It may take around 5-10 minutes. Once done, your device will boot into system and Congrats! Now you have Oreo 8.1 on your device with June 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. A lot of newbees have 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:

I have been using the ROM for two days and I am yet to find any bugs except ctsProfile shows as false and Google Play Store shows Uncertified.

*For better battery life, you can try Void kernel (Choose the stock version).

ROM Download Link:

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

Credit:

Xiaomi, 4PDA, [MENTION=4470081]topjohnwu[/MENTION] for Magisk, [MENTION=5120185]flex1911[/MENTION] for Void kernel, [MENTION=1844875]CosmicDan[/MENTION] & [MENTION=7471004]mohancm[/MENTION] for their work on TWRP.

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.