Nexus 5x在没有任何通知的情况下保持通知声音 -- notifications 领域 和 nexus-5x 领域 android 相关 的问题

Nexus 5X keeps making notification sound without any notification


简体版||繁體版
1
vote

问题

中文

我在奥雷奥上的Nexus 5x,当我从睡眠中唤醒时,最近一直在发出通知声音。但是,没有明显的通知。我试图看看Logcat,看看是否有任何与通知声音一致的日志,但它太吵了。我确实注意到了以下内容,但我不确定他们是罪魁祸首。

  11-07 17:01:49.997  3460 17021 I WifiService: getConnectionInfo uid=10124 11-07 17:01:49.998  3460 17021 D WifiPermissionsUtil: Denied: no location permission 11-07 17:01:49.998  3460 17021 D WifiPermissionsUtil: Denied: The current config is not for an open network. 11-07 17:01:50.003  3460  4950 I WifiService: getConnectionInfo uid=10124 11-07 17:01:50.004  3460  4950 D WifiPermissionsUtil: Denied: no location permission 11-07 17:01:50.004  3460  4950 D WifiPermissionsUtil: Denied: The current config is not for an open network. 11-07 17:01:50.009  7249  7249 W Notification: Use of stream types is deprecated for operations other than volume control 11-07 17:01:50.009  7249  7249 W Notification: See the documentation of setSound() for what to use instead with android.media.AudioAttributes to qualify your playback use case 11-07 17:01:50.039 31569 31627 D Avrcp   : AudioManager Player: ID:23 -- type:android.media.SoundPool -- u/pid:10035/3869 -- state:idle -- attr:AudioAttributes: usage=USAGE_ASSISTANCE_SONIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x0 tags= bundle=null 11-07 17:01:50.039 31569 31627 D Avrcp   : AudioManager Player: ID:3639 -- type:android.media.MediaPlayer -- u/pid:10035/3869 -- state:idle -- attr:AudioAttributes: usage=USAGE_NOTIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x0 tags= bundle=null 11-07 17:01:50.039 31569 31627 D Avrcp   : AudioManager Player: ID:15 -- type:android.media.SoundPool -- u/pid:1000/3460 -- state:idle -- attr:AudioAttributes: usage=USAGE_ASSISTANCE_SONIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x0 tags= bundle=null 11-07 17:01:50.039 31569 31627 D Avrcp   : AudioManager Player: ID:31 -- type:android.media.SoundPool -- u/pid:1027/6162 -- state:idle -- attr:AudioAttributes: usage=USAGE_NOTIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x0 tags= bundle=null 11-07 17:01:50.039 31569 31627 D Avrcp   : AudioManager Player: ID:3631 -- type:android.media.MediaPlayer -- u/pid:10035/3869 -- state:started -- attr:AudioAttributes: usage=USAGE_NOTIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x0 tags= bundle=null 11-07 17:01:50.039 31569 31627 D Avrcp   : AudioManager isPlaying: true 11-07 17:01:50.062  3114  3114 D NuPlayerDriver: NuPlayerDriver(0xf1414200) created, clientPid(3869) 11-07 17:01:50.082  3114 13299 D GenericSource: FileSource remote 11-07 17:01:50.094  3460 17021 I WifiService: getConnectionInfo uid=10124 11-07 17:01:50.094  3460 17021 D WifiPermissionsUtil: Denied: no location permission 11-07 17:01:50.094  3460 17021 D WifiPermissionsUtil: Denied: The current config is not for an open network. 11-07 17:01:50.097  3114 13298 D NuPlayerDriver: notifyListener_l(0xf1414200), (1, 0, 0, -1), loop setting(0, 0) 11-07 17:01:50.099  7249 13274 W Notification: Use of stream types is deprecated for operations other than volume control 11-07 17:01:50.099  7249 13274 W Notification: See the documentation of setSound() for what to use instead with android.media.AudioAttributes to qualify your playback use case 11-07 17:01:50.113  3460  3510 I ActivityManager: Start proc 13301:android.process.acore/u0a1 for content provider com.android.providers.contacts/.ContactsProvider2 11-07 17:01:50.116  3460  3460 E NotificationService: Muting recently noisy 0|info.kfsoft.android.TrafficIndicator|2131623986|null|10124 11-07 17:01:50.314 13301 13301 I ContactsPerf: VoicemailContentProvider.onCreate start 11-07 17:01:50.348 13301 13301 I ContactsPerf: VoicemailContentProvider.onCreate finish 11-07 17:01:50.401  3114 13289 I NuPlayerDecoder: [audio] saw output EOS 11-07 17:01:50.483 13301 13316 D ContactsDatabaseHelper: WAL enabled for contacts2.db: true 11-07 17:01:50.608 31569 31627 D Avrcp   : AudioManager Player: ID:23 -- type:android.media.SoundPool -- u/pid:10035/3869 -- state:idle -- attr:AudioAttributes: usage=USAGE_ASSISTANCE_SONIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x0 tags= bundle=null 11-07 17:01:50.608 31569 31627 D Avrcp   : AudioManager Player: ID:3639 -- type:android.media.MediaPlayer -- u/pid:10035/3869 -- state:started -- attr:AudioAttributes: usage=USAGE_NOTIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x0 tags= bundle=null 11-07 17:01:50.608 31569 31627 D Avrcp   : AudioManager isPlaying: true   

pid = 3460用于system_server,位置设置(高精度),所以我不确定为什么它抱怨权限问题。

在听到声音时尝试了DiveSys音频,并基于时间戳,这里是相关的输出:

  Audio event log: focus commands as seen by MediaFocusControl 11-09 08:50:29:151 requestAudioFocus() from uid/pid 10035/3869 clientId=android.media.AudioManager@8aef0d8 callingPack=com.android.systemui req=3 flags=0x0 sdk=27 11-09 08:50:32:129 abandonAudioFocus() from uid/pid 10035/3869 clientId=android.media.AudioManager@8aef0d8  Audio event log: playback activity as reported through PlayerBase 11-09 08:50:29:120 new player piid:9887 uid/pid:10035/3869 type:android.media.MediaPlayer attr:AudioAttributes: usage=USAGE_UNKNOWN content=CONTENT_TYPE_UNKNOWN flags=0x0 tags= bundle=null 11-09 08:50:29:120 player piid:9887 new AudioAttributes:AudioAttributes: usage=USAGE_NOTIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x0 tags= bundle=null 11-09 08:50:29:121 player piid:9887 has OP_PLAY_AUDIO:true in uid:10035 11-09 08:50:29:652 player piid:9887 state:started 11-09 08:50:29:654 releasing player piid:9879 11-09 08:50:30:156 new player piid:9895 uid/pid:10035/3869 type:android.media.MediaPlayer attr:AudioAttributes: usage=USAGE_UNKNOWN content=CONTENT_TYPE_UNKNOWN flags=0x0 tags= bundle=null 11-09 08:50:30:157 player piid:9895 new AudioAttributes:AudioAttributes: usage=USAGE_NOTIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x0 tags= bundle=null 11-09 08:50:30:157 player piid:9895 has OP_PLAY_AUDIO:true in uid:10035 11-09 08:50:30:686 player piid:9895 state:started 11-09 08:50:30:688 releasing player piid:9887 11-09 08:50:32:129 player piid:9895 state:stopped  Audio event log: force use (logged before setForceUse() is executed) 11-09 08:50:32:130 setForceUse(FOR_MEDIA, FORCE_NO_BT_A2DP) due to setBluetoothA2dpOn(false) from u/pid:1000/3460   

任何想法?

english

I've a Nexus 5X on Oreo that has recently been making notification sounds when I wake it up from sleep. However, there are no visible notifications. I tried to look at logcat to see if there are any logs that coincide with the notification sounds, but it's too noisy. I did notice the following though, but I'm not sure if they're the culprit.

11-07 17:01:49.997  3460 17021 I WifiService: getConnectionInfo uid=10124 11-07 17:01:49.998  3460 17021 D WifiPermissionsUtil: Denied: no location permission 11-07 17:01:49.998  3460 17021 D WifiPermissionsUtil: Denied: The current config is not for an open network. 11-07 17:01:50.003  3460  4950 I WifiService: getConnectionInfo uid=10124 11-07 17:01:50.004  3460  4950 D WifiPermissionsUtil: Denied: no location permission 11-07 17:01:50.004  3460  4950 D WifiPermissionsUtil: Denied: The current config is not for an open network. 11-07 17:01:50.009  7249  7249 W Notification: Use of stream types is deprecated for operations other than volume control 11-07 17:01:50.009  7249  7249 W Notification: See the documentation of setSound() for what to use instead with android.media.AudioAttributes to qualify your playback use case 11-07 17:01:50.039 31569 31627 D Avrcp   : AudioManager Player: ID:23 -- type:android.media.SoundPool -- u/pid:10035/3869 -- state:idle -- attr:AudioAttributes: usage=USAGE_ASSISTANCE_SONIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x0 tags= bundle=null 11-07 17:01:50.039 31569 31627 D Avrcp   : AudioManager Player: ID:3639 -- type:android.media.MediaPlayer -- u/pid:10035/3869 -- state:idle -- attr:AudioAttributes: usage=USAGE_NOTIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x0 tags= bundle=null 11-07 17:01:50.039 31569 31627 D Avrcp   : AudioManager Player: ID:15 -- type:android.media.SoundPool -- u/pid:1000/3460 -- state:idle -- attr:AudioAttributes: usage=USAGE_ASSISTANCE_SONIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x0 tags= bundle=null 11-07 17:01:50.039 31569 31627 D Avrcp   : AudioManager Player: ID:31 -- type:android.media.SoundPool -- u/pid:1027/6162 -- state:idle -- attr:AudioAttributes: usage=USAGE_NOTIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x0 tags= bundle=null 11-07 17:01:50.039 31569 31627 D Avrcp   : AudioManager Player: ID:3631 -- type:android.media.MediaPlayer -- u/pid:10035/3869 -- state:started -- attr:AudioAttributes: usage=USAGE_NOTIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x0 tags= bundle=null 11-07 17:01:50.039 31569 31627 D Avrcp   : AudioManager isPlaying: true 11-07 17:01:50.062  3114  3114 D NuPlayerDriver: NuPlayerDriver(0xf1414200) created, clientPid(3869) 11-07 17:01:50.082  3114 13299 D GenericSource: FileSource remote 11-07 17:01:50.094  3460 17021 I WifiService: getConnectionInfo uid=10124 11-07 17:01:50.094  3460 17021 D WifiPermissionsUtil: Denied: no location permission 11-07 17:01:50.094  3460 17021 D WifiPermissionsUtil: Denied: The current config is not for an open network. 11-07 17:01:50.097  3114 13298 D NuPlayerDriver: notifyListener_l(0xf1414200), (1, 0, 0, -1), loop setting(0, 0) 11-07 17:01:50.099  7249 13274 W Notification: Use of stream types is deprecated for operations other than volume control 11-07 17:01:50.099  7249 13274 W Notification: See the documentation of setSound() for what to use instead with android.media.AudioAttributes to qualify your playback use case 11-07 17:01:50.113  3460  3510 I ActivityManager: Start proc 13301:android.process.acore/u0a1 for content provider com.android.providers.contacts/.ContactsProvider2 11-07 17:01:50.116  3460  3460 E NotificationService: Muting recently noisy 0|info.kfsoft.android.TrafficIndicator|2131623986|null|10124 11-07 17:01:50.314 13301 13301 I ContactsPerf: VoicemailContentProvider.onCreate start 11-07 17:01:50.348 13301 13301 I ContactsPerf: VoicemailContentProvider.onCreate finish 11-07 17:01:50.401  3114 13289 I NuPlayerDecoder: [audio] saw output EOS 11-07 17:01:50.483 13301 13316 D ContactsDatabaseHelper: WAL enabled for contacts2.db: true 11-07 17:01:50.608 31569 31627 D Avrcp   : AudioManager Player: ID:23 -- type:android.media.SoundPool -- u/pid:10035/3869 -- state:idle -- attr:AudioAttributes: usage=USAGE_ASSISTANCE_SONIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x0 tags= bundle=null 11-07 17:01:50.608 31569 31627 D Avrcp   : AudioManager Player: ID:3639 -- type:android.media.MediaPlayer -- u/pid:10035/3869 -- state:started -- attr:AudioAttributes: usage=USAGE_NOTIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x0 tags= bundle=null 11-07 17:01:50.608 31569 31627 D Avrcp   : AudioManager isPlaying: true 

PID=3460 is for system_server, and location setting is on(high accuracy), so I'm not sure why it's complaining of a permissions problem.

Tried dumpsys audio when I hear the sounds, and based on the timestamps, here are the relevant output:

Audio event log: focus commands as seen by MediaFocusControl 11-09 08:50:29:151 requestAudioFocus() from uid/pid 10035/3869 clientId=android.media.AudioManager@8aef0d8 callingPack=com.android.systemui req=3 flags=0x0 sdk=27 11-09 08:50:32:129 abandonAudioFocus() from uid/pid 10035/3869 clientId=android.media.AudioManager@8aef0d8  Audio event log: playback activity as reported through PlayerBase 11-09 08:50:29:120 new player piid:9887 uid/pid:10035/3869 type:android.media.MediaPlayer attr:AudioAttributes: usage=USAGE_UNKNOWN content=CONTENT_TYPE_UNKNOWN flags=0x0 tags= bundle=null 11-09 08:50:29:120 player piid:9887 new AudioAttributes:AudioAttributes: usage=USAGE_NOTIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x0 tags= bundle=null 11-09 08:50:29:121 player piid:9887 has OP_PLAY_AUDIO:true in uid:10035 11-09 08:50:29:652 player piid:9887 state:started 11-09 08:50:29:654 releasing player piid:9879 11-09 08:50:30:156 new player piid:9895 uid/pid:10035/3869 type:android.media.MediaPlayer attr:AudioAttributes: usage=USAGE_UNKNOWN content=CONTENT_TYPE_UNKNOWN flags=0x0 tags= bundle=null 11-09 08:50:30:157 player piid:9895 new AudioAttributes:AudioAttributes: usage=USAGE_NOTIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x0 tags= bundle=null 11-09 08:50:30:157 player piid:9895 has OP_PLAY_AUDIO:true in uid:10035 11-09 08:50:30:686 player piid:9895 state:started 11-09 08:50:30:688 releasing player piid:9887 11-09 08:50:32:129 player piid:9895 state:stopped  Audio event log: force use (logged before setForceUse() is executed) 11-09 08:50:32:130 setForceUse(FOR_MEDIA, FORCE_NO_BT_A2DP) due to setBluetoothA2dpOn(false) from u/pid:1000/3460 

Any idea?

     
         
         

回答列表


相关问题

7  在没有订阅计划的情况下在Nexus 5x + 6p上启用热点/系列?根,没有根  ( Enable hotspot tethering on nexus 5x 6p without a subscription plan root an ) 
是否有一种方法可以为nexus 5x和6p启用Hotspot / Tethering,即使您没有订阅计划,它也是如此?如何通过扎根手机和非生根手机来做任何操作? ...

-1  在Nexus 5x中使用内置激光测量温度  ( Measuring temperature using built in laser in nexus 5x ) 
我知道使用激光测量温度,Nexus 5x手机具有基于激光的焦点。因此,可以使用激光输入和输出读取,以便在您的相机专注于通过root Access的内容时测量温度。 但是,它真的有可能做到这一点,也许使用一些应用程序? ...

2  尽管工厂重置,但持久的恶意软件  ( Persistent malware despite factory resets ) 
我会爱你的想法。几个月前,我错误地点击了一个网站上的弹出窗口,从那时起,从那时起一直被互打的弹出窗口说"你的SIM卡被感染......等" ,它试图将我指导到戏剧商店安装一些粗略的"防病毒" 应用程序(我从未下载过)。 问题是,我已经完成了多个工厂重置,但在几天后,我再次获得弹出窗口。我已经尝试了来自播放商店的10个...

1  直接向语音邮件自行关闭  ( Direct to voicemail turns off on its own ) 
我有一个"垃圾邮件" 联系,它立即设置为"路由到语音邮件" 。 (参见如何优雅地阻止调用的示例) 此设置经常自行关闭,因此呼叫无论如何。 为什么如此?我该怎么办?我正在使用我的运营商( thred / hutchison 3g )正常的语音邮件服务。 nexus 5x,股票和roid7.1.2。 ...

4  Nexus 5x带有预安装的Android 7.0.0  ( Nexus 5x came with preinstalled android 7 0 0 ) 
我最近从亚马逊购买了Nexus 5x,它带来了Android 7.0.0,但官方规范说它附带了Android 6.所以问题:它是否意味着我的设备(使用,翻新等)是错误的? ...

2  尽管应用程序设置禁用,Nexus 5x振动  ( Nexus 5x vibrates despite disabling in app settings ) 
我的手机振动所有通知,尽管在具有选项的每个应用程序的设置中关闭振动振动。我如何为特定应用程序阻止振动通知? 根据Google支持页面和论坛,在没有进入Do-Not-Disch模式的情况下,无法在全局中禁用振动,但它应该按应用程序的应用程序工作。将其关闭在应用程序中,更改振动,现在所有行为都一样。所以它似乎是禁用应用程...

0  Nexus 5x媒体声音问题  ( Nexus 5x media sound issue ) 
我的全新Nexus 5x有一个问题。铃声,如通知或通话,或警报声有效。但媒体,游戏等媒体没有声音,谷歌播放音乐,播放视频。但是,如果我插上耳机,那么我可以听到这些声音中的任何一个。 由于扬声器为通知和报警工作,那么它应该是软件问题。 我还试图在安全模式下启动,硬重置,通过恢复模式和所有情况重置,无需成功。 ...

3  Nougat升级损坏了我的通知吗?  ( Nougat upgrade damaged my notifications ) 
我将我的nexus 5x更新到牛轧盆,从后悔遗憾的是。 以前,如果我有通知,照明光线将开始工作。如果我刚刚打开显示屏,而不是解锁,灯会关闭。但是现在使用更新光线直到我打开应用程序之前不会停止!总的来说,通知界面非常糟糕,但这个问题是我的。 如果我按下电源按钮,我如何使通知光停止,而无需解锁并打开应用程序? ...

0  在Nexus 5x上调试WiFi连接  ( Debugging wifi connection on nexus 5x ) 
从Nexus 5升级到Nexus 5x后,我无法连接到我公司的WiFi。我提供的凭据是正确的,有时我会设法连接,但这持续几秒到几分钟。 WiFi屏幕显示带有"已保存" 的WiFi,然后通过"连接" ,"验证" 并返回"已保存" 。 如何调试此操作并查看正在发生的事情?有没有我可以调查的日志?到目前为止,所有其他W...

15  Nexus 5x不会使用自定义铃声/通知  ( Nexus 5x wont use custom ringtones notifications ) 
刚得到5倍,并用我最喜欢的色调加载它。我通常与Android手机一起做同样的事情,以为不同的应用通知,警报等设置不同的音调。 手机播放股票或没有音调+振动。 文件是直接从我的三星签名的.wav格式,并将通过vlc播放5倍。 ...




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