如何使用android中的adb shell知道服务是否正在运行 [英] How to know whether service is running using adb shell in android
本文介绍了如何使用android中的adb shell知道服务是否正在运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道媒体播放器服务(设备启动时向media.player注册)是否正在使用adb shell。
I want to know whether media player service (registers with media.player when device boots up) is running or not using adb shell. Is it possible?
我尝试运行ps命令,但没有成功。
I tried running ps command but no success.
推荐答案
尝试命令行
adb shell服务列表
我还会获得服务名称及其包名称的列表。
I get a list of service names and their package names as well.
这篇关于如何使用android中的adb shell知道服务是否正在运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文