-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_connection.bat
More file actions
54 lines (45 loc) · 1.15 KB
/
test_connection.bat
File metadata and controls
54 lines (45 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
@echo off
chcp 65001 >nul
echo ================================================
echo Bluestack ADB Connection Test
echo ================================================
echo.
REM ADB Path
set ADB_PATH=C:\Users\hawks\Downloads\platform-tools-latest-windows\platform-tools\adb.exe
if not exist "%ADB_PATH%" (
REM Try system PATH
where adb >nul 2>&1
if %errorlevel% neq 0 (
echo [ERROR] ADB not found.
echo.
echo ADB Path: %ADB_PATH%
echo.
echo Please install ADB or update the path in this script.
echo.
pause
exit /b 1
)
set ADB_PATH=adb
)
echo ADB Path: %ADB_PATH%
echo.
echo ADB Version:
"%ADB_PATH%" version
echo.
echo Connected Devices:
"%ADB_PATH%" devices
echo.
echo Attempting to connect to Bluestack...
"%ADB_PATH%" connect 127.0.0.1:5555
echo.
echo Connection Status:
"%ADB_PATH%" devices
echo.
echo ================================================
echo If connection fails:
echo 1. Make sure Bluestack is running
echo 2. Enable Android Debug Bridge in Bluestack settings
echo 3. Restart Bluestack if needed
echo ================================================
echo.
pause