Skip to content

Instantly share code, notes, and snippets.

@sgnn7
Created October 27, 2011 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgnn7/1319987 to your computer and use it in GitHub Desktop.
Save sgnn7/1319987 to your computer and use it in GitHub Desktop.
Listing activity stack of an android app
#!/bin/bash
adb shell dumpsys activity | grep Intent | grep -v 'Intent:' | grep -v Sticky | sed -e 's/.* cmp=.*\///g' | sed -e 's/}//g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment