For Android 11 and Above
Initially, if the device is not enrolled in AstroFarm, follow the steps below:
Step 1: Connect the Android device to the host machine using a USB cable
- ADB will start running on the host machine.
- The device will get auto-enrolled to the console.
note
This step is required only the first time the device is enrolled in the AstroFarm environment. After the device appears in the AstroFarm dashboard, disconnect the USB cable and proceed with the following steps to enable wireless connectivity.
Step 2: Enable Developer Options
- Open Settings on the Android device.
- Navigate to About Phone.
- Tap Build Number seven times until Developer Options are enabled.
Step 3: Enable Wireless Debugging
- Go to Settings → Developer Options.
- Enable Wireless Debugging.
- Select "Pair device with pairing code" to get an IP address, port, and pairing code.
- Use the following command with the code provided on your screen:
adb pair <ip_address>:<port>
If the device is connected successfully, the device serial number will appear in the list.