gpt4 book ai didi

Android如何找到GTALKService的PID

转载 作者:行者123 更新时间:2023-11-29 22:10:01 25 4
gpt4 key购买 nike

我正在开发一款阻止 GtalkService 的应用程序。我只想为此使用 iptables,但找不到 GtalkSerivce。我试过:

  1. pstop 列出所有进程,但没有 GtalkService
  2. 从 Google Play 安装一个应用,然后使用 logcat -v long *:V 查看日志,但我也没有找到任何东西

我只是想找到正在运行的 GTalkService 的 PID。

最佳答案

GTalkService 在名为 com.google.process.gapps 的进程中运行。如果您在模拟器上安装 Google Apps,则可以检查此项。

而且我猜想杀死它会很困难,因为系统会重新启动它。例如,这里是 DDMS 日志。我已经杀死了这个进程,系统已经重新启动了它:

03-24 19:11:27.239: D/dalvikvm(167): Calling exit(1)
03-24 19:11:27.287: D/Zygote(33): Process 167 exited cleanly (1)
03-24 19:11:27.297: I/ActivityManager(61): Process com.google.process.gapps (pid 167) has died.
03-24 19:11:27.297: W/ActivityManager(61): Scheduling restart of crashed service com.google.android.gsf/.gtalkservice.service.GTalkService in 5000ms
03-24 19:11:32.047: D/dalvikvm(262): GC_EXPLICIT freed 1060K, 57% free 2816K/6535K, external 1625K/2137K, paused 89ms
03-24 19:11:32.327: I/ActivityManager(61): Start proc com.google.process.gapps for service com.google.android.gsf/.gtalkservice.service.GTalkService: pid=419 uid=10004 gids={3003, 1015, 2001, 1007}
03-24 19:11:32.637: I/ActivityThread(419): Pub com.google.settings: com.google.android.gsf.settings.GoogleSettingsProvider
03-24 19:11:32.647: I/ActivityThread(419): Pub com.google.android.gsf.gservices: com.google.android.gsf.gservices.GservicesProvider
03-24 19:11:32.657: I/GservicesProvider(419): Gservices pushing to system: true; secure: true
03-24 19:11:32.657: I/ActivityThread(419): Pub subscribedfeeds: com.google.android.gsf.subscribedfeeds.SubscribedFeedsProvider
03-24 19:11:32.756: I/ActivityThread(419): Pub com.google.android.providers.talk: com.google.android.gsf.talk.TalkProvider
03-24 19:11:33.027: D/GTalkService(419): [RawStanzaProvidersMgr] ##### searchProvidersFromIntent
03-24 19:11:33.038: D/GTalkService(419): [RawStanzaProvidersMgr] no intent receivers found
03-24 19:11:33.117: D/GTalkService(419): ##### Network broadcast (connected=true) type=mobile, state=CONNECTED

关于Android如何找到GTALKService的PID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9854050/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com