Audio event log: audio services lifecycle 11-26 01:16:55:973 AudioService() Message handler (watch for unhandled messages): Handler (com.android.server.audio.AudioService$AudioHandler) {40fac9e} @ 102972 Looper (AudioService, tid 115) {178d37f} (Total messages: 0, polling=true, quitting=false) MediaFocusControl dump time: 上午1:17:53 Audio Focus stack entries (last is top of stack): No external focus policy Notify on duck: true In ring or call: false Audio event log: focus commands as seen by MediaFocusControl 11-26 01:17:01:901 requestAudioFocus() from uid/pid 10088/2084 AA=USAGE_NOTIFICATION/CONTENT_TYPE_SONIFICATION clientId=android.media.AudioManager@e06467f callingPack=com.android.systemui req=3 flags=0x0 sdk=31 11-26 01:17:04:628 abandonAudioFocus() from uid/pid 10088/2084 clientId=android.media.AudioManager@e06467f 11-26 01:17:10:146 requestAudioFocus() from uid/pid 10088/2084 AA=USAGE_NOTIFICATION/CONTENT_TYPE_SONIFICATION clientId=android.media.AudioManager@5242900 callingPack=com.android.systemui req=3 flags=0x0 sdk=31 11-26 01:17:12:730 abandonAudioFocus() from uid/pid 10088/2084 clientId=android.media.AudioManager@5242900 Multi Audio Focus enabled :false Stream volumes (device: index) - STREAM_VOICE_CALL: Muted: false Muted Internally: false Min: 1 Max: 5 streamVolume:2 Current: 1 (earpiece): 2, 2 (speaker): 2, 4 (headset): 2, 8 (headphone): 2, 4000000 (usb_headset): 2, 40000000 (default): 2 Devices: earpiece - STREAM_SYSTEM: Muted: false Muted Internally: false Min: 0 Max: 7 streamVolume:2 Current: 2 (speaker): 2, 4 (headset): 2, 8 (headphone): 2, 4000000 (usb_headset): 2, 40000000 (default): 2 Devices: speaker - STREAM_RING: Muted: false Muted Internally: false Min: 0 Max: 7 streamVolume:2 Current: 2 (speaker): 2, 4 (headset): 2, 8 (headphone): 2, 4000000 (usb_headset): 2, 40000000 (default): 2 Devices: speaker - STREAM_MUSIC: Muted: false Muted Internally: false Min: 0 Max: 39 streamVolume:13 Current: 2 (speaker): 13, 4 (headset): 10, 8 (headphone): 10, 4000000 (usb_headset): 10, 40000000 (default): 13 Devices: speaker - STREAM_ALARM: Muted: false Muted Internally: false Min: 1 Max: 7 streamVolume:3 Current: 2 (speaker): 3, 4 (headset): 3, 8 (headphone): 3, 4000000 (usb_headset): 3, 40000000 (default): 3 Devices: speaker - STREAM_NOTIFICATION: Muted: false Muted Internally: false Min: 0 Max: 7 streamVolume:2 Current: 2 (speaker): 2, 4 (headset): 2, 8 (headphone): 2, 4000000 (usb_headset): 2, 40000000 (default): 2 Devices: speaker - STREAM_BLUETOOTH_SCO: Muted: false Muted Internally: false Min: 0 Max: 15 streamVolume:7 Current: 1 (earpiece): 7, 40000000 (default): 7 Devices: earpiece - STREAM_SYSTEM_ENFORCED: Muted: false Muted Internally: false Min: 0 Max: 7 streamVolume:2 Current: 2 (speaker): 2, 4 (headset): 2, 8 (headphone): 2, 4000000 (usb_headset): 2, 40000000 (default): 2 Devices: speaker - STREAM_DTMF: Muted: false Muted Internally: false Min: 0 Max: 15 streamVolume:5 Current: 2 (speaker): 5, 4 (headset): 4, 8 (headphone): 4, 4000000 (usb_headset): 4, 40000000 (default): 5 Devices: speaker - STREAM_TTS: Muted: false Muted Internally: false Min: 0 Max: 15 streamVolume:5 Current: 2 (speaker): 5, 4 (headset): 4, 8 (headphone): 4, 4000000 (usb_headset): 4, 40000000 (default): 5 Devices: speaker - STREAM_ACCESSIBILITY: Muted: false Muted Internally: false Min: 1 Max: 15 streamVolume:6 Current: 2 (speaker): 6, 4 (headset): 5, 8 (headphone): 5, 4000000 (usb_headset): 5, 40000000 (default): 6 Devices: speaker - STREAM_ASSISTANT: Muted: false Muted Internally: false Min: 0 Max: 15 streamVolume:5 Current: 2 (speaker): 5, 4 (headset): 4, 8 (headphone): 4, 4000000 (usb_headset): 4, 40000000 (default): 5 Devices: speaker - mute affected streams = 0x6f Volume Groups (device: index) - VOLUME GROUP AUDIO_STREAM_ACCESSIBILITY: Min: 1 Max: 15 Current: 40000000 (default): 6 Devices: speaker - VOLUME GROUP AUDIO_STREAM_ALARM: Min: 1 Max: 7 Current: 40000000 (default): 3 Devices: speaker - VOLUME GROUP AUDIO_STREAM_ASSISTANT: Min: 0 Max: 15 Current: 40000000 (default): 5 Devices: speaker - VOLUME GROUP AUDIO_STREAM_DTMF: Min: 0 Max: 15 Current: 40000000 (default): 5 Devices: speaker - VOLUME GROUP AUDIO_STREAM_ENFORCED_AUDIBLE: Min: 0 Max: 7 Current: 40000000 (default): 2 Devices: speaker - VOLUME GROUP AUDIO_STREAM_MUSIC: Min: 0 Max: 39 Current: 40000000 (default): 13 Devices: speaker - VOLUME GROUP AUDIO_STREAM_NOTIFICATION: Min: 0 Max: 7 Current: 40000000 (default): 2 Devices: speaker - VOLUME GROUP AUDIO_STREAM_REROUTING: Min: 0 Max: 39 Current: 40000000 (default): 13 Devices: speaker - VOLUME GROUP AUDIO_STREAM_RING: Min: 0 Max: 7 Current: 40000000 (default): 2 Devices: speaker - VOLUME GROUP AUDIO_STREAM_SYSTEM: Min: 0 Max: 7 Current: 40000000 (default): 2 Devices: speaker - VOLUME GROUP AUDIO_STREAM_VOICE_CALL: Min: 1 Max: 5 Current: 40000000 (default): 2 Devices: earpiece - VOLUME GROUP AUDIO_STREAM_CALL_ASSISTANT: Min: 0 Max: 39 Current: 40000000 (default): 13 Devices: speaker Ringer mode: - mode (internal) = NORMAL - mode (external) = NORMAL - zen mode:ZEN_MODE_OFF - ringer mode affected streams = 0x80 (STREAM_SYSTEM_ENFORCED) - ringer mode muted streams = 0x0 - delegate = ZenModeHelper Audio mode: - Requested mode = MODE_NORMAL - Actual mode = MODE_NORMAL - Mode owner: None - Mode owner stack: Empty Audio routes: mMainType=0x0 mBluetoothName=null Other state: mVolumeController=VolumeController(android.os.BinderProxy@41cef4c,mVisible=false) mSafeMediaVolumeState=SAFE_MEDIA_VOLUME_ACTIVE mSafeMediaVolumeIndex=100 mSafeUsbMediaVolumeIndex=100 mSafeUsbMediaVolumeDbfs=-37.0 sIndependentA11yVolume=false mPendingVolumeCommand=null mMusicActiveMs=0 mMcc=0 mCameraSoundForced=false mHasVibrator=true mVolumePolicy=VolumePolicy[volumeDownToEnterSilent=false,volumeUpToExitSilent=false,doNotDisturbWhenSilent=false,vibrateToSilentDebounce=400] mAvrcpAbsVolSupported=false mBtScoOnByApp=false mIsSingleVolume=true mUseFixedVolume=false mFixedVolumeDevices=0x1000,0x800,0x200000,0x40000,0x40001 mFullVolumeDevices= mExtVolumeController=null mHdmiAudioSystemClient=null mHdmiPlaybackClient=null mHdmiTvClient=null mHdmiSystemAudioSupported=false mHdmiCecVolumeControlEnabled=false mIsCallScreeningModeSupported=true mic mute FromSwitch=false FromRestrictions=false FromApi=false from system=false mAssistantUid=0 mCurrentImeUid=0 mMonitorRotation=false No accessibility service Uids. Audio policies: Audio event log: dynamic policy events (logged when command received by AudioService) PlaybackActivityMonitor dump time: 上午1:17:53 playback listeners: (S)com.android.server.audio.PlaybackActivityMonitor$PlayMonitorClient@2033b95 (S)com.android.server.audio.PlaybackActivityMonitor$PlayMonitorClient@1c5f4aa (S)com.android.server.audio.PlaybackActivityMonitor$PlayMonitorClient@751289b players: AudioPlaybackConfiguration piid:295 deviceId:0 type:android.media.SoundPool u/pid:1000/1016 state:idle attr:AudioAttributes: usage=USAGE_ASSISTANCE_SONIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x800 tags= bundle=null sessionId:0 AudioPlaybackConfiguration piid:303 deviceId:0 type:android.media.SoundPool u/pid:10088/2084 state:idle attr:AudioAttributes: usage=USAGE_ASSISTANCE_SONIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x800 tags= bundle=null sessionId:0 AudioPlaybackConfiguration piid:327 deviceId:0 type:android.media.SoundPool u/pid:1000/4195 state:idle attr:AudioAttributes: usage=USAGE_ASSISTANCE_SONIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x801 tags= bundle=null sessionId:0 ducked players piids: faded out players piids: muted player piids: banned uids: Audio event log: playback activity as reported through PlayerBase 11-26 01:16:58:083 new player piid:295 uid/pid:1000/1016 type:android.media.SoundPool attr:AudioAttributes: usage=USAGE_ASSISTANCE_SONIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x800 tags= bundle=null session:0 11-26 01:16:58:928 new player piid:303 uid/pid:10088/2084 type:android.media.SoundPool attr:AudioAttributes: usage=USAGE_ASSISTANCE_SONIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x800 tags= bundle=null session:0 11-26 01:17:01:752 new player piid:311 uid/pid:10088/2084 type:android.media.MediaPlayer attr:AudioAttributes: usage=USAGE_UNKNOWN content=CONTENT_TYPE_UNKNOWN flags=0x800 tags= bundle=null session:0 11-26 01:17:01:762 player piid:311 new AudioAttributes:AudioAttributes: usage=USAGE_NOTIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x800 tags= bundle=null 11-26 01:17:02:405 player piid:311 state:started DeviceId:0 11-26 01:17:02:742 player piid:311 state:device DeviceId:3 11-26 01:17:04:626 player piid:311 state:stopped DeviceId:0 11-26 01:17:04:666 releasing player piid:311 11-26 01:17:10:027 new player piid:319 uid/pid:10088/2084 type:android.media.MediaPlayer attr:AudioAttributes: usage=USAGE_UNKNOWN content=CONTENT_TYPE_UNKNOWN flags=0x800 tags= bundle=null session:0 11-26 01:17:10:028 player piid:319 new AudioAttributes:AudioAttributes: usage=USAGE_NOTIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x800 tags= bundle=null 11-26 01:17:10:651 player piid:319 state:started DeviceId:0 11-26 01:17:10:861 player piid:319 state:device DeviceId:3 11-26 01:17:12:730 player piid:319 state:stopped DeviceId:0 11-26 01:17:12:734 releasing player piid:319 11-26 01:17:20:201 new player piid:327 uid/pid:1000/4195 type:android.media.SoundPool attr:AudioAttributes: usage=USAGE_ASSISTANCE_SONIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x801 tags= bundle=null session:0 allowed capture policies: RecordActivityMonitor dump time: 上午1:17:53 Audio event log: recording activity received by AudioService AudioDeviceBroker: Message handler (watch for unhandled messages): Handler (com.android.server.audio.AudioDeviceBroker$BrokerHandler) {acfb438} @ 102993 Looper (AudioDeviceBroker, tid 116) {ea8fc11} (Total messages: 0, polling=true, quitting=false) Preferred devices for strategy: Connected devices: APM Connected device (A2DP sink only): Communication route clients: Computed Preferred communication device: null Applied Preferred communication device: null Active communication device: AudioDeviceAttributes: role:output type:earpiece addr: mCommunicationStrategyId: 15 mModeOwnerPid: 0 mBluetoothHeadset: android.bluetooth.BluetoothHeadset@5bf2226 mBluetoothHeadsetDevice: null mScoAudioState: SCO_STATE_INACTIVE mScoAudioMode: SCO_MODE_VIRTUAL_CALL mHearingAid: android.bluetooth.BluetoothHearingAid@9f71c9 mA2dp: android.bluetooth.BluetoothA2dp@ad839f mAvrcpAbsVolSupported: false SoundEffects: Message handler (watch for unhandled messages): Handler (com.android.server.audio.SoundEffectsHelper$SfxHandler) {e6b176} @ 102995 Looper (AS.SfxWorker, tid 114) {38fb377} (Total messages: 0, polling=true, quitting=false) Default attenuation (dB): -6 Audio event log: Sound Effects Loading 11-26 01:16:58:080 effects loading started 11-26 01:16:58:372 effect Effect_Tick.ogg loaded 11-26 01:16:58:593 effect KeypressStandard.ogg loaded 11-26 01:16:58:660 effect KeypressSpacebar.ogg loaded 11-26 01:16:58:869 effect KeypressReturn.ogg loaded 11-26 01:16:58:876 effect KeypressDelete.ogg loaded 11-26 01:16:59:161 effect KeypressInvalid.ogg loaded 11-26 01:16:59:161 effects loading completed Event logs: Audio event log: phone state (logged after successful call to AudioSystem.setPhoneState(int, int)) Audio event log: wired/A2DP/hearing aid device connection 11-26 01:16:58:063 onUpdateCommunicationRoute, preferredCommunicationDevice: null eventSource: resetBluetoothSco 11-26 01:16:58:065 removePreferredDevicesForStrategySync, strategy: 15 11-26 01:17:01:043 onUpdateCommunicationRoute, preferredCommunicationDevice: null eventSource: resetBluetoothSco 11-26 01:17:01:046 removePreferredDevicesForStrategySync, strategy: 15 11-26 01:17:01:294 BT profile service: connecting A2DP profile 11-26 01:17:01:533 BT profile service: connecting HEARING_AID profile 11-26 01:17:03:487 BT profile service: connecting HEADSET profile Audio event log: force use (logged before setForceUse() is executed) 11-26 01:16:56:025 setForceUse(FOR_SYSTEM, FORCE_NONE) due to AudioService ctor 11-26 01:16:56:031 setForceUse(FOR_ENCODED_SURROUND, FORCE_NONE) due to readPersistedSettings 11-26 01:16:56:032 setForceUse(FOR_DOCK, FORCE_ANALOG_DOCK) due to readDockAudioSettings 11-26 01:16:58:017 setForceUse(FOR_VIBRATE_RINGING, FORCE_NONE) due to muteRingerModeStreams() from u/pid:1000/1016 11-26 01:16:58:081 setForceUse(FOR_VIBRATE_RINGING, FORCE_NONE) due to muteRingerModeStreams() from u/pid:1000/1016 11-26 01:16:58:661 setForceUse(FOR_ENCODED_SURROUND, FORCE_NONE) due to readPersistedSettings 11-26 01:16:58:661 setForceUse(FOR_DOCK, FORCE_ANALOG_DOCK) due to readDockAudioSettings 11-26 01:16:58:694 setForceUse(FOR_VIBRATE_RINGING, FORCE_NONE) due to muteRingerModeStreams() from u/pid:1000/1016 11-26 01:17:01:050 setForceUse(FOR_VIBRATE_RINGING, FORCE_NONE) due to muteRingerModeStreams() from u/pid:1000/1016 Audio event log: volume changes (logged when command received by AudioService) Supported System Usages: USAGE_CALL_ASSISTANT