# Google Code
repo init -u https://android.googlesource.com/platform/manifest -b android-12.0.0_r8 --depth=1
git clone https://vm.cooluc.com/AOSP-12/local_manifests .repo/local_manifests -b 12
# 同步源码
repo sync -c -j$(nproc --all) --force-sync --no-clone-bundle --no-tags
# Set up environment
$ . build/envsetup.sh
# Choose a target
$ lunch aosp_$device-userdebug
# Build the code
$ brunch $device
$ repo init -b android-12.0.0_r8