summaryrefslogtreecommitdiffstats
path: root/build/tools
diff options
context:
space:
mode:
authorElektroschmock <elektroschmock78@googlemail.com>2016-10-04 21:11:43 +0200
committerKim Le <elektroschmock78@googlemail.com>2016-11-04 04:13:40 -0700
commitcbc9b9011589f1e4093dfdc2ca046fed34682962 (patch)
tree9d7eb6fe0475ea7247954049ea7e3166512dd492 /build/tools
parent877f0469af1a650903621dd7c0ca9a9c39c6b6f0 (diff)
downloadvendor_replicant-cbc9b9011589f1e4093dfdc2ca046fed34682962.zip
vendor_replicant-cbc9b9011589f1e4093dfdc2ca046fed34682962.tar.gz
vendor_replicant-cbc9b9011589f1e4093dfdc2ca046fed34682962.tar.bz2
extract_utils: Add option to define the certificate for jars
Change-Id: I3fb4ff29b2ce898989f5599b47f47ee7fcfc5e92
Diffstat (limited to 'build/tools')
-rw-r--r--build/tools/extract_utils.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/build/tools/extract_utils.sh b/build/tools/extract_utils.sh
index ce81cd6..6f2ff15 100644
--- a/build/tools/extract_utils.sh
+++ b/build/tools/extract_utils.sh
@@ -264,6 +264,11 @@ function write_packages() {
printf 'LOCAL_CERTIFICATE := %s\n' "$CERT"
elif [ "$CLASS" = "JAVA_LIBRARIES" ]; then
printf 'LOCAL_SRC_FILES := %s/framework/%s\n' "$SRC" "$FILE"
+ local CERT=platform
+ if [ ! -z "$ARGS" ]; then
+ CERT="$ARGS"
+ fi
+ printf 'LOCAL_CERTIFICATE := %s\n' "$CERT"
elif [ "$CLASS" = "ETC" ]; then
printf 'LOCAL_SRC_FILES := %s/etc/%s\n' "$SRC" "$FILE"
elif [ "$CLASS" = "EXECUTABLES" ]; then