extract-utils: Add support for extracting from /vendor/odm
Test: ./extract-files.sh --section WiFi with guacamole images
Change-Id: I6d8409f9cefb238c2498e0103f6937bd6ecfd222
diff --git a/extract_utils.sh b/extract_utils.sh
index 9fe4ccc..404cc81 100644
--- a/extract_utils.sh
+++ b/extract_utils.sh
@@ -1306,6 +1306,9 @@
cp -r "$SRC/${1#/system}" "$2" 2>/dev/null && return 0
cp -r "$SRC/system/$1" "$2" 2>/dev/null && return 0
+ # try /vendor/odm for devices without /odm partition
+ [[ "$1" == /system/odm/* ]] && cp -r "$SRC/vendor/${1#/system}" "$2" 2>/dev/null && return 0
+
return 1
fi
};