Configure your device farm

If you have access to a device farm for testing, ensure that you do the following:

  1. Install Arm Mobile Studio on the host machine(s) that your devices connect to, and ensure you have configured a professional edition license.
  2. Each device must be in developer mode and have USB debugging enabled.
  3. Each device must be connected to a host machine using USB.
  4. If you are testing devices running Android 9 or earlier, you must include the Arm lightweight interceptor library (LWI) in your application. Refer to Prepare your application for detailed instructions on how to do this.
  5. The testcase APKs you install must be debuggable, and ideally should be set to exit when the testcase completes. This simplifies the CI workflow, by removing the need to manually stop the application when the testcase finishes.
  6. As a one-off setup task, you will need to generate a configuration file for each device, that defines which CPU and GPU activity counters Streamline should collect data from during the capture.

Tip: If you have a large number of devices, you may find it useful to categorize them by performance tier. The latest high-end smartphones will generally perform better than mass-market mid-range or low-end devices, and so you might want to set different performance targets for each. When you export data in JSON format, you can use the targetInfo.device field to select data from specific devices. Alternatively, you could push data from each device 'tier' to a unique database index. 

Previous Next