Adding Android Devices to RobusTest
Before connecting an Android device to a RobusTest node for the first time, you need to configure the device settings as described below.
Device Preparation
Perform the following steps on the Android device:
-
Enable Developer Mode
- Go to Settings → About Phone
- Tap Build Number 7 times to enable Developer Options
-
In Developer Options, configure the following:
- Stay Awake — Turn ON
- USB Debugging — Turn ON
- Allow Mock Locations — Turn ON
- Verify Apps over USB — Turn OFF
-
USB Connection — Set the USB connection mode to act as a media device (MTP)
-
Location — Set location source to GPS only (may appear as "Device only" on some devices)
-
Lock Screen — Remove any lock screen or PIN
-
Unknown Sources — In Security settings, allow installation from unknown sources
-
Screen Rotation — Disable auto-rotation
-
Screen Timeout — Set to Never (or the maximum available duration)
Connecting the Device
-
Connect the device to the RobusTest node server using a good quality USB cable. A high-quality cable ensures reliable data transfer and device charging.
-
When prompted on the device screen with "Allow USB Debugging?", check Always allow from this computer and tap OK.
-
The system will take up to 2 minutes to detect and register the device. Once complete, the device will appear in your device list and be available for manual and automation testing.
Device added successfully! Your Android device is now ready for testing in RobusTest.
Device-Specific Steps
Xiaomi / Mi Devices
Security App:
- Open the Security app
- Tap the Permissions icon
- Open Settings (top right)
- Ensure Install via USB is turned OFF
For newer Xiaomi models:
- Open the Security app
- Open Settings (top right) → Security Scan
- Disable Scan before installing
- Disable Auto-updates
- Disable System Updates
Developer Settings:
- Go to Settings → Additional Settings → Developer Options
- Set the following:
- Developer Options — ON
- USB Debugging — ON
- Install via USB — ON
- USB Debugging (Security Settings) — ON
- Verify Apps over USB — OFF
- MIUI Optimization — OFF
Privacy:
- Go to Settings → Additional Settings → Privacy
- Enable Unknown Sources
Note: Older Mi devices may have only some of the above options, or they may be named differently. Enable the relevant option where available.
RealMe Devices
In Developer Options, enable Disable Permission Monitoring.
Vivo Devices
- Go to Settings → Battery → High Background Power Consumption
- Add
io.appium.uiautomator2.serverto the Allow list
Known Issues
Samsung devices — "Attention: The connected device is unable to access data"
This is a known issue on some Samsung models. Try one or more of the following:
- Disconnect and reconnect the USB cable.
- Install Android File Transfer or Samsung Smart Switch on the Mac running the node server.
- Reboot both the device and the node server.
- Update the device's Android OS.
Note: These steps may resolve the issue but do not guarantee the pop-up will not reappear.
Older Android versions — Devices running older Android versions may respond more slowly during test sessions.
