From cbc9b9011589f1e4093dfdc2ca046fed34682962 Mon Sep 17 00:00:00 2001 From: Elektroschmock Date: Tue, 4 Oct 2016 21:11:43 +0200 Subject: [PATCH] extract_utils: Add option to define the certificate for jars Change-Id: I3fb4ff29b2ce898989f5599b47f47ee7fcfc5e92 --- build/tools/extract_utils.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/tools/extract_utils.sh b/build/tools/extract_utils.sh index ce81cd6c..6f2ff158 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