Bring your own phones to Gradle Managed Devices
summary
Shows how to implement a custom Gradle Managed Device using DADB and Android Gradle Plugin extension points to connect to ADB hosts, install APKs, run am instrument with -w, and parse the proto STD stream into proper XML/HTML reports. Demonstrates leasing devices from an STF device farm via REST, running 100 UI tests (about 2 minutes sequentially) and sharding them across multiple hosts to cut wall time, notes ADB proxy/auth issues patched by modifying connect.js and Credroid limits on Linux.
AI-written summary · about
chapters (13)
- 0:00Gradle managed devices intro
- 2:15Firebase Test Lab overview
- 3:17Custom managed device setup
- 9:32Running tests on devices
- 12:27ADB and test execution
- 17:24Test reports from output
- 19:33Remote devices via TCP
- 20:35Parallel tests with sharding
- 25:08Device farms and broker
- 27:58STF with Gradle integration
- 33:35ADB security issues
- 35:03Demo with Docker and STF
- 36:48Key takeaways
related talks
05mTest at scale with Gradle managed devices
41mDevice Server for an Android Farm or Running More Than 30k Tests Every Day
29mPros and Cons of Device Farms Available for Android
39mAutomated kitting for Android dedicated devices using WebADB
37mDebugging Android Devices in the Field
27mGra Fi Te: Leveraging Gradle and Firebase for Android Testing
50mADB, Break On Through To the Other Side
29mBuild-and-Learn: The adb Protocol
