last_crash
Retrieve the most recent app crash with full exception and stack trace from the system DropBox, optionally filtering by package. Avoid grepping logcat when an app just crashed.
Instructions
Return the most recent app crash from the system DropBox (dumpsys dropbox — JVM/React-Native and native crashes), with the full exception header and stack in one call. Optionally filter to a package. Use this instead of grepping logcat when an app just crashed: DropBox keeps the whole fatal (header + Caused by + frames) together even after it has scrolled out of the logcat ring buffer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | Target device serial (adb -s). Optional when exactly one device is attached. | |
| package | No | Optional package name to filter to (e.g. com.example.app); omit for the most recent crash from any app. |