summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-05-11 05:02:17 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-05-11 05:02:17 +0000
commit5ff1a9d0a4e09dedb839beebbb6ee64e37adbcb4 (patch)
tree959f5c2f87c4d25cd27a1cdb2c79c9f433bdbd3b
parent2c56592b1efea2a22b0533656ccb64f96ccd603a (diff)
parent401b2ec1bf5b2d4ddd7dc96ff7fdb1138f411465 (diff)
downloadcommon-android13-mainline-media-swcodec-release.tar.gz
Change-Id: Icedc196caf83273030e3490e51f53d9c67ba6704
-rw-r--r--METADATA3
-rw-r--r--generate-factory-images-common.sh4
-rwxr-xr-xgenerate-packages.sh3
3 files changed, 7 insertions, 3 deletions
diff --git a/METADATA b/METADATA
new file mode 100644
index 0000000..d97975c
--- /dev/null
+++ b/METADATA
@@ -0,0 +1,3 @@
+third_party {
+ license_type: NOTICE
+}
diff --git a/generate-factory-images-common.sh b/generate-factory-images-common.sh
index 55fa170..95f4e35 100644
--- a/generate-factory-images-common.sh
+++ b/generate-factory-images-common.sh
@@ -101,7 +101,7 @@ cat > tmp/$PRODUCT-$VERSION/flash-all.sh << EOF
# See the License for the specific language governing permissions and
# limitations under the License.
-if ! [ \$(\$(which fastboot) --version | grep "version" | cut -c18-23 | sed 's/\.//g' ) -ge 2802 ]; then
+if ! [ \$(\$(which fastboot) --version | grep "version" | cut -c18-23 | sed 's/\.//g' ) -ge 3103 ]; then
echo "fastboot too old; please download the latest version at https://developer.android.com/studio/releases/platform-tools.html"
exit 1
fi
@@ -258,7 +258,7 @@ cat > tmp/$PRODUCT-$VERSION/flash-base.sh << EOF
# See the License for the specific language governing permissions and
# limitations under the License.
-if ! [ \$(\$(which fastboot) --version | grep "version" | cut -c18-23 | sed 's/\.//g' ) -ge 2802 ]; then
+if ! [ \$(\$(which fastboot) --version | grep "version" | cut -c18-23 | sed 's/\.//g' ) -ge 3103 ]; then
echo "fastboot too old; please download the latest version at https://developer.android.com/studio/releases/platform-tools.html"
exit 1
fi
diff --git a/generate-packages.sh b/generate-packages.sh
index adcf05c..2ec4e22 100755
--- a/generate-packages.sh
+++ b/generate-packages.sh
@@ -84,7 +84,7 @@ do
ONE_FILE_BASE=$(basename $ONE_FILE)
- # Sanity check to make sure apk or jar files are not stripped
+ # Quick 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
@@ -96,6 +96,7 @@ do
done
echo \ \ Copying $COMPANY-specific LICENSE
+ cp $COMPANY/COPYRIGHT ${MAKEFILEDIR} || echo \ \ \ \ Error copying COPYRIGHT
cp $COMPANY/LICENSE ${MAKEFILEDIR} || echo \ \ \ \ Error copying LICENSE
echo \ \ Setting up $COMPANY-specific makefiles
cp -R $COMPANY/staging/* $MAKEFILEDIR || echo \ \ \ \ Error copying makefiles