diff --git a/scripts/build.sh b/scripts/build.sh
index 472e983..1ed31a8 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with MagiskOnWSALocal. If not, see .
#
-# Copyright (C) 2022 LSPosed Contributors
+# Copyright (C) 2023 LSPosed Contributors
#
if [ ! "$BASH_VERSION" ]; then
@@ -356,7 +356,7 @@ if [ "$CUSTOM_MAGISK" ]; then
fi
fi
fi
-ANDROID_API=32
+ANDROID_API=33
update_gapps_zip_name() {
if [ "$GAPPS_BRAND" = "OpenGApps" ]; then
ANDROID_API=30
@@ -377,8 +377,8 @@ if [ -z "${OFFLINE+x}" ]; then
else
DOWN_WSA_MAIN_VERSION=2211
fi
- if [[ "$DOWN_WSA_MAIN_VERSION" -ge 2211 ]]; then
- ANDROID_API=33
+ if [[ "$DOWN_WSA_MAIN_VERSION" -lt 2211 ]]; then
+ ANDROID_API=32
update_gapps_zip_name
fi
if [ -z "${CUSTOM_MAGISK+x}" ]; then
@@ -393,7 +393,12 @@ if [ -z "${OFFLINE+x}" ]; then
echo "We have encountered an error while downloading files."
exit 1
fi
-else
+else # Offline mode
+ # TODO: Removed after Android 13 was released to the retail channel
+ if [ "$RELEASE_TYPE" = "retail" ]; then
+ ANDROID_API=32
+ update_gapps_zip_name
+ fi
declare -A FILES_CHECK_LIST=([WSA_ZIP_PATH]="$WSA_ZIP_PATH" [xaml_PATH]="$xaml_PATH" [vclibs_PATH]="$vclibs_PATH" [MAGISK_PATH]="$MAGISK_PATH")
for i in "${FILES_CHECK_LIST[@]}"; do
if [ ! -f "$i" ]; then
diff --git a/scripts/extractMagisk.py b/scripts/extractMagisk.py
index e35e8d8..4c2a30e 100644
--- a/scripts/extractMagisk.py
+++ b/scripts/extractMagisk.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with MagiskOnWSALocal. If not, see .
#
-# Copyright (C) 2022 LSPosed Contributors
+# Copyright (C) 2023 LSPosed Contributors
#
import sys
diff --git a/scripts/extractWSA.py b/scripts/extractWSA.py
index a6ad527..0c3e6d6 100644
--- a/scripts/extractWSA.py
+++ b/scripts/extractWSA.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with MagiskOnWSALocal. If not, see .
#
-# Copyright (C) 2022 LSPosed Contributors
+# Copyright (C) 2023 LSPosed Contributors
#
import sys
diff --git a/scripts/fixGappsProp.py b/scripts/fixGappsProp.py
index 737f4aa..300b7e2 100644
--- a/scripts/fixGappsProp.py
+++ b/scripts/fixGappsProp.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with MagiskOnWSALocal. If not, see .
#
-# Copyright (C) 2022 LSPosed Contributors
+# Copyright (C) 2023 LSPosed Contributors
#
from __future__ import annotations
diff --git a/scripts/generateGappsLink.py b/scripts/generateGappsLink.py
index 78c0af2..75e7e50 100644
--- a/scripts/generateGappsLink.py
+++ b/scripts/generateGappsLink.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with MagiskOnWSALocal. If not, see .
#
-# Copyright (C) 2022 LSPosed Contributors
+# Copyright (C) 2023 LSPosed Contributors
#
import sys
diff --git a/scripts/generateMagiskLink.py b/scripts/generateMagiskLink.py
index 4bb15e3..da41be5 100644
--- a/scripts/generateMagiskLink.py
+++ b/scripts/generateMagiskLink.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with MagiskOnWSALocal. If not, see .
#
-# Copyright (C) 2022 LSPosed Contributors
+# Copyright (C) 2023 LSPosed Contributors
#
import sys
diff --git a/scripts/generateWSALinks.py b/scripts/generateWSALinks.py
index 3aa8a4f..2e28451 100644
--- a/scripts/generateWSALinks.py
+++ b/scripts/generateWSALinks.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with MagiskOnWSALocal. If not, see .
#
-# Copyright (C) 2022 LSPosed Contributors
+# Copyright (C) 2023 LSPosed Contributors
#
import html
diff --git a/scripts/install_deps.sh b/scripts/install_deps.sh
index 62e88ad..852655f 100755
--- a/scripts/install_deps.sh
+++ b/scripts/install_deps.sh
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with MagiskOnWSALocal. If not, see .
#
-# Copyright (C) 2022 LSPosed Contributors
+# Copyright (C) 2023 LSPosed Contributors
#
if [ ! "$BASH_VERSION" ]; then