GloDroidCommunity / raspberry-pi

Android 14 for the Raspberry PI 4 series based on the GloDroid project
Apache License 2.0
28 stars 5 forks source link
android aosp aosp-android glodroid lineageos raspberry-pi raspberrypi rpi4

Android 14 for the Raspberry PI 4 series based on the GloDroid project

GloDroid ProjectStatus License Discord

Warning!

This project is a free and open-source initiative maintained by a group of volunteers. It is provided "as is" without any warranties or guarantees. The user is fully responsible for any issues arising from using the project.

Flashing images

Find the sdcard image or archive with fastboot images here

Use the SDCard raw image to flash the Android into SDCard.

Or use the fastboot images archive to download Android on SDCard using fastboot mode:

Step 1

Extract the content of the archive.
Using any available iso-to-usb utility, prepare recovery SDCARD.
To flash Android on a sdcard, use deploy-sd.img

Step 2

Ensure you have installed the adb package: $ sudo apt install adb (required to set up udev rules)
Insert recovery sdcard into the phone.
Connect the phone and your PC using a typec cable.
Power up the phone. Blue LED indicates that the phone is in bootloader mode, and you can proceed with flashing.

Step 3

Run ./flash-sd.sh utility for flashing Android to sdcard

After several minutes flashing should complete, and Android should boot

Building from sources

Before building, ensure your system has at least 32GB of RAM, a swap file is at least 8GB, and 300GB of free disk space available. We recommend using the latest laptops to get good performance. E.g., the HP ENVY x360 model15-ds1083cl takes about 5 hours to build the project.

Install system packages

(Ubuntu 22.04 LTS is only supported. Building on other distributions can be done using docker)



NOTE: After this step, you may need to log out and log in to the system to make $HOME/bin added to the PATH environment variable.

Fetching the sources and building the project

git clone https://github.com/GloDroidCommunity/raspberry-pi.git
cd raspberry-pi

Building AOSP

./unfold_aosp.sh && ./build.sh

NOTE: If you're using git for the first time, it may ask you to configure the user name and email address and confirm the colored terminal. Please follow the suggestion you see on the screen in this case.

Building LineageOS

To enable GMS (microg), set the environment variable export WITH_GMS=true.

./unfold_lineageos.sh && ./build.sh

Notes