#vmware17 ubuntu24.04全屏展示sudo apt install open-vm-tools open-vm-tools-desktop -ysudo reboot#安装jdksudo apt install openjdk-17-jdk -y#安装gitsudo apt-get install git -ygit config --global user.name yymgit config --global user.email dhxy2youyanming1163.com#清华源export REPO_URLhttps://mirrors.tuna.tsinghua.edu.cn/git/git-repoecho export REPO_URLhttps://mirrors.tuna.tsinghua.edu.cn/git/git-repo ~/.bashrcsource ~/.bashrc#下载android16源码mkdir -p ~/aosp16cd ~/aosp16sudo apt install curl -ysudo apt install repo -yrepo init -u https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest \-b android-16.0.0_r4 \--repo-urlhttps://mirrors.tuna.tsinghua.edu.cn/git/git-reporepo sync -j12 --no-tags#安装编译依赖sudo apt install -y git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g-multilib libc6-dev-i386 lib32ncurses-dev x11proto-core-dev libx11-dev lib32z1-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip fontconfig libssl-dev libffi-dev#编译sudo fallocate -l 16G /swapfilesudo chmod 600 /swapfilesudo mkswap /swapfilesudo swapon /swapfilesource ./build/envsetup.shlunch aosp_cf_x86_64_only_phone-aosp_current-userdebugm -j8##编译报错放开限制sudo sysctl kernel.apparmor_restrict_unprivileged_userns0echo kernel.apparmor_restrict_unprivileged_userns0 | sudo tee -a /etc/sysctl.confsudo sysctl --system
阅读完成 · 觉得有帮助?