Free and opensource AOSP based Android for the world's most accessible development platforms.
This version is based on Android 10.0.0 Release 32.
- Orange PI Plus 2E
- Orange PI PC
- Orange PI 3
- Pinephone
- Pinetab
- Orange PI WIN (not tested)
- Google's required packages.
- Additional packages:
sudo apt-get install swig repo python-dev python3-dev libssl-dev flex bison device-tree-compiler
sudo pip install Mako
mkdir -p GloDroid
cd GloDroid
repo init -u https://github.com/glodroid/glodroid_manifest
repo sync -cq
cd GloDroid
source ./build/envsetup.sh
lunch
# After that you have to select your device from the list
make sdcard
After successful build you should see sdcard.img in product output folder: (out/target/product//sdcard.img)
Use dd or any other utility to write it to the sdcard:
(Using dd utility is risky, make sure you are not using your local hard drive device as output)
cd ${ANDROID_ROOT}/
export card=/dev/sdX
dd if=out/target/product/<your device folder>/sdcard.img of=${card} bs=4k count=330000
sync
After sync command completed you can safely extract your sdcard from the computer.
In case you already have working Android on your device and you want to update it with some
modifications, you can do it without having to remove sdcard.
- Connect your board to PC using micro-usb cable.
- Run your board
- Execute
adb reboot fastboot
command from PC shell. After that board will reboot into fastbootd mode. - Change directory to
out/target/product/<your device folder>/
- Run script
./flash-all.sh
You may also want to flash only particular partition to save deploy time. To do that - copy and modify flash-all.sh.