mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-23 12:35:33 -04:00
universal7885: Also allow extracting target device blobs only
Change-Id: Ib5157b1e182ac6faf212793871ddff28fc32063d Signed-off-by: SamarV-121 <samarvispute121@gmail.com>
This commit is contained in:
parent
573b3d2bee
commit
84a5f074c8
1 changed files with 12 additions and 5 deletions
|
|
@ -50,13 +50,17 @@ function blob_fixup {
|
||||||
CLEAN_VENDOR=true
|
CLEAN_VENDOR=true
|
||||||
|
|
||||||
ONLY_COMMON=
|
ONLY_COMMON=
|
||||||
|
ONLY_TARGET=
|
||||||
SECTION=
|
SECTION=
|
||||||
KANG=
|
KANG=
|
||||||
|
|
||||||
while [ "${#}" -gt 0 ]; do
|
while [ "${#}" -gt 0 ]; do
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
-o | --only-common )
|
--only-common )
|
||||||
ONLY_COMMON=false
|
ONLY_COMMON=true
|
||||||
|
;;
|
||||||
|
--only-target )
|
||||||
|
ONLY_TARGET=true
|
||||||
;;
|
;;
|
||||||
-n | --no-cleanup )
|
-n | --no-cleanup )
|
||||||
CLEAN_VENDOR=false
|
CLEAN_VENDOR=false
|
||||||
|
|
@ -79,11 +83,14 @@ if [ -z "${SRC}" ]; then
|
||||||
SRC="adb"
|
SRC="adb"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Initialize the helper for common device
|
||||||
|
if [ -z "${ONLY_TARGET}" ]; then
|
||||||
# Initialize the helper for common device
|
# Initialize the helper for common device
|
||||||
setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${LINEAGE_ROOT}" true "${CLEAN_VENDOR}"
|
setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${LINEAGE_ROOT}" true "${CLEAN_VENDOR}"
|
||||||
|
|
||||||
extract "${MY_DIR}/proprietary-files.txt" "${SRC}" \
|
extract "${MY_DIR}/proprietary-files.txt" "${SRC}" \
|
||||||
"${KANG}" --section "${SECTION}"
|
"${KANG}" --section "${SECTION}"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "${ONLY_COMMON}" ] && [ -s "${MY_DIR}/../${DEVICE}/proprietary-files.txt" ]; then
|
if [ -z "${ONLY_COMMON}" ] && [ -s "${MY_DIR}/../${DEVICE}/proprietary-files.txt" ]; then
|
||||||
# Reinitialize the helper for device
|
# Reinitialize the helper for device
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue