diff --git a/common/addon/Volume-Key-Selector/install.sh b/common/addon/Volume-Key-Selector/install.sh index 0f060b2..2037e97 100755 --- a/common/addon/Volume-Key-Selector/install.sh +++ b/common/addon/Volume-Key-Selector/install.sh @@ -31,7 +31,7 @@ chooseport() { local count=0 while true; do timeout $delay /system/bin/getevent -lqc 1 2>&1 > $TMPDIR/events & - sleep 0.5; count=$((count + 1)) + sleep 0.25; count=$((count + 1)) if (`grep -q 'KEY_VOLUMEUP *DOWN' $TMPDIR/events`); then return 0 elif (`grep -q 'KEY_VOLUMEDOWN *DOWN' $TMPDIR/events`); then @@ -41,7 +41,7 @@ chooseport() { done if $error; then # abort "Volume key not detected!" - echo "Volume key not detected. Trying keycheck method" + echo "Volume key not detected. Trying legacy method" export chooseport=chooseport_legacy VKSEL=chooseport_legacy chooseport_legacy $delay return $? diff --git a/common/install.sh b/common/install.sh index 0cfa1db..aa22d61 100644 --- a/common/install.sh +++ b/common/install.sh @@ -48,18 +48,18 @@ vol_sel() { sleep 2 ui_print "-> Do you wnat to install only webview?" unset INSTALL - if chooseport 5; then + if chooseport; then INSTALL=0 fi if [[ -z $INSTALL ]]; then ui_print "-> How about only browser?" - if chooseport 5; then + if chooseport; then INSTALL=1 fi fi if [[ -z $INSTALL ]]; then ui_print "-> How about both browser and webview?" - if chooseport 5; then + if chooseport; then INSTALL=2 fi fi @@ -71,18 +71,18 @@ vol_sel() { unset WEBVIEW ui_print "-> Please choose your webview." ui_print " 1. Bromite" - if chooseport 5; then + if chooseport; then WEBVIEW=0 fi if [[ -z $WEBVIEW ]]; then ui_print " 2. Chromium" - if chooseport 5; then + if chooseport; then WEBVIEW=1 fi fi if [[ -z $WEBVIEW ]]; then ui_print " 3. Ungoogled Chromium" - if chooseport 5; then + if chooseport; then WEBVIEW=2 fi fi @@ -95,24 +95,24 @@ vol_sel() { unset BROWSER ui_print "-> Please choose your browser." ui_print " 1. Bromite" - if chooseport 5; then + if chooseport; then WEBVIEW=0 fi if [[ -z $BROWSER ]]; then ui_print " 2. Chromium" - if chooseport 5; then + if chooseport; then BROWSER=1 fi fi if [[ -z $BROWSER ]]; then ui_print " 3. Ungoogled Chromium" - if chooseport 5; then + if chooseport; then BROWSER=2 fi fi if [[ -z $BROWSER ]]; then ui_print " 4. Ungoogled Chromium (extensions support version)?" - if chooseport 5; then + if chooseport; then BROWSER=3 fi fi diff --git a/module.prop b/module.prop index 08d339e..ad2a364 100644 --- a/module.prop +++ b/module.prop @@ -1,6 +1,6 @@ id=bromitewebview name=Webview Manager -version=9.1.1 -versionCode=4059 +version=9.1.3 +versionCode=4061 author=Androidacy description=Change System WebView and default browser systemless-ly, on any ROM. You can block ads and fingerprinting, increase privacy, and more. Website: www.androidacy.com.