Skip to content

Commit

Permalink
Revert "download_gki: Check if the target build is a release build"
Browse files Browse the repository at this point in the history
This reverts commit 46a047a.
There are circumstances in which we may not want to always take a
release build, so we should revert this.

Bug: 194513402
Change-Id: I95f3328fff31171c6fa2478acba0a2a9774fe13e
Signed-off-by: J. Avila <[email protected]>
  • Loading branch information
J. Avila committed Jul 28, 2021
1 parent 18fa4a2 commit feea66e
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions download_gki.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,6 @@ mkdir -p ${GKI_PREBUILTS_DIR}
TEMP_DIR=$(mktemp -d)

cd ${TEMP_DIR}
echo "Checking build manifest.xml of ${GKI_BUILD}..."
/google/data/ro/projects/android/fetch_artifact \
--bid ${GKI_BUILD} \
--target gsi_arm64-userdebug "manifest_${GKI_BUILD}.xml"
exit_and_clean_if_error $? "Unable to download manifest_${GKI_BUILD}.xml"

if ! cat manifest_${GKI_BUILD}.xml | \
grep -q "default.*revision=\"sc-gsi-release\"" ; then
exit_and_clean_if_error 1 "${GKI_BUILD} is not an sc-gsi-release build"
else
echo "${GKI_BUILD} is a release build; continuing."
fi

echo "Downloading GKI binaries from build ab/${GKI_BUILD} via fetch_artifact..."
if grep -q "boot.*\.img" <<< $(cat ${FILES_LIST}); then
echo "Downloading -user variant boot.img..."
Expand Down

0 comments on commit feea66e

Please sign in to comment.