Installing Android System on Raspberry Pi: LineageOS
Raspberry Pi 4
Although the price of the Raspberry Pi is high and it is no longer a cheap SBC, its ecosystem remains unmatched.
Most systems prioritize adaptation for the Raspberry Pi.
For example, kali linux
, chrome os
, nextcloud
, etc.
Android System:
lineageos
Download the img file from konstakang
.
Use the official Raspberry Pi imaging tool: Raspberry Pi Imager.
Generally, Linux systems can be flashed using balenaEtcher
.
However, the tools for installing the Android system require some caution.
Obtaining Root with Magisk
Magisk for Raspberry Pi needs to be flashed through TWRP.
For the Orange Pi 5, simply installing the Magisk APK is sufficient, and there is no need to find boot.img
.
Download the Magisk.zip suitable for the Pi, and enable Advanced Boot
in the Power Options
.
Then, when you click reboot, the TWRP option will appear.
The official documentation is as follows:
Install the Magisk installation package in TWRP.
Reboot to obtain root permissions and install LSPosed and related modules.
Common Issues
Whether it’s the Orange Pi 5 or Raspberry Pi 4, installing the system shows as Tablet (PAD Mode)
.
Touchscreen and scrcpy.
The 15-inch portable touchscreen I bought supports Type-C one-cable power + screen mirroring.
The Orange Pi 5 works normally, but the Raspberry Pi with Lineage OS seems to have no response from the touchscreen, temporarily controlled by keyboard and mouse.
Installed scrcpy
, and allowed USB debugging in Lineage OS Developer Options
.
However, there is still an error, and it does not start normally.
Summary
Development Board | Type-C Video Output | One-click Root | scrcpy Screen Mirroring |
Raspberry Pi 4 – LineageOS | ✖️ | ✖️ | ✖️ |
Orange Pi 5 – Droid | ✔️ | ✔️ | ✔️ |
References
[1]
Raspberry Pi 4: https://konstakang.com/devices/rpi4/[2]
GitHub – topjohnwu/Magisk: The Magic Mask for Android: https://github.com/topjohnwu/Magisk[3]
GitHub – Genymobile/scrcpy: Display and control your Android device: https://github.com/Genymobile/scrcpy