From 28c9034a3eb07e15fd34d158e1811878f85577e7 Mon Sep 17 00:00:00 2001 From: Ziyang Zhou Date: Tue, 16 Nov 2021 02:36:40 +0800 Subject: [PATCH] update build doc --- android-builder-docker/README.md | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/android-builder-docker/README.md b/android-builder-docker/README.md index 2b30717..e988fab 100644 --- a/android-builder-docker/README.md +++ b/android-builder-docker/README.md @@ -2,18 +2,16 @@ ## Sync Code ReDroid manifest include several branches: -- `redroid12-gsi`, `redroid-s-beta-3` -- `redroid11-gsi`, `redroid-11.0.0` -- `redroid10-gsi`, `redroid-10.0.0` -- `redroid-9.0.0`, `redroid9-gsi` (experimental) +- `redroid-12.0.0` +- `redroid-11.0.0` +- `redroid-10.0.0` +- `redroid-9.0.0` - `redroid-8.1.0` -branch with `-gsi` is recommended (fully treble / VNDK enforced). - ```bash # fetch code -mkdir aosp && cd aosp +mkdir ~/redroid && cd ~/redroid repo init -u https://github.com/remote-android/platform_manifests.git -b --depth=1 repo sync -c --no-tags ``` @@ -24,12 +22,19 @@ repo sync -c --no-tags # adjust apt.conf and source.list if needed docker build --build-arg userid=$(id -u) --build-arg groupid=$(id -g) --build-arg username=$(id -un) -t android-build-trusty . +# start builder +docker run -it -v ~/redroid:/src android-build-trusty + # *inside* builder container cd /src . build/envsetup.sh + lunch redroid_x86_64-userdebug -# or lunch redroid_arm64-userdebug +# redroid_arm64-userdebug +# redroid_x86_64_only-userdebug (64 bit only, redroid 12) +# redroid_arm64_only-userdebug (64 bit only, redroid 12) + m # create redroid docker image in *HOST*