[Xiaomi Mi A1 Guides, News, & Discussion] Lupin The Third:
[IMG="logo"]https://i.imgur.com/FETv3tY.jpg[/IMG]

A THREAD WHERE WE CAN DISCUSS THE MONTHLY OFFICIAL UPDATES FOR MI A1 AND OTHER USEFUL TOOLS AND MODS

TUTORIALS

============================​

How to unlock bootloader:

1. Configure fastboot for your machine. Tutorial here.

2. Reboot phone to fastboot. (Turn off, and keep pressed volume - and power buttons until you see the fastboot image.)

3. Type this at a command prompt: fastboot oem unlock. Your phone will be unlocked.

3a. Starting with May 2018 update, unlocking the bootloader will wipe the device. So, backup first.

==========================================​

Flashing stock fastboot rom:

1. Download the Mi Flash Tool from here.

2. Download the latest ROM package file for mi a1 from here.

3. Decompress the ROM so that you can see its files and folders. You may have to unzip it twice.

3. Enter phone in Fastboot mode. (check step 2 in the unlock bootloader process above)

4. Connect the phone with your computer.

5. Decompress the Mi Flash Tool downloaded in Step 1, and open XiaoMiFlash.exe

6. Press the select button to the left in the Mi Flash Tool and select the folder where you extracted the fastboot ROM.

7. Click the Refresh button, and MiFlash tool should automatically recognize the device. (check note below before flashing)

8. Click flash to flash the ROM file to the device.

9. Wait until the progress bar inside MiFlash turns fully green, which means the ROM has been successfully installed. The phone should automatically boot to the new version.

NOTE:

To the bottom right of the Miflash tool you have three option you can choose before flashing. This is what they mean:

Clean all: All data and user configuration will be cleaned. Device will remain 'Unlocked' after flashing.

Save user data: All data and user configuration will be saved.

Clean all and lock: All data and user configuration will be cleaned and device will be 'Locked' after flashing.​

=======================================​

How to root stock ROM:

1. Make sure your bootloader is unlocked as explained above

Method 1:

1. Download latest magisk.zip and put it on your sd card

2. Reboot into bootloader

3. Boot the latest twrp recovery with the command: fastboot boot twrpxxx.img

4. After booting into twrp flash magisk and reboot

Method 2:

1. Extract the boot.img file from the fastboot ROM you downloaded from here and copy the file to your phone

1a. If you updated your system Over The Air (OTA) and the official fastboot ROM is not out yet, you can extract the boot.img yourself. See the note in the end of this tutorial for this

2. Install magisk manager app from here

3. Run Magisk manager, and click install. Choose patch boot image. Choose the boot.img you copied to your phone in step 2. Let the app to patch the file. When done it will tell you where the patched file is located. Usually, in your internal sd card/Magisk

4. Copy the patched_boot.img file to your computer

5. Reboot phone in fastboot mode

6. Connect phone with computer, open a terminal window where the file is located, and run the following command

fastboot flash boot patched_boot.img

7. Reboot phone after the flashing procedure is done. You can use this command

fastboot reboot

8. Open Magisk app and now install latest Magisk through the app

9. Done

Note:

To extract the latest boot.img from your freshly updated phone yourself do the following

1. Reboot phone to fastboot and connect with your computer

2. Boot TWRP from here or use your preferred TWRP version

3. In recovery choose Backup and select Boot only. You may want to select the external sd card for the backup location

4. Wait for it to finish and reboot to system

5. Go to the TWRP folder and browse the backup folder

6. Find the file boot.emmc.win. This is your boot.img file. Rename it to boot.img and now continue with the step 3 above​

=================================================​

If your phone fails to apply OTA update because of rooting, flashing twrp and other mods to the system:

1. Uninstall Magisk from magisk manager

2. Reboot to Fastboot

2. Flash latest fastboot ROM with Mi Flash tool with the option "Save user Data"

3. Once phone restarts, your files will be preserved and now you can apply OTA

4. Root again with the above tutorial.

=================================================​

Enable camera2 API, EIS and install gcam mod:

1. Root your phone with Magisk and install Magisk manager (see above for tutorial).

2. Add this Magisk module that I made and reboot. DOWNLOAD

3. For stock rom you need to add another module in Magisk to resolve the delay in opening the gcam app. Download it from here. Credits to [MENTION=5120185]flex1911[/MENTION]

3. Finally, download gcam mod from here. Latest Arnova version is reccomended.

4. Install as a normal app, tweak the settings to your need and enjoy.

NOTE: Discussion about Arnova gcam here.

=================================================​

Reviews:

Unbox Therapy - The $200 Smartphone You NEED To Know About

GSM Arena - Xiaomi Mi A1 Review

Android Authority - Xiaomi Mi A1 review: the perfect budget phone?

Android Police - Xiaomi Mi A1 second take: For $215, it offers the best value of any Android smartphone right now

Trusted Reviews - Xiaomi Mi A1