SCRCPY Test
On Windows, you are advised to use the SCRCPY software for debugging and accessing Kbox containers in graphics mode. The SCRCPY version must be 2.4 (recommended) or later. Obtain SCRCPY from the official website and install it.
To connect to a started Kbox instance using the Android Debug Bridge (ADB) on Windows, perform the following steps:
- Obtain and install the SCRCPY projection software.
- Open the Windows command prompt and go to the SCRCPY installation path.
- Connect to the cloud phone using ADB.
adb connect $ip:$port
Replace $ip and $port with the actual IP address and port number of the container.
The connection is successful if information similar to the following is displayed.
connected to xx.xx.xx.xx:xxxx
- Query the devices that are successfully connected.
adb devices
Example command output:
List of devices attached xx.xx.xx.xx:xxxx device xx.xx.xx.xx:xxxx device ...
- Invoke scrcpy.exe to start screen projection.
scrcpy.exe -s $ip:$port
- Drag the APK to be tested to the page and wait for the installation.
- After the APK is successfully installed, run the APK to start the test.
Parent topic: Software Deployment