Xiaomi Mi A2 Lite (xiaomi-daisy)

This device is also known as Xiaomi Redmi 6 Pro (sakura). The only difference is that sakura has MIUI preinstalled instead of stock Android One.

Contributors

 * Ash
 * Alikates

Fastboot Mode
First make sure to enable USB debugging in Android Then with device powered off, hold the and  buttons simultaneously for a few seconds, until Fastboot Mode screen appears.

OEM Unlock
Get device into Fastboot Mode, plug in USB cable, then:

When prompted on device, use Volume-Up/Down buttons to highlight choice, then Power button to select it. The Fastboot Mode screen will appear again, and a message saying that the device isn't secure will appear briefly.

Mainline kernel
In order to use the mainline kernel, installing lk2nd is needed. The package  provides a prebuilt version ready to flash to the device.

To use it, add it in the init step or instead of running, add the package like this:

Then put the device in fastboot mode and run: Then reboot the device and press the just after the Android logo shows up and hold until the device vibrates and shows   in green at the top left corner of the screen.

Downstream kernel
If using the downstream kernel, put your device in fastboot mode.

Install the image
To proceed with the installation to internal storage of pmOS, plug the device to the computer with an USB cable and run:

Mainline Kernel
To use it select mainline kernel when running

Flashing lk2nd is needed. .

Modem
Firmware loads and modem boots. It detects SIM card and can be unlocked and configured with qmicli.

Because audio needs more work i couldn't test audio quality on calls but with q6voiced it should work.

Mobile data
Mobile data works now.

To configure the mobile network settings, use NetworkManger (mobile network menu on phosh settings) so it sets up the network interface and IP routing.

After that, two new network interfaces should appear. The rmnet one is the connection to the modem, and the other one is virtual and the one that is used to transmit mobile data.

Images