mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2024-12-24 18:31:49 +01:00
Merge pull request #37 from s1204IT/main
This commit is contained in:
commit
08e84dddd4
@ -117,24 +117,24 @@ MAGISK_VER=$(
|
|||||||
'debug' "Canary Channel Debug Build" 'off'
|
'debug' "Canary Channel Debug Build" 'off'
|
||||||
)
|
)
|
||||||
|
|
||||||
if (YesNoBox '([title]="Install Gapps" [text]="Do you want to install gapps?")'); then
|
if (YesNoBox '([title]="Install GApps" [text]="Do you want to install GApps?")'); then
|
||||||
if [ -f "$DOWNLOAD_DIR"/MindTheGapps/MindTheGapps_"$ARCH".zip ]; then
|
if [ -f "$DOWNLOAD_DIR"/MindTheGapps/MindTheGapps_"$ARCH".zip ]; then
|
||||||
GAPPS_BRAND=$(
|
GAPPS_BRAND=$(
|
||||||
Radiolist '([title]="Which gapps do you want to install?"
|
Radiolist '([title]="Which GApps do you want to install?"
|
||||||
[default]="OpenGapps")' \
|
[default]="OpenGApps")' \
|
||||||
\
|
\
|
||||||
'OpenGapps' "" 'on' \
|
'OpenGApps' "" 'on' \
|
||||||
'MindTheGapps' "" 'off'
|
'MindTheGapps' "" 'off'
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
GAPPS_BRAND="OpenGapps"
|
GAPPS_BRAND="OpenGApps"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
GAPPS_VARIANT="none"
|
GAPPS_VARIANT="none"
|
||||||
fi
|
fi
|
||||||
if [ $GAPPS_BRAND = "OpenGapps" ]; then
|
if [ $GAPPS_BRAND = "OpenGApps" ]; then
|
||||||
GAPPS_VARIANT=$(
|
GAPPS_VARIANT=$(
|
||||||
Radiolist '([title]="Variants of gapps"
|
Radiolist '([title]="Variants of GApps"
|
||||||
[default]="pico")' \
|
[default]="pico")' \
|
||||||
\
|
\
|
||||||
'super' "" 'off' \
|
'super' "" 'off' \
|
||||||
@ -151,7 +151,7 @@ else
|
|||||||
GAPPS_VARIANT=$GAPPS_BRAND
|
GAPPS_VARIANT=$GAPPS_BRAND
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if (YesNoBox '([title]="Remove Amazon AppStore" [text]="Do you want to keep amazon appStore?")'); then
|
if (YesNoBox '([title]="Remove Amazon AppStore" [text]="Do you want to keep Amazon AppStore?")'); then
|
||||||
REMOVE_AMAZON="keep"
|
REMOVE_AMAZON="keep"
|
||||||
else
|
else
|
||||||
REMOVE_AMAZON="remove"
|
REMOVE_AMAZON="remove"
|
||||||
@ -178,7 +178,7 @@ echo "Generate Download Links"
|
|||||||
python3 generateWSALinks.py "$ARCH" "$RELEASE_TYPE" "$DOWNLOAD_DIR" "$DOWNLOAD_CONF_NAME" || abort
|
python3 generateWSALinks.py "$ARCH" "$RELEASE_TYPE" "$DOWNLOAD_DIR" "$DOWNLOAD_CONF_NAME" || abort
|
||||||
python3 generateMagiskLink.py "$MAGISK_VER" "$DOWNLOAD_DIR" "$DOWNLOAD_CONF_NAME" || abort
|
python3 generateMagiskLink.py "$MAGISK_VER" "$DOWNLOAD_DIR" "$DOWNLOAD_CONF_NAME" || abort
|
||||||
if [ $GAPPS_VARIANT != 'none' ] && [ $GAPPS_VARIANT != '' ]; then
|
if [ $GAPPS_VARIANT != 'none' ] && [ $GAPPS_VARIANT != '' ]; then
|
||||||
if [ $GAPPS_BRAND = "OpenGapps" ]; then
|
if [ $GAPPS_BRAND = "OpenGApps" ]; then
|
||||||
# TODO: Keep it pico since other variants of opengapps are unable to boot successfully
|
# TODO: Keep it pico since other variants of opengapps are unable to boot successfully
|
||||||
python3 generateGappsLink.py "$ARCH" "pico" "$DOWNLOAD_DIR" "$DOWNLOAD_CONF_NAME" || abort
|
python3 generateGappsLink.py "$ARCH" "pico" "$DOWNLOAD_DIR" "$DOWNLOAD_CONF_NAME" || abort
|
||||||
# python3 generateGappsLink.py "$ARCH" "$GAPPS_VARIANT" "$DOWNLOAD_DIR" "$DOWNLOAD_CONF_NAME" || abort
|
# python3 generateGappsLink.py "$ARCH" "$GAPPS_VARIANT" "$DOWNLOAD_DIR" "$DOWNLOAD_CONF_NAME" || abort
|
||||||
@ -207,7 +207,7 @@ echo -e "done\n"
|
|||||||
if [ $GAPPS_VARIANT != 'none' ] && [ $GAPPS_VARIANT != '' ]; then
|
if [ $GAPPS_VARIANT != 'none' ] && [ $GAPPS_VARIANT != '' ]; then
|
||||||
echo "Extract GApps"
|
echo "Extract GApps"
|
||||||
mkdir -p "$WORK_DIR"/gapps || abort
|
mkdir -p "$WORK_DIR"/gapps || abort
|
||||||
if [ $GAPPS_BRAND = "OpenGapps" ]; then
|
if [ $GAPPS_BRAND = "OpenGApps" ]; then
|
||||||
unzip -p "$DOWNLOAD_DIR"/gapps.zip {Core,GApps}/'*.lz' | tar --lzip -C "$WORK_DIR"/gapps -xf - -i --strip-components=2 --exclude='setupwizardtablet-x86_64' --exclude='packageinstallergoogle-all' --exclude='speech-common' --exclude='markup-lib-arm' --exclude='markup-lib-arm64' --exclude='markup-all' --exclude='setupwizarddefault-x86_64' --exclude='pixellauncher-all' --exclude='pixellauncher-common' || abort
|
unzip -p "$DOWNLOAD_DIR"/gapps.zip {Core,GApps}/'*.lz' | tar --lzip -C "$WORK_DIR"/gapps -xf - -i --strip-components=2 --exclude='setupwizardtablet-x86_64' --exclude='packageinstallergoogle-all' --exclude='speech-common' --exclude='markup-lib-arm' --exclude='markup-lib-arm64' --exclude='markup-all' --exclude='setupwizarddefault-x86_64' --exclude='pixellauncher-all' --exclude='pixellauncher-common' || abort
|
||||||
else
|
else
|
||||||
unzip "$DOWNLOAD_DIR"/MindTheGapps/MindTheGapps_"$ARCH".zip "system/*" -x "system/addon.d/*" "system/system_ext/priv-app/SetupWizard/*" -d "$WORK_DIR"/gapps || abort
|
unzip "$DOWNLOAD_DIR"/MindTheGapps/MindTheGapps_"$ARCH".zip "system/*" -x "system/addon.d/*" "system/system_ext/priv-app/SetupWizard/*" -d "$WORK_DIR"/gapps || abort
|
||||||
@ -432,7 +432,7 @@ if [ $GAPPS_VARIANT != 'none' ] && [ $GAPPS_VARIANT != '' ]; then
|
|||||||
sudo find "$MOUNT_DIR"/system/{app,framework,priv-app} -type f -exec chcon --reference="$MOUNT_DIR"/system/framework/ext.jar {} \;
|
sudo find "$MOUNT_DIR"/system/{app,framework,priv-app} -type f -exec chcon --reference="$MOUNT_DIR"/system/framework/ext.jar {} \;
|
||||||
sudo find "$MOUNT_DIR"/product/{app,etc,overlay,priv-app,lib64,lib,framework} -type f -exec chcon --reference="$MOUNT_DIR"/product/etc/permissions/com.android.settings.intelligence.xml {} \;
|
sudo find "$MOUNT_DIR"/product/{app,etc,overlay,priv-app,lib64,lib,framework} -type f -exec chcon --reference="$MOUNT_DIR"/product/etc/permissions/com.android.settings.intelligence.xml {} \;
|
||||||
|
|
||||||
if [ $GAPPS_BRAND = "OpenGapps" ]; then
|
if [ $GAPPS_BRAND = "OpenGApps" ]; then
|
||||||
ls "$WORK_DIR"/gapps/etc/ | xargs -n 1 -I dir sudo find "$MOUNT_DIR"/system/etc/dir -type f -exec chmod 0644 {} \;
|
ls "$WORK_DIR"/gapps/etc/ | xargs -n 1 -I dir sudo find "$MOUNT_DIR"/system/etc/dir -type f -exec chmod 0644 {} \;
|
||||||
ls "$WORK_DIR"/gapps/etc/ | xargs -n 1 -I dir sudo find "$MOUNT_DIR"/system/etc/dir -type d -exec chcon --reference="$MOUNT_DIR"/system/etc/permissions {} \;
|
ls "$WORK_DIR"/gapps/etc/ | xargs -n 1 -I dir sudo find "$MOUNT_DIR"/system/etc/dir -type d -exec chcon --reference="$MOUNT_DIR"/system/etc/permissions {} \;
|
||||||
ls "$WORK_DIR"/gapps/etc/ | xargs -n 1 -I dir sudo find "$MOUNT_DIR"/system/etc/dir -type f -exec chcon --reference="$MOUNT_DIR"/system/etc/permissions {} \;
|
ls "$WORK_DIR"/gapps/etc/ | xargs -n 1 -I dir sudo find "$MOUNT_DIR"/system/etc/dir -type f -exec chcon --reference="$MOUNT_DIR"/system/etc/permissions {} \;
|
||||||
@ -587,8 +587,8 @@ fi
|
|||||||
if [[ "$GAPPS_VARIANT" = "none" || "$GAPPS_VARIANT" = "" ]]; then
|
if [[ "$GAPPS_VARIANT" = "none" || "$GAPPS_VARIANT" = "" ]]; then
|
||||||
name2="-NoGApps"
|
name2="-NoGApps"
|
||||||
else
|
else
|
||||||
if [ "$GAPPS_VARIANT" != "pico" ] && [ $GAPPS_BRAND = "OpenGapps" ]; then
|
if [ "$GAPPS_VARIANT" != "pico" ] && [ $GAPPS_BRAND = "OpenGApps" ]; then
|
||||||
echo ":warning: Since OpenGapps doesn't officially support Android 12.1 yet, lock the variant to pico!"
|
echo ":warning: Since OpenGApps doesn't officially support Android 12.1 yet, lock the variant to pico!"
|
||||||
fi
|
fi
|
||||||
name2="-GApps-${GAPPS_VARIANT}"
|
name2="-GApps-${GAPPS_VARIANT}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user