Android X86 Project

六七年前就了解过Phoenix Remix这样的项目, 即给个人PC电脑安装Android系统. 但那时候没有看到能够用户自定义的用户自己编译的Android. 直到在Quectel工作的时候,在用户那里,了解到LineageOS以及Android X86,即可以自己编译的Android系统

https://www.android-x86.org/source.html

准备条件

sudo apt -y install git gcc curl make repo libxml2-utils flex m4
sudo apt -y install openjdk-8-jdk lib32stdc++6 libelf-dev
sudo apt -y install libssl-dev python-enum34 python-mako syslinux-utils
sudo apt-get install openjdk-8-jdk
sudo apt-get install gettext libncurses5

Android 源码

repo init -u http://scm.osdn.net/gitroot/android-x86/manifest -b $branch
repo sync --no-tags --no-clone-bundle

编译

source build/envsetup.sh && lunch android_x86_64-userdebug
m -jX iso_img  2>&1 | tee build.log

编译好的镜像,在虚拟机中烧录测试