diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-02-13 09:13:40 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-02-13 09:13:40 +0000 |
commit | a62f435feab2011fe3c842bd6003ad727b45f836 (patch) | |
tree | 3281d001217a6c4d8d39852e6aedbcf79c438fe7 | |
parent | 0010553abe6b857b3411012cc8e2b09fad9b4380 (diff) | |
parent | 3b617ade976636f2214e2b2c71e370a02405ed09 (diff) | |
download | device_common-o-mr1-iot-preview-7.tar.gz device_common-o-mr1-iot-preview-7.tar.bz2 device_common-o-mr1-iot-preview-7.zip |
Merge "Sanity check to make sure apk or jar files are not stripped"android-wear-p-preview-2android-p-preview-1android-o-mr1-iot-release-1.0.0android-o-mr1-iot-preview-8android-o-mr1-iot-preview-7android-n-iot-release-lg-thinq-wk7o-mr1-iot-preview-8o-mr1-iot-preview-7
-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 |