Installation Custom ROM for MI A2 Lite (daisy)

Installation Custom ROM for MI A2 Lite (daisy)

TogoFire

1 - #Brief installation : #installation #Briefly

* If you are coming from any MiuiROM, GSI, or any other PortROM, edl miflash from firmware 10.0.13.0 is mandatory.

- Flash clean_persist_image_daisy_twrp__zero.zip #clean-persist

- Reboot to recovery

- Flash clean_persist_image_daisy_twrp__zero.zip #clean-persist

- Reboot to recovery

- Boot to TWRP

- Wipe data, system, dalvik cache, internal storage.

- Install ROM

- Install TWRP (optional)

- Change slot

- Reboot to recovery

- Install forced encryption disabler (dfe) - (optional)

- Install Gapps (WeebGapps or BitGapps)

- Install Magisk (optional)

- Reboot to system


>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


2 - #Installation:

-Install Firmware 10.0.13.0 - EDL (recommend/optional) 

- Flash persist.img twice by fastboot or twrp. If you have persist.img backup by twrp just restore (To avoid strange bugs and lose your image. For a cleaner flash).

By cmd command in fastboot mode:

fastboot flash persist persist.img

Install persist.img through the twrp terminal - Put this command:

dd if=/sdcard/persist.img of=/dev/block/mmcblk0p49


- Starts for TWRP | Cmd command: fastboot boot twrp.img

- Wipe data, system, dalvik cache, internal storage.

- Install the ROM

- Install TWRP (optional)

- Change the SLOT

- Reboot to Recovey

- Install forced encryption disabler (dfe)

- Install Gapps (optional) - Recommended is WeebGapps or BitGapps

- Install Magisk (optional)

- Restart System (Reboot to system)

Sometimes it may be necessary to force a reboot to rom booted.


>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


3 - #Emergency_guide

This method is to be used if custom roms android 10 does not start on your device. / if no android 10 starts on your device.

- Format data —> yes

- Wipe data, system, dalvik cache, internal storage.

- Change the SLOT

- Reboot to Recovey

- Format data —> yes

- Wipe data, system, dalvik cache, internal storage

- Install Firmware 10.0.13.0 twice - EDL miflashBeta —-> fastboot oem edl

- Install Firmware 10.0.18.0 or other newer firmware. - fasboot 

- Flash persist.img twice by fastboot: fastboot flash persist persist.img

- Starts for TWRP | Cmd command: fastboot boot twrp.img

- Wipe data, system, dalvik cache, internal storage.

- Install the ROM

- Install TWRP.zip (optional)

- Change the SLOT

- Reboot to Recovey

- Install forced encryption disabler (dfe)

- Install Gapps (optional) - Recommended is WeebGapps or BitGapps

- Install Magisk (optional)

- Restart System (Reboot to system)


This method works. tested and approved (100%). Thx by the test @LindoGatoGatissimo


Even after all this, it may be that the 10 roms will only work on base 13. If you want to insist on base 18 or other newer firmware, you can try to install it twice, or install oreo (edl), and then update via OTA to the last pie or a10


Files: https://drive.google.com/drive/u/2/folders/1U31yxqeLSDqrGCPwSGihzc2ZnRq9x6Z_

https://drive.google.com/drive/u/2/folders/1efIrqC1LcC6_MJPHnNPB-sb5evA24obI

https://drive.google.com/drive/u/2/folders/1xwRNzTXrFCmR5CcurZ6jhIJXruD4E2o4

https://drive.google.com/drive/u/2/folders/1_n9GkFpdED4bjxDz0u44UQ-pYnkyLBq6


>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


4 - #Installation Advanced:

- 1 (Optional) Backup your apps with SwiftBackup or TitaniumBackup.

Note: Remember to remove your external sdcard when using miflash so that it is not deleted.

If you are in miui, gsi or any custom vendor, you have to flash firmware 10.0.13.0. Install the firmware with the device in edl mode. Command: fastboot oem edl

In twrp go make erase cache / data / system, format data> yes (backup if you want before), flash 10.0.13 in edl.

After installing edl you can install the latest firmware by fastboot.

Edl not flash persist. So you have to flash persist, install persist.img according to your installed firmware:

fastboot flash persist persist.img

Install persist.img to avoid bugs like missing IMEI and other strange bugs.


By doing this you can skip to step 3.


-2 - When installing persist.img you don't need to install firmware by miflash to test a new custom vendor custom rom, but this way of installation is not the cleanest installation, so to speak.

Note: Remembering that the recommended firmware is version 10.0.13.0 or higher.

Then install only persist.img from your current firmware and then install your Custom ROM.

You can restore your backup of your persist.img by twrp if you have backed it up. or install from cmd: fastboot flash persist persist.img Or device terminal:

flash persist enter this command in terminal twrp : dd if=/sdcard/persist.img of=/dev/block/mmcblk0p49


By doing this you can skip to step 3.


-Unlocked Bootloader:

adb reboot bootloader

fastboot oem unlock

fastboot reboot


Source: https://forum.xda-developers.com/mi-a2-lite/how-to/guide-how-to-unlock-bootloader-official-t3885578


-3 Go to twrp 

Wipes: Wipe dalvik, system, data, cache, Format data>yes

Change slot, reboot to recovery or go to twrp. 

Optional: repeat wipes.

Install rom

Install twrp

Go to reboot menu

Change slot

Reboot to recovery

Install forced encryption disabler (dfe)

Optional: Gapps + kernel + magisk

Reboot to system


>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


5 - #DIRTY FLASH

First, what is a dirty flash? It is installing one ROM on top of the other without losing data. It may work and it may not work depending on your source ROM for the destination ROM. Do backup with titanium backup or swiftbackup for security reasons.

Okay, but how do I do it? Follow the instructions below:


Method 1: From different ROMs (ROM X to ROM Y):

Boot to TWRP (Power and vol+; or Advanced Restart > Recovery)

Backup Data partition (optional)

Wipe the system and dalvik/art cache partition

Install the 'new' ROM and then Install TWRP ZIP(optional)

Change the slot. If on slot A , change to B. If on slot B, change to A. Then reboot to recovery.

Install ForcedEncryptionDisabler.zip, GApps that you've used to installed, and Magisk.

Wipe dalvik and reboot.


Method 2: From the same ROM:

Boot to TWRP (Power and vol+; or Advanced Restart > Recovery)

Backup Data partition (optional)

Install the 'update' ROM and then Install TWRP ZIP(optional)

Change the slot. If on slot A , change to B. If on slot B, change to A. Then reboot to recovery.

Install ForcedEncryptionDisabler.zip, GApps that you've used to installed, and Magisk.

Wipe dalvik and reboot.


Method 3: Restoring data partition:

The same process as installing ROMs from the start, but after you've wipe all partition (assuming you have started from fresh), restore the data partition you've made before then proceed to installing ROMs.


Files: https://drive.google.com/drive/u/2/folders/1bjbiqLzBswhKDbA5uIXTFGQrtE-5f-Yw

Sources:

XDA

https://t.me/A2LiteOfficial

https://github.com/pawelik001/daisyinstall

Report Page