Skip to content

Commit

Permalink
Fix SDK blacklist
Browse files Browse the repository at this point in the history
We were trying to call initClient() in our API SDK before we verified cURL would run.

This resulted in it crash looping for some nougat and earlier users.

Signed-off-by: androidacybot <admin@androidacy.com>
Signed-off-by: androidacybot <45006100+androidacybot@users.noreply.github.com>
  • Loading branch information
androidacy-user committed Aug 19, 2021
1 parent 2ab6f0e commit 97bd1be
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions common/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,9 @@ prop_process() {
}

# Check for min/max api version
[ -z $MINAPI ] || { [ $API -lt $MINAPI ] && abort "! Your system API of $API is less than the minimum api of $MINAPI! Aborting!"; }
[ -z $MAXAPI ] || { [ $API -gt $MAXAPI ] && abort "! Your system API of $API is greater than the maximum api of $MAXAPI! Aborting!"; }
if $API -lt 26; then
abort "! Your system API of $API is less than the minimum api of 26 (Oreo)! Aborting!"
fi

# Set variables
[ $API -lt 26 ] && DYNLIB=false
Expand Down Expand Up @@ -311,13 +312,13 @@ setup_logger
ui_print "ⓘ PLEASE NOTE: This module requires interent access and will abort if you don't have any"
chmod 755 $MODPATH/common/tools/apiClient.sh
. $MODPATH/common/tools/apiClient.sh
initClient 'wvm' '10.0.1-publicbeta1'
alias aapt='$MODPATH/common/tools/$ARCH/aapt'
alias curl='$MODPATH/common/tools/$ARCH/curl'
alias sign='$MODPATH/common/tools/zipsigner'
chmod 755 "$MODPATH/common/tools/$ARCH/aapt"
chmod 755 "$MODPATH/common/tools/$ARCH/curl"
chmod 755 "$MODPATH/common/tools/zipsigner"
initClient 'wvm' '10.0.3'

# Run addons
if [ "$(ls -A $MODPATH/common/addon/*/install.sh 2>/dev/null)" ]; then
Expand Down
2 changes: 1 addition & 1 deletion common/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,6 @@ sleep 0.15
ui_print "☑ Website, how to get support and blog is at https://www.androidacy.com"
sleep 0.15
ui_print "☑ Install apparently succeeded, please reboot ASAP"
am start -a android.intent.action.VIEW -d "https://www.androidacy.com/install-done/?f=wvm_module&r=wmi&v=10.0.2" &>/dev/null
am start -a android.intent.action.VIEW -d "https://www.androidacy.com/install-done/?f=wvm_module&r=wmi&v=10.0.3" &>/dev/null
sleep 0.15
ui_print " "
4 changes: 2 additions & 2 deletions module.prop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
id=bromitewebview
name=Webview Manager
version=10.0.2
versionCode=5005
version=10.0.3
versionCode=5006
author=Androidacy
description=Change System WebView and default browser systemless-ly. Block ads and fingerprinting, increase privacy, and more. Website and how to get support: https://www.androidacy.com/?utm_source=mrepo

0 comments on commit 97bd1be

Please sign in to comment.