ServiceManager: support debug dump w/ PIDs

To enable binder service-name based dumps of services when the same
interface might be registered from multiple different processes.

The getDebugPid command can't be sent instead to specific instances,
since if they are hung, the PID couldn't be retrieved.

For partiy w/ HIDL, this uses the 'list' selinux permission to control
reading debug dumps.

Bug: 175322136
Test: using this info to dump AIDL HALs in ANR
Change-Id: I4bc7c2df5faa6be1cdcc69b2a7fc882293f1d249
5 files changed