extract_utils: Sync adb pull paths with local extract

Fixes extracting the following example line from device:
* system/framework/WfdCommon.jar

Change-Id: I690a871026b89ca591943a3bba3c09310ae821dc
This commit is contained in:
LuK1337
2022-08-19 21:49:56 +02:00
parent 3d1e865abe
commit 56fbdef3ee

View File

@@ -1112,7 +1112,9 @@ function get_file() {
if [ "$SRC" = "adb" ]; then if [ "$SRC" = "adb" ]; then
# try to pull # 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 return 1
else else