From 56fbdef3ee57a8857a7de8443fc2d111e3e24b4c Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Fri, 19 Aug 2022 21:49:56 +0200 Subject: [PATCH] extract_utils: Sync adb pull paths with local extract Fixes extracting the following example line from device: * system/framework/WfdCommon.jar Change-Id: I690a871026b89ca591943a3bba3c09310ae821dc --- extract_utils.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extract_utils.sh b/extract_utils.sh index cc80d22..aed974d 100644 --- a/extract_utils.sh +++ b/extract_utils.sh @@ -1112,7 +1112,9 @@ function get_file() { if [ "$SRC" = "adb" ]; then # try to pull - adb pull "$1" "$2" >/dev/null 2>&1 && return 0 + adb pull "$1" "$2" >/dev/null 2>&1 && return 0 + adb pull "${1#/system}" "$2" >/dev/null 2>&1 && return 0 + adb pull "system/$1" "$2" >/dev/null 2>&1 && return 0 return 1 else