“Tale of corona and jasmine sprout”

Amid Corona epidemic, My Xiaomi Mi A2 (Jasmine Sprout) Faced booting problem after I updated it to Android 10 (Q).

Md. Shahrear Mostofa Romio
7 min readMay 5, 2020

When I was in college I used to flash Roms in Android devices just for fun. which was approximately 5 years ago. But stopped it due to lack of time and hectic schedule. However, bought an android one device because, duh! Google. They’re known for their service and free software which were stable and also free to use.

Nevertheless, android one devices were known for bloatware and hassle-free but who knew that I will encounter a bad situation amid this pandemic where I’m not able to find a mechanic or equipment. I was worried about consumers who brought these android one devices. In their latest android 10 updates, they messed up pretty badly also rolled back the updates after getting complaints from customers. They even did it with the Xiaomi Mi A3.

“I have little knowledge of flashing Custom Roms in devices but I tried to help you guys and wrote this article for the consumers who don’t know what to do amid this situation with there devices. But I can’t guaranty the safety of your device but if you follow the steps clearly you’ll be able to use your handset again.”

The method is for the Xiaomi MiA2( Jasmine sprout ). But I’ll provide the links for various other devices which thankfully were left behind by our beloved Google.

The things you’ll be needing to complete the task is (prerequisite):

  • ADB drivers installation.
  • USB data cable.
  • Internet access.
  • Unlocked bootloader. (Unlocking bootloader voids warranty )
  • A custom recovery. (Twrp, CWM )

That’s it for these you don’t need to step a foot outside of your home won’t find these safe and warranty what will I do with warranty if I can’t use my device during these days where we are heavily relying on virtual contact and the medium is this third screen. Ok! Enough talk now the main process begins so, please give your full attention and don’t skip any of the processes. Download boot image and ROM zip file of the device that you’re working with.

Install The ADB and fast boot drivers :

How to install ADB Installer v1.4.3

  1. Download and extract ADB-setup-1.4.3.zip
  2. Start “ADB-setup-1.4.3.exe” (right-click and “Run as administrator”).
  3. In case you’ve haven’t previously installed any drivers it is recommended to answer Y/Yes on all the questions.
  4. Type “Y/Yes” to install ADB and Fastboot or “N/No” to skip.
  5. Type “Y/Yes” to install Systemwide for all users or “N/No” for current user only.
  6. Type “Y/Yes” to install drivers or “N/No” to skip.
  7. The driver installation will start.
  8. Wait for 15 seconds and installation should be completed.
  9. Reboot your system.
Installing ADB Installer

Bootloader? The storage on your Android smartphone, at its most simple level, is like a hard drive made up of many partitions. One of those partitions holds the files from the Android program, another holds all the data from the device that you collect (which is how you are typically able to update without losing all your things), and others do more things behind the scenes. For all those partitions, think of the bootloader as a security checkpoint and manager. So, To bypass this you need to have an Unlocked Bootloader.

Follow these steps to unlock Bootloader;

  1. Open the Settings application.
  2. Scroll down and tap on the System option.

3. Tap the Advanced Option.

4. Then tap the Developer Options feature toward the bottom.

5. Enable OEM Unlocking on the Mi A2.

6. And tap the Enable option when the dialog box appears.

7. Now the Xiaomi Mi A2 into Fastboot Mode

8. Connect the smartphone to the PC with a USB cable.

9. Open a Command Prompt or Windows PowerShell in the same folder as your ADB/Fastboot tools are in.

10. Type the following command and then press Enter on the keyboard.

fastboot flashing unlock

11. Now look at your Xiaomi Mi A2 and you should see a bootloader unlock warning screen You can read the text on the warning screen but if you know what unlocking the bootloader does then you likely already know the risks that are involved.

12. Press the Volume Down button two times until the Unlock the Bootloader option is highlighted.

13. And then press the Power button to select this option (Unlock The Bootloader)

14. Wait for the Xiaomi Mi A2 to reboot a couple of times

During this process, the smartphone will perform the data factory reset and then it will reboot back into Android

15. This first boot cycle back into Android will take a few minutes so be patient during this process

16. Then simply activate Android and connect your Google account like you normally would when you get a new smartphone

Installing Recovery and Root :

How to Install TWRP in MI A2 and ROOT with Magisk(This worked for me)

  1. Download TWRP recovery Image: https://www.absolutelytechie.com/2018/12/SubAbsTech.html?id=aHR0cDovL2JpdC5seS8zMmtHUmhk
  2. Magisk Zip File: https://www.absolutelytechie.com/2019/01/AbsolutelyTechieDownload.html?id=aHR0cDovL2JpdC5seS8zM3c1cDc2
  3. Download Platform Tools: https://www.absolutelytechie.com/2019/01/AbsolutelyTechieDownload.html?id=aHR0cDovL2JpdC5seS8yTWdqZm9r

The commands are :

  • fastboot devices
  • fastboot boot *then drag the boot image on the command prompt*

After Flashing TWRP and Rooting. The Next Step flashing Roms and Mods…

Download Rom:

  1. Mokee: https://download.mokeedev.com/jasmine_sprout.html
Mokee Rom for Mi A2 code name jasmine sprout
Mokee Roms

2. Download Magisk :

Magisk

3.Download Gapps :

“Gapps” is an unofficial package distributed in several forms and places containing Google applications and frameworks.

Steps:

  • first fastboot ‘boot twrp.img (Like you did in the first place By pressing the power button and volume down button then using the command prompt
  • Then erase partition A and B
  • set active to B
  • Then install Rom
  • after installation, set the slot to A
  • restart in the bootloader mode
  • fastboot boot twrp.img
  • install Gapps and Magisk
  • restart to the system

Follow this Link: https://forum.xda-developers.com/mi-a2/development/mokee-rom-xiaomi-mi-a2-jasmine-8-1-0-t3885399 (I followed this link but downloaded the from,Magisk, Gapps File from the Official Mokee Site)

How to Install Lineage Os using TWRP :

  1. Download and transfer the Lineage OS ROM and Lineage OS Gapps file to your device’s internal storage.
  2. Boot your device into TWRP recovery. You can simply Google how to enter recovery mode on your device.
  3. In TWRP recovery, click on Wipe » Advanced Wipe. Here select the following options shown in the screenshot below. Do not select the option which reads ‘Internal Storage‘ at any cost, as it will wipe off EVERYTHING, including your ROM file.

4. Go back to TWRP main menu, tap on Install, and select the Lineage OS Zip file that you transferred to your device in Step 1.

5. After selecting the .zip file, do Swipe to Confirm Flash on the bottom of the screen to begin the custom ROM installation process. This may take some time.

6. Once your ROM is successfully flashed, you’ll see Wipe cache/Dalvik option, select it and then do Swipe to wipe on the bottom of the screen.

7. Now flash the Lineage OS Gapps file similarly like you flashed the ROM file

8. After flashing both ROM and Gapps files, reboot your device.

Follow:https://forum.xda-developers.com/mi-a2/development/10-x-lineage-17-0-jasminesprout-t3966643

The Information above when Flashing Lineage Os 17.1 For MI A2. I found A bug In The Rom which muted the speaker )

Back up everything: https://www.youtube.com/watch?v=VwX291bnYIQ

These are the things I followed and now my Device is up and running.

Other Roms: https://www.getdroidtips.com/custom-rom-xiaomi-mi-a2/

Explore, Experiment, and Execute the steps perfectly I hope you’ll not need to go to a repair shop for minor software issues. Flash at your own risk because doing these usually the Warranty is void also some faces bricked phones. Even I’m not a professional I wander around, search, and try new ROMs.The entire process is given here, how I saved my self from the audio problem, excessive battery drainage, and also random booting.

Google Developers Android Developers

Goodbye fellas have a nice flashing. Stay home stay safe.

--

--

Md. Shahrear Mostofa Romio

"Journalistic Eye, Creative mind". Studying Mass Communication and Journalism at Daffodil International University.