首页 > 解决方案 > Android System log when cellular data is on and off

问题描述

I want to know the meaning of following logs:

05-14 23:30:33.027 4271 7083 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:877 android.content.ContextWrapper.sendBroadcast:421 com.motorola.bach.modemstats.MPhoneStateListener.onDataServiceChanged:470 com.motorola.bach.modemstats.MPhoneStateListener.startDataOutOfService:457 com.motorola.bach.modemstats.MSimPhoneStateListener.onServiceStateChanged:103

05-14 23:30:33.102 4271 7083 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:877 android.content.ContextWrapper.sendBroadcast:421 com.motorola.bach.modemstats.MPhoneStateListener.onDataServiceChanged:470 com.motorola.bach.modemstats.MPhoneStateListener.stopDataOutOfService:461 com.motorola.bach.modemstats.MSimPhoneStateListener.onServiceStateChanged:106

Are these logs about mobile cellular services start and stop? Any help would be appreciated.

标签: androidlogcatandroid-logcat

解决方案


回答一半: ContextImpl:在没有合格用户的情况下调用系统进程中的方法:android.app.ContextImpl.sendBroadcast: 当某些系统进程正在使用sendBroadcast,startActivity等方法时会出现此警告。为避免此系统进程需要使用带有用户句柄的方法,例如 startActivityAsUser、sendBroadcastAsUser。

使用 AsUser 变体方法背后的合理性允许有用户特定的限制。

到目前为止,这些警告是无害的。

对于来自摩托罗拉的日志,不确定它们。检查它们的一种方法是尝试关闭飞行模式或关闭数据,看看它们是否来了。


推荐阅读