[Xiaomi Mi A2 Lite Guides, News, & Discussion] InfinityXDA:
THIS REQUIRES YOUR DEVICE TO BE COMPLETELY RESTORED, PLEASE BACK UP DATA BEFORE DOING THIS.

/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

THIS HAS ONLY BEEN TESTED ON RESURRECTION REMIX YOU CAN TEST OTHER GSI'S WITH THIS (TELL ME YOUR RESULTS BELOW)

NO CUSTOM KERNELS CAN BE APPLIED RIGHT NOW

THIS DEVICE HAS A "AB" BOOT SET SO PLEASE GET "AB" GSI'S

​

Grab these two files (Big Thanks to [MENTION=6253668]mac12m99[/MENTION], [MENTION=5296790]33bca[/MENTION] (Offain on AFH) XDA Profile

Fixed SDCard Support TWRP Image File (Download this and put this on your SDCard and Computer)-

Fixed TWRP XDA Post

Fixed SDCard Support TWRP Installer Zip (Download and put this on your SDCard)-

Fixed TWRP .zip Installer

But I got TWRP on with magisk.

THIS WILL WIPE YOUR DEVICE I'M DEFINITELY NOT RESPONSIBLE FOR LOST DATA, SD CARDS, ETC ONCE AGAIN

​

Start with the phone being on with USB Debugging enabled with platform tools etc. correctly and bootloader unlocked

Type:

adb reboot bootloader

1. So flash the 10.0.4.0 ROM to get a fresh start (this is highly recommended) folder through MiFlash using the flash_all.bat, this process has to be done so backup your data before erasing.

1a. After it is done flashing it restarts, hurry and hold power + volume down to boot back into the bootloader

2. Boot up that TWRP.img file you downloaded above in this color

Type:

fastboot boot twrp-3.2.3-0-daisy_zero.img

It would boot into TWRP

2a. Tap install and find your SD Card, find the fixed-twrp-installer-daisy.zip in this color above where ever you put it on your SD Card and install it, this process takes a few minutes when finished DO NOT HIT REBOOT SYSTEM!

2b. Hit the home button back to TWRP home screen and tap reboot >>> bootloader

3. Download this to your computer -

aboot.img

3a. Type:

fastboot flash aboot aboot_9.6.4.img

Then type:

fastboot reboot

4. Afterwards you shall go back to bootloader quickly

Type:

fastboot erase system

Type:

fastboot erase userdata

5.Open the 10.0.4.0 folder you flashed above in

#1

with MiFlash and have the

"userdata.img"

handy from that folder.

Download (download the one with latest date and that says "arm64" and "ab") or use the Resurrection Remix Pie ROM you have, now you will have to have those files handy.

6. Flash the Resurrection Remix or GSI (No other ROM yet tested) to system

Type:

fastboot flash system GSI.img

This process takes a minute

7. Flash the userdata.img from the 10.0.4.0 folder (This is important!)

Type:

fastboot flash userdata userdata.img

7a. Go back to TWRP

8. Download this .zip file below and put it on your SD Card (by mounting SD Card in TWRP) in a place you will remember

The .zip file is located here find the "disable force encryption" BIG THANKS TO [MENTION=8281637]eremitein[/MENTION]

9. Boot to TWRP (Power+Volume Up keybind) flashing the encryption file above on #8 that you have on your SD Card

10. Boot to the system, check the storage in settings it may say that you have 8GB

11. Be careful hitting the wrong things may damage your device, but below follow this tap directions

11a Go back to TWRP and follow below!

11b. From the TWRP home screen tap...... Wipe>>>>Advanced Wipe, Check

"System"

then tap Repair or Change File System>>>>Resize File System>>>> Swipe to Resize

11c. From the TWRP home screen tap...... Wipe>>>>Advanced Wipe, Check

"Data"

then tap Repair or Change File System>>>>Resize File System>>>> Swipe to Resize

12. Boot up to system and check if the storage is fixed

13. Flash your GApps through TWRP for Google Services Functionality, I highly recommend micro, nano or pico.

14. Now flash Magisk zip (optional)

DO NOT FLASH A KERNEL IT WILL MESS UP WIFI TALK ABOUT IT IN THAT KERNELS THREAD

Code Aurora Fourm (CAF Kernel)

Justice Kernel

Have fun with your GSI, nothing is buggy on RR so far. The fullscreen has been fixed!

Please tag me below upon what GSI's work with this method and make sure you hit that thanks button it took me awhile to put this together with multiple extreme failures .