Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I find out which intent a service (not in my app) is started by?

I want to find out how Google Maps service is automatically started.

When I dump logcat of main buffer or events buffer, I can only find out which component of Google Maps is started, but no clues about "Who" (package) started it, and "How" (intent)?

Is there any debugging method that can be used to find them out?

like image 992
Oasis Feng Avatar asked Feb 24 '13 17:02

Oasis Feng


1 Answers

I managed to find "How", but still find no clue about "Who".

"How"

Run dumpsys activity services, see the intent field:

* ServiceRecord{41526f40 u0 com.google.android.apps.maps/com.google.android.location.internal.server.GoogleLocationService}

  intent={act=com.google.android.location.internal.GMM_NLP}

  packageName=com.google.android.apps.maps
like image 158
Oasis Feng Avatar answered Nov 15 '22 01:11

Oasis Feng