extracting-test-artifacts
CommunityPull device artefacts without permission pain.
Software Engineering#adb#android-testing#test-artifacts#permission-denied#run-as#exec-out#teststorage
Authorskydoves
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Solving “adb pull permission denied” by correctly choosing where test artefacts are written and which extraction path to use (run-as, exec-out, or TestStorage) so CI reliably receives screenshots, logs, databases, and other files.
Core Features & Use Cases
- Moves files device↔host correctly: Uses modern
adb pull/adb pushflags like compression (-z/-Z), incremental sync (--sync), and attribute preservation (-a) to speed up repeated transfers. - Fixes permission failures with the right strategy: Applies the path-permission rules (e.g.,
/data/local/tmp/,/sdcard/,/data/data/<pkg>/viarun-as, and/sdcard/Android/data/<pkg>/files/for app-owned artefacts on API 30+). - Retrieves binary artefacts safely: Uses
adb exec-outfor binary-clean stdout (includingrun-as ... catfor single files andrun-as ... tar | tar xf -for directory pulls from/data/data/<pkg>/). - Uses the modern artefact API: Routes per-test outputs through
androidx.test:servicesTestStoragewith-e useTestStorageService trueso Gradle collects artefacts intoconnected_android_test_additional_output/automatically.
Quick Start
Tell the AI: “I need to pull a failing test screenshot and a binary SQLite DB from my connected device—how should I use adb pull/push, run-as, and exec-out (or TestStorage) so the bytes are not corrupted and CI permissions don’t fail?”
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: extracting-test-artifacts Download link: https://github.com/skydoves/android-testing-skills/archive/main.zip#extracting-test-artifacts Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.