Stock android replacements

Android phones (or smartphones I guess) have been with me for most my teenage years and young adult life. With the exception of my first phone (a dumb but quite capable Nokia phone), all devices I owned have been Android and I have always enjoyed the experience of using it, even if nowadays it feels less and less refreshing with every new update.

This lack of novelty, combined with more restrictive settings, pre-installed apps that you cannot fully uninstall or disable and more insights of how apps enforce almost no privacy concerns over my data made me want to investigate and find out what are the real alternatives to Android (or at least stock Android).

My old phone, the Xiaomi Mi A2 Lite is part of a Google program called Android One, a set of 3º party smartphones that would run a near-stock Android instead of the custom ROM and launchers that every phone manufacturer uses as well as a promised period of software updates. A version with the Xiaomi custom launcher also exists, and is called Xiaomi Redmi 6 Pro.

Now that the phone is way outside it’s guarantee period and has served me well during nearly 6 years I have decided to take it for a spin again and try out some custom ROMs in it, since Xiaomi phones have easy to unlock bootloaders.

The world of custom ROMs

One of the best resources online for custom android ROMs is XDAForums where many communities are built around specific devices and can ask questions, get custom mods and even reviews.

In case of my phone, the forum for it is still alive, with posts every now and then. For this phone model, we basically have the following options:

  • LineageOS: A free and open-source operating system for various devices, based on the Android mobile platform. The Xiaomi Mi A2 Lite is not officially supported by it, and does not show up in the official website, but many unofficial versions are available at XDAForums like this one here.

  • Pixel Experience: An AOSP (Android Open Source Project) based ROM, with Google apps included and all Pixel goodies (launcher, wallpapers, icons, fonts, bootanimation). There are official deprecated versions in their webpage but I haven’t tested them.

LineageOS installation

In this post, I will be going over LineageOS from the forum post mentioned above. The guide and installation process can be found in ItsVixano LineageOS Wiki and contains everything to get the device up and running with LineageOS 22.2.

Other links that were useful:

Reboot your device into fastboot mode by holding down POWER + VOLUME DOWN buttons.

On a terminal, flash lineage recovery with fastboot flash boot boot.img

Reboot your device into recovery mode by holding the POWER + VOLUME UP buttons.

On the LineageOS Recovery home screen, tap Apply update, then Apply from ADB for starting the sideload service.

With adb, install the vendor firmware with adb sideload vendor_firmware.zip

When presented with a screen that says Signature verification failed, click Yes. It is expected as vendor firmware packages aren’t signed with the same keys!

Reboot to recovery by tapping Advanced, then Reboot to recovery.

On the Lineage Recovery home screen, tap Factory reset, then Format data/factory reset and press Format data. This will delete all your device’s data and remove encryption from an older ROM. On the Lineage Recovery home screen, tap Apply update, then Apply from ADB for starting the sideload service.

Install the lineageOS image with adb sideload lineage-22.2-xxxxxxxx-UNOFFICIAL-daisy.zip

After the package is installed, recovery will may inform you that reboot to recovery is required to install add-ons. In case you want to do that, please select Yes, otherwise No.

Normally, adb will report Total xfer: 1.00x, but in some cases, even if the process succeeds the output will stop at 47% and report adb: failed to read command: Success. In some cases it will report adb: failed to read command: No error or adb: failed to read command: Undefined error: 0 which is also fine.

On the Lineage Recovery home screen, tap Reboot system now. If everything went well, you will be greeted by the infamous LineageOS boot animation :D.

Installing Google apps (add-ons):

Apply update, then Apply from ADB and do: adb sideload MindTheGapps-15.0.0-arm64-20250812_214357.zip

Android alternatives?

There are also brave souls who want their device to run other OSes not based on Android. That is the case of PostmarketOS, a Linux distribution for mobile devices which aims to extend the life of consumer electronics and giving people the control of their devices.

PostmarketOS Installation

The following steps are based in their official installation page for this phone as well as other pages and resources. Start by cloning pmbootstrap, for building packages, creating installation images and flashing them to the phone:

mkdir postmarket-os
cd postmarket-os/
git clone https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
cd pmbootstrap/

Plugging the Mi A2 Lite with android debugging mode turned on

sudo fastboot oem unlock # Check if unlocked
fastboot set_active b

Doing this will flash the “generic” postmarket port, which might not have the touchscreen drivers

python pmbootstrap.py flasher flash_lk2nd
python pmbootstrap.py flasher flash_rootfs

python3 pmbootstrap.py zap
python3 pmbootstrap.py init # choose Vendor: qcom Device codename: msm8953
python3 pmbootstrap.py install

Since touchscreen was not working, need to edit touchscreen-compatible part and manually build lk2nd

cd lk2nd/
xed lk2nd/device/dts/msm8953/msm8953-xiaomi-daisy.dts

Edit the file to the following contents:

// SPDX-License-Identifier: GPL-2.0-only

/dts-v1/;

#include <skeleton64.dtsi>
#include <lk2nd.dtsi>

/ {
    qcom,msm-id = <QCOM_ID_MSM8953 0>;
    qcom,board-id = <QCOM_BOARD_ID(QRD, 1, 0) 9>;
};

&lk2nd {
    model = "Xiaomi Mi A2 Lite";
    compatible = "xiaomi,daisy";
    lk2nd,match-bootloader = "*DAISY*";

    lk2nd,dtb-files = "msm8953-xiaomi-daisy";

    panel {
        compatible = "xiaomi,daisy-panel", "lk2nd,panel";

        qcom,mdss_dsi_ili7807_fhdplus_video {
            compatible = "mdss,ili7807-fhdplus";
            touchscreen-compatible = "edt,edt-ft5406";
        };
        qcom,mdss_dsi_hx8399c_fhdplus_video {
            compatible = "himax,hx8399c-fhdplus";
            touchscreen-compatible = "edt,edt-ft5406";
        };
        qcom,mdss_dsi_otm1911_fhdplus_video {
            compatible = "mdss,otm1911-fhdplus";
            touchscreen-compatible = "edt,edt-ft5406";
        };
    };
};

For building the lk2nd.img, I needed to install some depencencies. Then I could just use pmbootstrap to flash the OS into the phone:

sudo apt install gcc-arm-none-eabi build-essential git
sudo apt install device-tree-compiler
make TOOLCHAIN_PREFIX=arm-none-eabi- lk2nd-msm8953
fastboot flash boot_b build-lk2nd-msm8953/lk2nd.img
fastboot set_active b
fastboot reboot

pmbootstrap flasher flash_rootfs

Install process summary:

cd lk2nd/
fastboot flash boot_b build-lk2nd-msm8953/lk2nd.img
fastboot set_active b
cd ../pmbootstrap/
python3 pmbootstrap.py flasher flash_rootfs
fastboot reboot

Opinon:

Gnome Mobile

Seems ok, no hardware acceleration for front facing camera live video and keyboard is always popping up Phone poweroffs after some time with screen locked (2 min) or after pressing the power button to lock the screen. Why…

Plasma Mobile

Looks amazing, wayyy more responsive and has a better “getting started” with reasonable screen scaling and other settings to tune. Camera live video is more responsive but not “great” but could be the camera itself (only the front camera is supported). I can tap twice on the screen to unlock/lock the screen which is cool.
Negative (didnt check in Gnome): Turning it off while charging imediatelly boots it back up.

Conclusion

After trying out these solutions, I will be flashing the phone with LineageOS, for a usable android experience. Linux based OS still are under active developments and aside from expert users/developers I wouldn’t recommend it yet. Maybe it can be usefull a server for example.


Page last modified: Nov 15 2026.

This site uses Just the Docs, a documentation theme for Jekyll.