Use newer velvet ONLY for tangorpro

* Somehow this newer versionis 130mb bigger - and wrecks basically
  all current devices to the point that gapps couldn't fit.
* [javelinanddart]: Script it up.

Co-authored-by: javelinanddart@gmail.com
This commit is contained in:
Nolen Johnson
2023-09-19 00:19:10 -04:00
parent 5571234421
commit e0583070f1
7 changed files with 38 additions and 1 deletions

View File

@@ -124,6 +124,16 @@ cd "$TMP"
unzip -o "$ZIP"
rm -rf META-INF
# Detect tangorpro
DEVICE=$(getprop ro.build.product)
if [ "$DEVICE" == "tangorpro" ]; then
ui_print "Detected tangorpro device. Deleting normal Velvet app"
rm -Rf $TMP/product/priv-app/Velvet
else
rm -Rf $TMP/product/priv-app/VelvetTitan
fi
# Check for arch. We need to do this before extracting our toybox, since that might be
# compiled for a different architecture. Just hope that all environments have at least
# a proper `grep` and `uname`.