From 8a1906ce9439378ae5f046891e10de3c6734f46c Mon Sep 17 00:00:00 2001 From: HashBang Date: Mon, 1 Aug 2016 14:36:46 -0400 Subject: [PATCH] extract_utils: Do not change app SRC if there are arguments Do not prepend app or priv-app to the src when a path is explicitly given as an argument. This fixes the SRC path in such conditions. Change-Id: I43370f17fe224df323fcfa9b0d5eae4ee2996524 --- build/tools/extract_utils.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/build/tools/extract_utils.sh b/build/tools/extract_utils.sh index fb7602b9..ce81cd6c 100644 --- a/build/tools/extract_utils.sh +++ b/build/tools/extract_utils.sh @@ -249,10 +249,12 @@ function write_packages() { printf 'LOCAL_MULTILIB := %s\n' "$EXTRA" fi elif [ "$CLASS" = "APPS" ]; then - if [ "$EXTRA" = "priv-app" ]; then - SRC="$SRC/priv-app" - else - SRC="$SRC/app" + if [ -z "$ARGS" ]; then + if [ "$EXTRA" = "priv-app" ]; then + SRC="$SRC/priv-app" + else + SRC="$SRC/app" + fi fi printf 'LOCAL_SRC_FILES := %s/%s\n' "$SRC" "$FILE" local CERT=platform