Options of the ps command in Android's builtin toolbox (aka. simplified busybox replacement)

Toolbox itself does not give away too much help about the supported commands' options. Actually it gives you more like nothing. Smile So the only way to find out what options each command supports is by looking into the source. The supplied link points to the latest version of the ps command's source. If you're interested in a specific Android version's ps command, select it in the "branch:...." combobox.

Eg. ICS supports these options:
  • -t: show threads
  • -x: show time
  • -P: show policy
  • -p: show process priorities
  • -c: show CPU #
  • <number>: filter on PID
  • <string>: filter on command name
The last two options are not cumulative, ie. ps takes the last instance of that option. Eg. if you run it with ps 1 2 3, it'll just filter on PID=3.