How do I test on Android device over Wifi

Last edited on

If you want to test a native Anroid App on real hardware over Wifi there is an easy mechanism in Android to allow you to pair your device to the machine driving the test.

For this the device you run Squish on and Android device will need to be on the same network and you will need Developer rights on your device. Developer permissions are usually acquired by repeatedly tapping on the build number in the device information. After a few taps you should see a toast message from Android telling you how many you still need to perform until you are a developer on this device.

Once you have developer permissions go to the developer options located in the System settings and enable Wireless Debugging.

Enable the setting and accept the debugging on the network you are on. Once you have done that tap on the Wirless Debugging again to get to the pairing information.

Tap on the entry 'Pair device with six digit code'. This will open a new dialog and give you the six digit code you need for pairing process.

On your local machine open a terminal and navigate to the bin folder of your Squish for Android installation. The command you need is the following


The parts in capital letters need to be replaced with the information for your setup. If the pairing was successful adb will output a message that confirms this and your username plus hostname will show up in the paired devices on your Android device.

If you have the Squish for Android IDE open at the time of pairing, you will likely need to restart it for the device to be picked up.