在退出应用程序后,WhatsApp MessionService始终始终丧失 -- whatsapp-messenger 领域 和 task-management 领域 和 services 领域 android 相关 的问题

WhatsApp MessageService is always killed shortly after exiting the app


1
vote

问题

中文

几天前我注意到我不再收到WhatsApp消息,直到我手动启动应用程序,这是待定消息一次交付时。

我通过监视应用程序管理器中的 abcdefghijklmncom.whatsapp.messaging.MessageService 来开始调查。

这就是它首先看起来像什么,在我退出whatsapp之后:

在此处输入图像描述

这是几分钟后看起来像的:

输入图像描述

看起来 MessageService quit,或者它被终止。要验证此操作,我使用adb检查。我最初可以看到服务:

  $ adb shell dumpsys activity services | grep wh   * ServiceRecord{43deec28 u0 com.whatsapp/.messaging.MessageService}     intent={act=com.whatsapp.messaging.MessageService.START cmp=com.whatsapp/.messaging.MessageService}     packageName=com.whatsapp     processName=com.whatsapp     baseDir=/data/app/com.whatsapp-1.apk     dataDir=/data/data/com.whatsapp     app=ProcessRecord{42d19f90 10037:com.whatsapp/u0a10187}   

但随后此服务消失,即使主要过程仍在运行:

  $ adb shell ps | grep wh u0_a187   10037 215   988084 78996 ffffffff 00000000 S com.whatsapp   

服务不会同时终止。在退出Whatsapp后,我已经看到它早6分钟杀死,11分钟。但在绝大多数情况下,它在第8分钟终止了一段时间。

我已经仔细检查了在服务终止时使用以下logcat查询期间仔细检查 logcat ,我认为只有我不关心的东西:

  adb logcat -v time LightSensor:s LightsService:s  SensorService:s SensorManager:s STATUSBAR-BatteryController:s BatteryService:s HeadsetStateMachine:s android.widget.GridLayout:s MP-Decision:s SignalStrength:s McClient:s McDaemon:s QcrilMsgTunnelSocket:s | grep -v ss_tz_mobicore | grep -v ss_daemon   

我无法在日志中看到任何东西会暗示服务发生的事情。它戒了吗?有点杀了吗?我怎样才能发现?

我认为也许服务已被终止B / C在RAM上低于OS,但这似乎不是那么。这是终止时的RAM:

  $ adb shell free -m              total         used         free       shared      buffers Mem:          1821         1587          234            0           75 -/+ buffers:               1511          310 Swap:          399          134          265   

在处理此问题时,我使用Titanium Backup冻结可能干扰WhatsApp的正常操作的所有应用程序,因此这些是我冻结的应用程序:

  • 绿化
  • 放大
  • xprivacy

我也关闭了"每个应用黑客攻击" ,这是一个Xposed模块。

如何了解如何了解为什么MessionService被终止?

编辑1 :有可能是否有可能被终止终止,并且在有新消息时依赖于GCM依赖于GCM?

英文原文

A couple of days ago I noticed that I no longer receive WhatsApp messages until I manually start the app, which is when the pending messages get delivered all at once.

I started my investigation by monitoring the com.whatsapp.messaging.MessageService in the Application Manager.

Here's what it looks like at first, after I exit WhatsApp:

enter image description here

And here's what it looks like a few minutes later:

enter image description here

It looks like the MessageService either quit, or it was terminated. To verify this, I checked with adb. I can see the service at first:

$ adb shell dumpsys activity services | grep wh   * ServiceRecord{43deec28 u0 com.whatsapp/.messaging.MessageService}     intent={act=com.whatsapp.messaging.MessageService.START cmp=com.whatsapp/.messaging.MessageService}     packageName=com.whatsapp     processName=com.whatsapp     baseDir=/data/app/com.whatsapp-1.apk     dataDir=/data/data/com.whatsapp     app=ProcessRecord{42d19f90 10037:com.whatsapp/u0a10187} 

But then this service disappears, even though the main process is still running:

$ adb shell ps | grep wh u0_a187   10037 215   988084 78996 ffffffff 00000000 S com.whatsapp 

The service does not get terminated at the same time. I have seen it killed as early as 6 minutes after exiting WhatsApp, and as late at 11 minutes. But in the vast majority of cases, it is terminated some time on the 8th minute.

I have carefully examined the logcat during the moment of service termination with the following logcat query, which I believe silences only the stuff I don't care about:

adb logcat -v time LightSensor:s LightsService:s  SensorService:s SensorManager:s STATUSBAR-BatteryController:s BatteryService:s HeadsetStateMachine:s android.widget.GridLayout:s MP-Decision:s SignalStrength:s McClient:s McDaemon:s QcrilMsgTunnelSocket:s | grep -v ss_tz_mobicore | grep -v ss_daemon 

I was not able to see anything in the logs that would hint at what happened to the service. Did it quit? Did something kill it? How can I find out?

I thought that maybe the service was terminated b/c the OS was low on RAM, but this does not appear to be so. Here's the RAM at the moment of termination:

$ adb shell free -m              total         used         free       shared      buffers Mem:          1821         1587          234            0           75 -/+ buffers:               1511          310 Swap:          399          134          265 

While working on this issue, I have used Titanium Backup to freeze all apps that might interfere with normal operation of WhatsApp, so these are the apps I froze:

  • Greenify
  • Amplify
  • XPrivacy

I also turned off "Per App Hacking", which is an Xposed Module.

Any ideas on how I can learn more about why MessageService is being terminated?

EDIT 1: Is it possible that MessageService is supposed to get terminated, and that WhatsApp relies on GCM to be notified when there are new messages?

        

回答列表

0
 
vote

我一直与你的问题完全相同。我也可以看到MessionService服务在大约10分钟后被杀死。杀死服务后,仅在打开应用程序时才收到消息。虽然今天谷歌曲为这个问题,但巧合地发现了你在3小时前发布的这个线程。

我正在使用我安装了cyanogenmod 13的新手机。我已经尝试改变与电池使用,内存优化等有关的几个设置,但无济于。

我在2天前开始使用这款手机,从那时起就已经发生了WhatsApp问题。明天我将尝试卸载并重新安装WhatsApp从播放商店,因为此一个从泰坦尼亚级备份备份恢复。我在一个关于这样做的论坛中看到了一个解决类似问题的人......他也从泰国备份恢复并有这样的问题。

顺便说一下,你的关于GCM的理论似乎指向正确的方向 - 在我妻子的手机中,MessionService服务也在大约10分钟后杀死,但是,她没有接收WhatsApp消息的任何延迟 - 所以也许它确实依赖于GCM。

让我知道您是否在调查或解决方案方面取得任何进展。让我也知道我是否可以帮助你别的什么。

 

I've been having exactly the same issue as yours. I can also see that the MessageService service is being killed after around 10 minutes. After the service is killed, messages are only received when opening the app. While googling today for this problem, coincidentally found this thread which you had posted just 3 hours ago.

I'm using a new phone on which I installed Cyanogenmod 13. I've already tried to change several settings related to battery usage, memory optimization etc., but to no avail.

I've started using this phone 2 days ago and the whatsapp issue has been happening since then. Tomorrow I'll try to uninstall and reinstall whatsapp from the Play Store, since this one was restored from a Titanium Backup backup. I saw in a forum someone who resolved a similar issue by doing that... he also had restored from a TiBu backup and was having such problem.

By the way, your theory about GCM seems to point to the right direction - in my wife's phone the MessageService service is also killed after around 10 minutes, however, she doesn't have any delays in receiving whatsapp messages - so maybe it indeed relies on GCM for that.

Let me know if you make any progress on the investigation or come to a solution. Let me also know if I can help you with anything else.

 
 
   
   

相关问题

11  WhatsApp数据库文件夹中的多个db.crypt12数据库  ( Multiple db crypt12 databases in the whatsapp databases folder ) 
我正在尝试在手机和amp上减少由whats-app应用程序吃的空间; PC 我在whats-app数据库文件夹中看到多个db.crypt12数据库 这可能是由于我多年来将App文件夹复制到我的PC备份。 是否可以删除最少使用的一次? 它是正确的,应用程序只使用其中一个数据库? ...

2  为什么Whatsapp自发地在一天中开始备份?  ( Why whatsapp spontaneously starts a backup in the middle of the day ) 
偶尔会发生一次 - 我正在使用whatsapp(远离备份时间),它只是开始备份,而不是让我在几分钟内使用该应用程序。 最后一个备份在发生之前成功并完成了几个小时,然后在该备份弹出消息之后,它没有像往常一样备份到谷歌驱动器 - 所以只有一个本地备份。 我的猜测是它是一种"冲洗缓冲区" 来保存当前状态,可能是因为自上次备...

0  2 Mobile,2 SIM,2WHATSAPP帐户  ( 2 mobile 2 sim 2whatsapp account ) 
我有2个移动旧Lenevo与沃达丰SIM A6000和New Mi Note4与JIO SIM。 两个移动都具有不同的WhatsApp帐户。我想使用新的手机和反之亦然的旧移动WhatsApp帐户。现在,如果我想交换我的SIM卡,我该怎么办? whatsapp没有注销选项。 一旦我卸载WhatsApp交换了SIM,再...

16  帮助了解WhatsApp的权限  ( Help understanding whatsapps permissions ) 
Whatsapp在过去的几天里唠叨我,我必须升级它继续使用它。使用Facebook获取和播放商店不再标记单独"新" 的权限,我正在升级和卸载之间的折叠;我希望有关权限的更多信息将有所帮助。 首先,有谁知道在Facebook的收购后添加了哪些权限? 并且在列出的权限中,"此设备上的帐户" 允许应用程序进行什么? "...

0  如何从WhatsApp群聊中删除邮件  ( How to delete a message from whatsapp group chat ) 
我是Whatsapp的一组大学朋友的成员。我要删除有一种特定的消息。我知道我是否尝试删除它,它只从我的手机删除,但我想知道有没有办法我可以永久删除它。我不希望集团中的任何人看到那条消息。 ...

1  whatsapp仍然显示已删除的联系人  ( Whatsapp still shows deleted contacts ) 
我收到了新的Android手机。 我将我的个人gmail帐户添加到Gmail应用程序中,从Google同步我的〜100个人联系人。 我安装了whatsapp。 我为Android安装了Outlook。 我添加了我的工作邮件帐户,并在第一个同步之前没有取消选中"同步联系人" 。 只有在我的手机中看到〜100k工作联系...

0  Android自动 - 不停止通知  ( Android auto non stop notifications ) 
我一直在使用汽车显示器在Nexus 5上使用汽车显示器。除了来自Nexus上的巨大电池漏极外部没有问题。 几个星期前更新了手机到三星Galaxy S8。 Android自动连接和工作除外。如果我收到任何通知,请参见在whatsapp上,手机处于非停止通知音调。通过我的意思是,无论出于Whatsapp消息通知的声音播...

2  如何下载WhatsApp组的所有成员列表?  ( How to download a list of all members of whatsapp group ) 
我参加了一个whatsapp小组,并想知道是否有可能从这个组的所有成员下载txt列表。 ...

0  Whatsapp for Android 2.2.1 [重复]  ( Whatsapp for android 2 2 1 ) 
这个问题已经在这里有答案: whatsapp for Android 2.2.1(旧版本) (2个答案) ...

1  Android内部存储空间不断下降  ( Constant decrease in androids internal storage free space ) 
我用手机很难。我的设备是一个简单的LG Magna的空闲空间的恒定减少。这意味着某些东西在我的内存中不断占用越来越多的地方。当然,我确实尝试清除缓存,清除所有无用的视频,无用的应用程序,我删除了Facebook应用程序,因为我知道它使用了很多空间,但内存中的使用空间不断增加。我的8GB内存已经超过7.97GB。我已经...

2  无法通过whatsapp发送媒体文件  ( Not able to send media file via whatsapp ) 
我最近在我的Galaxy S2上下载了CyanogenMod,但我无法通过Whatsapp发送任何音乐文件,任何人都有解决这个问题吗? 错误消息是"您的音乐播放器不支持此选项尝试使用Android音乐播放器" ...

2  WhatsApp无法使用Google帐户进行备份  ( Whatsapp cant use google account for backup ) 
我的旧电话昨天在我身上去世了。它用于将WhatsApp聊天历史备份到我的主要Google帐户,我还用于注册设备。 现在我有一个新手机,我将它注册到同一个Google帐户。安装WhatsApp后,我试图将Google Drave备份恢复为新安装。但是,当我尝试输入我的Google帐户时,它会告诉我"此帐户已存在于您的设...

3  使用WhatsApp消息拒绝呼叫  ( Reject calls with whatsapp message ) 
是否有任何应用程序或任何方法拒绝通过whatsapp发送的消息?通常,当我们接到一个电话时,有一个选择用预先写的短信拒绝它,但我想知道你是否可以使用WhatsApp发送这些模板消息。 ...

7  将WhatsApp聊天历史与不同设备合并,但同一帐户  ( Merging whatsapp chat histories from different devices but same account ) 
是可以在2个Android设备(但1个帐户)上合并WhatsApp聊天历史? 如果是,怎么样? ...

1  如何在跳过还原选项后从备份恢复WhatsApp?  ( How do i restore whatsapp from backup after skipping the restore option ) 
当我更改设备时,我意外地跳过了WhatsApp恢复选项,现在覆盖了我对Google Drive上的备份被覆盖。我怎么能得到旧备份?我的数据约为2.3GB,我需要这些聊天。请帮助我。 ...




© 2021 it.wenda123.org All Rights Reserved. 问答之家 版权所有