From 082e0ec07b71947e1594abc483f5f341f198699c 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 95a1c9f5..6e8baa3c 100644 --- a/build/tools/extract_utils.sh +++ b/build/tools/extract_utils.sh @@ -270,6 +270,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