ndk-gdb: Fix debugging of private services

This patch fixes ndk-gdb so it can properly debug an application
that has private services. These will appear in the 'ps' output
as <package-name>:<service-name>, and the way the extract-pid.awk
script worked, were matched against <package-name> incorrectly.

+ Make extrac-pid.awk usable when custom ROM use a Busybox 'ps'
  instead of the standard Android toolbox version

+ Add unit test for extract-pid.awk

Change-Id: Ifb38d5bdfd5b648ff468cb3642db3bb64297707d
5 files changed