Confirmed users
1,759
edits
Line 241: | Line 241: | ||
The ADB device manager uses the adb command from the Android SDK to communicate with the remote device. To use the ADB device manager: | The ADB device manager uses the adb command from the Android SDK to communicate with the remote device. To use the ADB device manager: | ||
* ensure the adb command is in your shell's PATH | * ensure the adb command is in your shell's PATH | ||
* set environment variable DM_TRANS=adb | * if running tests with make, set environment variable DM_TRANS=adb | ||
mach commands use adb by default. | |||
The SUT device manager uses TCP to communicate with a remote agent, which must be installed on the device. To use the SUT device manager: | The SUT device manager uses TCP to communicate with a remote agent, which must be installed on the device. To use the SUT device manager: | ||
Line 248: | Line 248: | ||
* ensure the SUT agent is installed and started on the remote device | * ensure the SUT agent is installed and started on the remote device | ||
** the SUT agent APK is built alongside Fennec; just install <objdir-droid>/build/mobile/sutagent/android/sutAgentAndroid.apk | ** the SUT agent APK is built alongside Fennec; just install <objdir-droid>/build/mobile/sutagent/android/sutAgentAndroid.apk | ||
** The agent should be configured to start automatically with your phone when it boots. To start it immediately from an adb shell | ** The agent should be configured to start automatically with your phone when it boots. To start it immediately from an adb shell execute: `am start -n com.mozilla.SUTAgentAndroid/.SUTAgentAndroid -a android.intent.action.MAIN` | ||
* set environment variable DM_TRANS=sut | * if running tests with make, set environment variable DM_TRANS=sut and set TEST_DEVICE=<ip address of device -- displayed by SUT agent> | ||
== Host Builds (MOZ_HOST_BIN) == | == Host Builds (MOZ_HOST_BIN) == |