Android Emulator: How can I get a list of services

2019-01-22 02:31发布

问题:

I have the Android Emulator running in my Ubuntu VM and just installed an apk file trough the console. The emulator and adb have many options to view what is going on on the device. But how can I get a list of services that are currently running? I'm trying to find out if a specific app installes a notify service to view (unwanted) ads. I even know the services' name.

PS.: I'm an advanced beginner - but not advanced enough. So thanks for your help.

回答1:

You can get the list with the following command :

adb shell dumpsys activity services


回答2:

If you just need a simple list without all the detail dumpsys generates, use:

adb shell service list


回答3:

Logcat might help you out as well