gms: Split blobs going over 100MB

Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
This commit is contained in:
Omkar Chandorkar 2024-02-15 23:07:01 +09:00
parent 62ab226a9f
commit 5a622d70e6
No known key found for this signature in database
3 changed files with 21 additions and 0 deletions

6
.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
proprietary/product/priv-app/Messages/Messages.apk
proprietary/product/priv-app/GmsCore/GmsCore.apk
proprietary/product/priv-app/Velvet/Velvet.apk
proprietary/product/app/TrichromeLibrary64/TrichromeLibrary64.apk
proprietary/product/app/Gmail2/Gmail2.apk
proprietary/product/app/Photos/Photos.apk

View File

@ -53,6 +53,14 @@ if [ -z "${SRC}" ]; then
SRC="adb" SRC="adb"
fi fi
function blob_fixup() {
case "${1}" in
product/priv-app/Messages/Messages.apk | product/priv-app/GmsCore/GmsCore.apk | product/priv-app/Velvet/Velvet.apk | product/app/TrichromeLibrary64/TrichromeLibrary64.apk | product/app/Gmail2/Gmail2.apk | product/app/Photos/Photos.apk )
split --bytes=49M -d "$2" "$2".part
;;
esac
}
# Initialize the helper. # Initialize the helper.
setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false "${CLEAN_VENDOR}" setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false "${CLEAN_VENDOR}"

7
vendorsetup.sh Normal file
View File

@ -0,0 +1,7 @@
# Merge GMS blobs
cat vendor/google/gms/proprietary/product/priv-app/Messages/Messages.apk.part* > vendor/google/gms/proprietary/product/priv-app/Messages/Messages.apk
cat vendor/google/gms/proprietary/product/priv-app/GmsCore/GmsCore.apk.part* > vendor/google/gms/proprietary/product/priv-app/GmsCore/GmsCore.apk
cat vendor/google/gms/proprietary/product/priv-app/Velvet/Velvet.apk.part* > vendor/google/gms/proprietary/product/priv-app/Velvet/Velvet.apk
cat vendor/google/gms/proprietary/product/app/TrichromeLibrary64/TrichromeLibrary64.apk.part* > vendor/google/gms/proprietary/product/app/TrichromeLibrary64/TrichromeLibrary64.apk
cat vendor/google/gms/proprietary/product/app/Gmail2/Gmail2.apk.part* > vendor/google/gms/proprietary/product/app/Gmail2/Gmail2.apk
cat vendor/google/gms/proprietary/product/app/Photos/Photos.apk.part* > vendor/google/gms/proprietary/product/app/Photos/Photos.apk