Android - Running components of an application

The closest alternative to find the active components in a process.

                adb shell dumpsys activity p package_name

This is not specific to the process but at the level of a package. In case of Google Play services, components of the same package is hosted in multiple process.

  *APP* UID 10007 ProcessRecord{b20c2d08 518:com.google.process.location/u0a7}
    user #0 uid=10007
    class=com.google.android.gms.common.app.GmsApplication
    manageSpaceActivityName=com.google.android.gms.app.settings.ManageSpaceActivity
    dir=/system/priv-app/PrebuiltGmsCore.apk publicDir=/system/priv-app/PrebuiltGmsCore.apk
data=/data/data/com.google.android.gms
    packageList={com.google.android.gms}
    compat={320dpi}
    thread=android.app.ApplicationThreadProxy@b202e408
    pid=518 starting=false
    ...
    ...
    ...
  *APP* UID 10007 ProcessRecord{b1fd7690 714:com.google.android.gms/u0a7}
    user #0 uid=10007
    class=com.google.android.gms.common.app.GmsApplication
    manageSpaceActivityName=com.google.android.gms.app.settings.ManageSpaceActivity
    dir=/system/priv-app/PrebuiltGmsCore.apk publicDir=/system/priv-app/PrebuiltGmsCore.apk data=/data/data/com.google.android.gms
    packageList={com.google.android.gms}
    compat={320dpi}
    thread=android.app.ApplicationThreadProxy@b1ffb768

    pid=714 starting=false

No comments: