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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user