summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuK1337 <priv.luk@gmail.com>2022-08-19 21:49:56 +0200
committerLuK1337 <priv.luk@gmail.com>2022-10-15 22:58:51 +0200
commit56fbdef3ee57a8857a7de8443fc2d111e3e24b4c (patch)
tree463691f4d0b14287c376a9024951e09bd5c47687
parent3d1e865abeb97da96e652109e7d32b460911f34a (diff)
extract_utils: Sync adb pull paths with local extract
Fixes extracting the following example line from device: * system/framework/WfdCommon.jar Change-Id: I690a871026b89ca591943a3bba3c09310ae821dc
-rw-r--r--extract_utils.sh4
1 files changed, 3 insertions, 1 deletions
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