mirror of
https://gitlab.com/newbit/rootAVD.git
synced 2026-07-03 13:15:10 +02:00
Added another way of checking the AVDs Internet connection
This commit is contained in:
@@ -371,6 +371,10 @@ rootAVD.bat system-images\android-25\google_apis_playstore\armeabi-v7a\ramdisk.i
|
||||
</details>
|
||||
|
||||
### Change Logs
|
||||
|
||||
#### [August 2023]
|
||||
* [rootAVD.sh] - Added another way of checking the AVDs Internet connection
|
||||
|
||||
#### [July 2023]
|
||||
* [rootAVD.bat] - Fixed file ListAllAVDs not found bug
|
||||
* [rootAVD.bat] - Fixed some errors with double spaces
|
||||
|
||||
@@ -820,6 +820,12 @@ CheckAVDIsOnline() {
|
||||
$BB timeout 3 $BB wget -q --spider --no-check-certificate http://github.com > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
AVDIsOnline=true
|
||||
else
|
||||
echo "[-] Checking AVDs Internet connection another way..."
|
||||
echo -e "GET http://google.com HTTP/1.0\n\n" | $BB timeout 3 $BB nc -v google.com 80 > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
AVDIsOnline=true
|
||||
fi
|
||||
fi
|
||||
$AVDIsOnline && echo "[!] AVD is online" || echo "[!] AVD is offline"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user