Android on Raspberry Pi4
Last update
2023-05-29
2023-05-29
« — »
- download LineageOS image from konstakang
write image to sdcard
1 2
unzip -p lineage-*-rpi4.zip lineage-20.0-20230505-UNOFFICIAL-KonstaKANG-rpi4.img | \ pv | sudo dd of=/dev/sdc
use
gparted
to expanddata
partitionSettings -> System -> Raspberry Pi settings -> SSH / VNC (enable both)
Enable Android debugging & Rooted debugging under Settings -> System -> Developer options
Settings -> About tablet -> IP address; copy SSH key then connect:
1 2 3 4 5 6
adb connect 192.168.X.Y adb root adb pull /data/ssh/ssh_host_ed25519_key my_private_key chmod 600 my_private_key ssh -i my_private_key root@192.168.0.100
Settings -> System -> Raspberry Pi settings -> Audio device (choose HDMI)
Download Magisk TWRP patch + APK
enable advanced restart options, reboot to recovery (TWRP), install Magisk patch, reboot then install Magisk APK