1#!/bin/bash 2# Find builds here: 3# https://android-build.googleplex.com/builds/branches/aosp-emu-dev/grid? 4set -e 5 6if [ $# == 1 ] 7then 8build=$1 9else 10 echo Usage: $0 build 11 exit 1 12fi 13 14prebuilt_tool="/google/data/ro/projects/android/prebuilt_drop_tool/prebuilt_drop.par" 15 16common_args=() 17common_args+=(--build_id=$build) 18common_args+=(--target=trusty_tee-trusty_x64) 19common_args+=(--dest_host='https://android-review.googlesource.com') 20common_args+=(--dest_project='platform/prebuilts/android-emulator') 21common_args+=(--dest_git_branch=main) 22common_args+=(--topic="trusty_qemu_build_$build") 23 24$prebuilt_tool "${common_args[@]}" --source_dest_file_pair="manifest_$build.xml:trusty-x86_64/manifest.xml" 25$prebuilt_tool "${common_args[@]}" --source_dest_file_pair="sdk-repo-trusty_x64-qemu-$build.zip:trusty-x86_64/qemu.zip" --transform='unzip' --use_git 26