diff options
author | Bill Yi <byi@google.com> | 2018-02-13 09:53:25 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-02-13 09:53:25 +0000 |
commit | daf5fd599d02bed1442f488a879471837770cd9b (patch) | |
tree | cce4dad28275611df148630acb20b310d0816760 | |
parent | 59f90baa4f5ad3e3b3eeb4dd558e839b057a048f (diff) | |
parent | dddd865ef74286436515bfe34ee4e5a5d1583643 (diff) | |
download | device_common-daf5fd599d02bed1442f488a879471837770cd9b.tar.gz device_common-daf5fd599d02bed1442f488a879471837770cd9b.tar.bz2 device_common-daf5fd599d02bed1442f488a879471837770cd9b.zip |
Merge "Sanity check to make sure apk or jar files are not stripped" am: a62f435fea am: d79c788169pie-dev
am: dddd865ef7
Change-Id: I62a4e24a86e4aca9563fdcb2abf5e1b847b704e5
-rwxr-xr-x | generate-packages.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/generate-packages.sh b/generate-packages.sh index 5935bca..5b18aa6 100755 --- a/generate-packages.sh +++ b/generate-packages.sh @@ -129,6 +129,16 @@ do sed -i "s/$ONE_FILE_BASE/$ATMEL_FILE/" moto/staging/device-partial.mk fi + # Sanity check to make sure apk or jar files are not stripped + if [[ ${ONE_FILE_BASE} == *.apk ]] || [[ ${ONE_FILE_BASE} == *.jar ]] + then + zipinfo ${FILEDIR_NEW}/${ONE_FILE_BASE} | grep -q classes.dex > /dev/null + if [[ $? != "0" ]] + then + echo "Error ${ONE_FILE} is stripped" + fi + fi + done echo \ \ Setting up $COMPANY-specific makefiles cp -R $COMPANY/staging/* $MAKEFILEDIR || echo \ \ \ \ Error copying makefiles |