yonutix
yonutix

Reputation: 2449

Android dumpsys activity output format

After this command

adb shell dumpsys activity p | grep <package>

I get this output:

*APP* UID 10060 ProcessRecord{41941528 23873:com.example.testservicestate/u0a60}
dir=/data/app/com.example.testservicestate-1.apk publicDir=/data/app/com.example.testservicestate-1.apk data=/data/data/com.example.testservicestate
packageList={com.example.testservicestate}
  - ActivityRecord{42073a50 u0 com.example.testservicestate/.MainActivity t211}
Proc # 0: fore  F/A/T  trm: 0 23873:com.example.testservicestate/u0a60 (top-activity)
PID #23873: ProcessRecord{41941528 23873:com.example.testservicestate/u0a60}

Which is the meaning of those infos or where can I find the format for this command. Especially Iḿ interested in those letters F/A/T . Thanks!

Upvotes: 2

Views: 3734

Answers (1)

Alex P.
Alex P.

Reputation: 31676

As usual you can find all the info in the Android source code.

In this case F/A/T stands for the activity in question being a foreground activity (A) and its process being in PROCESS_STATE_TOP state (T) and belonging to the THREAD_GROUP_DEFAULT scheduling group (F)

Upvotes: 2

Related Questions