This folder contains scripts to help you to build, run and share car AVD images. We intentailly keep this on the AOSP main trunk for vairous branches from Android 10.
ln -s $HOME/avd/car/tools $ANDROID_BUILD_TOP/device/generic/car/tools
This builds AOSP car x86_64 userdebug AVD.
. device/generic/car/tools/mk_car_avd.sh
If you plan to share the AVD with others or run on other host via Android Emulator directly, you can pack necessary image files to $HOME/Downloads/x86_64
device/generic/car/tools/test_pack_avd_img.sh
To create a clean local AVD config and run with the latest Android Emulator engine from the SDK.
device/generic/car/tools/test_run_local_avd.sh
To run the existing AVD config.
device/generic/car/tools/run_local_avd.sh
run_local_avd.sh allows you to setup and run multiple AVDs. You can crease a script for each of them. e.g.
AVD_IMAGE_DIR=$HOME/avd/aosp_car_x86_64/x86_64 \ WORKDIR=$HOME/avd/aosp_car_x86_64 \ ABI="x86_64" \ $SCRIPT_DIR/tools/run_local_avd.sh
The default AVD config.ini are created as the following default settings at the 1st run. You can also change them at the 1st run, e.g.
ANDROID_SDK_ROOT="/Users/$USER/Library/Android/sdk" \ WORKDIR="$HOME/avd/aosp_car_x86_64" \ AVD_IMAGE_DIR="$HOME/avd/aosp_car_x86_64/x86_64" \ ABI="x86_64" \ DISPLAY_DENSITY=213 \ DISPLAY_WIDTH=1920 \ DISPLAY_HEIGHT=1080 \ RAM_MB=3584 \ ./run_local_avd.sh
The AVD can also be changed by editing the AVD config.ini directily, e.g. at:
$WORKDIR/.android/avd/my_car_avd_x86_64.avd/config.ini
You can append Android Emulator Command-line startup options as needed. E.g.