8000 HI 在docker中的APP无法获取到音频播放设备 · Issue #17 · redroid-rockchip/.github · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

HI 在docker中的APP无法获取到音频播放设备 #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
salier opened this issue Apr 11, 2025 · 0 comments
Open

HI 在docker中的APP无法获取到音频播放设备 #17

salier opened this issue Apr 11, 2025 · 0 comments

Comments

@salier
Copy link
salier commented Apr 11, 2025

我在docker中使用自己打包的APK 但是在获取目前的声音播放设备时获取的是空值。但是chrome的确在正确播放声音。我们测试了无限暖暖似乎也是没有声音的。这可能是因为没有获取到音频播放设备。但是我不知道是哪里出现了问题
以下是shell dumpsys audio 可以发现没有一个正常的音频播放设备
主要使用的是remote_submix和speaker

Audio event log: audio services lifecycle
04-11 12:26:15:426 AudioService()

Message handler (watch for unhandled messages):
Handler (com.android.server.audio.AudioService$AudioHandler) {9c64320} @ 39620226
Looper (AudioService, tid 114) {c9e84d9}
(Total messages: 0, polling=true, quitting=false)

MediaFocusControl dump time: 12:35:39 PM

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
04-11 12:26:47:563 requestAudioFocus() from uid/pid 10109/3768 AA=USAGE_NOTIFICATION/CONTENT_TYPE_SONIFICATION clientId=android.media.AudioManager@e8f5d49 callingPack=com.android.systemui req=3 flags=0x0 sdk=33
04-11 12:26:55:538 abandonAudioFocus() from uid/pid 10109/3768 clientId=android.media.AudioManager@e8f5d49
04-11 12:26:57:509 requestAudioFocus() from uid/pid 10109/3768 AA=USAGE_NOTIFICATION/CONTENT_TYPE_SONIFICATION clientId=android.media.AudioManager@3cd60e4 callingPack=com.android.systemui req=3 flags=0x0 sdk=33
04-11 12:27:01:597 abandonAudioFocus() from uid/pid 10109/3768 clientId=android.media.AudioManager@3cd60e4
04-11 12:27:24:147 requestAudioFocus() from uid/pid 10109/3768 AA=USAGE_NOTIFICATION/CONTENT_TYPE_SONIFICATION clientId=android.media.AudioManager@388db5 callingPack=com.android.systemui req=3 flags=0x0 sdk=33
04-11 12:27:25:954 abandonAudioFocus() from uid/pid 10109/3768 clientId=android.media.AudioManager@388db5
04-11 12:28:07:556 requestAudioFocus() from uid/pid 10109/3768 AA=USAGE_NOTIFICATION/CONTENT_TYPE_SONIFICATION clientId=android.media.AudioManager@68f9acf callingPack=com.android.systemui req=3 flags=0x0 sdk=33
04-11 12:28:09:365 abandonAudioFocus() from uid/pid 10109/3768 clientId=android.media.AudioManager@68f9acf
04-11 12:28:29:295 requestAudioFocus() from uid/pid 10109/3768 AA=USAGE_NOTIFICATION/CONTENT_TYPE_SONIFICATION clientId=android.media.AudioManager@5844a40 callingPack=com.android.systemui req=3 flags=0x0 sdk=33
04-11 12:28:31:148 abandonAudioFocus() from uid/pid 10109/3768 clientId=android.media.AudioManager@5844a40
04-11 12:29:10:749 requestAudioFocus() from uid/pid 10109/3768 AA=USAGE_NOTIFICATION/CONTENT_TYPE_SONIFICATION clientId=android.media.AudioManager@2abc575 callingPack=com.android.systemui req=3 flags=0x0 sdk=33
04-11 12:29:12:549 abandonAudioFocus() from uid/pid 10109/3768 clientId=android.media.AudioManager@2abc575
04-11 12:31:30:066 requestAudioFocus() from uid/pid 10109/3768 AA=USAGE_NOTIFICATION/CONTENT_TYPE_SONIFICATION clientId=android.media.AudioManager@88b81c8 callingPack=com.android.systemui req=3 flags=0x0 sdk=33
04-11 12:31:31:889 abandonAudioFocus() from uid/pid 10109/3768 clientId=android.media.AudioManager@88b81c8
04-11 12:32:33:840 requestAudioFocus() from uid/pid 10109/3768 AA=USAGE_NOTIFICATION/CONTENT_TYPE_SONIFICATION clientId=android.media.AudioManager@534a2f0 callingPack=com.android.systemui req=3 flags=0x0 sdk=33
04-11 12:32:36:628 abandonAudioFocus() from uid/pid 10109/3768 clientId=android.media.AudioManager@534a2f0
04-11 12:32:38:099 requestAudioFocus() from uid/pid 10109/3768 AA=USAGE_NOTIFICATION/CONTENT_TYPE_SONIFICATION clientId=android.media.AudioManager@bcdcbbe callingPack=com.android.systemui req=3 flags=0x0 sdk=33
04-11 12:32:39:879 abandonAudioFocus() from uid/pid 10109/3768 clientId=android.media.AudioManager@bcdcbbe
04-11 12:35:16:608 requestAudioFocus() from uid/pid 10109/3768 AA=USAGE_NOTIFICATION/CONTENT_TYPE_SONIFICATION clientId=android.media.AudioManager@5593b6a callingPack=com.android.systemui req=3 flags=0x0 sdk=33
04-11 12:35:18:406 abandonAudioFocus() from uid/pid 10109/3768 clientId=android.media.AudioManager@5593b6a
04-11 12:35:21:543 requestAudioFocus() from uid/pid 10109/3768 AA=USAGE_NOTIFICATION/CONTENT_TYPE_SONIFICATION clientId=android.media.AudioManager@f0612cf callingPack=com.android.systemui req=3 flags=0x0 sdk=33
04-11 12:35:23:349 abandonAudioFocus() from uid/pid 10109/3768 clientId=android.media.AudioManager@f0612cf
Multi Audio Focus enabled :false

Stream volumes (device: index)

  • STREAM_VOICE_CALL:
    Muted: false
    Muted Internally: false
    Min: 1
    Max: 5
    streamVolume:3
    Current: 2 (speaker): 3, 40000000 (default): 3
    Devices: speaker(2)
    Volume Group: AUDIO_STREAM_VOICE_CALL

  • STREAM_SYSTEM (aliased to: STREAM_RING):
    Muted: false
    Muted Internally: false
    Min: 0
    Max: 7
    streamVolume:5
    Current: 2 (speaker): 5, 8000 (remote_submix): 5, 40000000 (default): 5
    Devices: remote_submix(8000)
    Volume Group: AUDIO_STREAM_SYSTEM

  • STREAM_RING:
    Muted: false
    Muted Internally: false
    Min: 0
    Max: 7
    streamVolume:5
    Current: 2 (speaker): 5, 40000000 (default): 5
    Devices: speaker(2)
    Volume Group: AUDIO_STREAM_RING

  • STREAM_MUSIC:
    Muted: false
    Muted Internally: false
    Min: 0
    Max: 15
    streamVolume:15
    Current: 2 (speaker): 15, 8000 (remote_submix): 15, 4000000 (usb_headset): 3, 40000000 (default): 5
    Devices: remote_submix(8000)
    Volume Group: AUDIO_STREAM_MUSIC

  • STREAM_ALARM:
    Muted: false
    Muted Internally: false
    Min: 1
    Max: 7
    streamVolume:6
    Current: 2 (speaker): 6, 40000000 (default): 6
    Devices: speaker(2)
    Volume Group: AUDIO_STREAM_ALARM

  • STREAM_NOTIFICATION:
    Muted: false
    Muted Internally: false
    Min: 0
    Max: 7
    streamVolume:5
    Current: 2 (speaker): 5, 40000000 (default): 5
    Devices: speaker(2)
    Volume Group: AUDIO_STREAM_NOTIFICATION

  • STREAM_BLUETOOTH_SCO:
    Muted: false
    Muted Internally: false
    Min: 0
    Max: 15
    streamVolume:7
    Current: 2 (speaker): 7, 40000000 (default): 7
    Devices: speaker(2)
    Volume Group: AUDIO_STREAM_BLUETOOTH_SCO

  • STREAM_SYSTEM_ENFORCED (aliased to: STREAM_RING):
    Muted: false
    Muted Internally: false
    Min: 0
    Max: 7
    streamVolume:5
    Current: 2 (speaker): 5, 8000 (remote_submix): 5, 40000000 (default): 5
    Devices: remote_submix(8000)
    Volume Group: AUDIO_STREAM_ENFORCED_AUDIBLE

  • STREAM_DTMF (aliased to: STREAM_RING):
    Muted: false
    Muted Internally: false
    Min: 0
    Max: 15
    streamVolume:5
    Current: 2 (speaker): 11, 8000 (remote_submix): 5, 40000000 (default): 11
    Devices: remote_submix(8000)
    Volume Group: AUDIO_STREAM_DTMF

  • STREAM_TTS (aliased to: STREAM_MUSIC):
    Muted: false
    Muted Internally: false
    Min: 0
    Max: 15
    streamVolume:15
    Current: 2 (speaker): 15, 8000 (remote_submix): 15, 4000000 (usb_headset): 3, 40000000 (default): 5
    Devices: speaker(2)
    Volume Group: AUDIO_STREAM_TTS

  • STREAM_ACCESSIBILITY (aliased to: STREAM_MUSIC):
    Muted: false
    Muted Internally: false
    Min: 1
    Max: 15
    streamVolume:15
    Current: 2 (speaker): 15, 8000 (remote_submix): 15, 4000000 (usb_headset): 4, 40000000 (default): 6
    Devices: remote_submix(8000)
    Volume Group: AUDIO_STREAM_ACCESSIBILITY

  • STREAM_ASSISTANT (aliased to: STREAM_MUSIC):
    Muted: false
    Muted Internally: false
    Min: 0
    Max: 15
    streamVolume:15
    Current: 2 (speaker): 15, 8000 (remote_submix): 15, 4000000 (usb_headset): 3, 40000000 (default): 5
    Devices: remote_submix(8000)
    Volume Group: AUDIO_STREAM_ASSISTANT

  • mute affected streams = 0x6f

Volume Groups (device: index)

  • VOLUME GROUP AUDIO_STREAM_ACCESSIBILITY:
    Muted: false
    Min: 1
    Max: 15
    Current: 2 (speaker): 15, 8000 (remote_submix): 15, 4000000 (usb_headset): 4, 40000000 (default): 6
    Devices: remote_submix
    Streams: STREAM_ACCESSIBILITY
  • VOLUME GROUP AUDIO_STREAM_ALARM:
    Muted: false
    Min: 1
    Max: 7
    Current: 40000000 (default): 6
    Devices: speaker
    Streams: STREAM_ALARM
  • VOLUME GROUP AUDIO_STREAM_ASSISTANT:
    Muted: false
    Min: 0
    Max: 15
    Current: 2 (speaker): 15, 8000 (remote_submix): 15, 4000000 (usb_headset): 3, 40000000 (default): 5
    Devices: remote_submix
    Streams: STREAM_ASSISTANT
  • VOLUME GROUP AUDIO_STREAM_BLUETOOTH_SCO:
    Muted: false
    Min: 0
    Max: 15
    Current: 40000000 (default): 7
    Devices: speaker
    Streams: STREAM_BLUETOOTH_SCO
  • VOLUME GROUP AUDIO_STREAM_DTMF:
    Muted: false
    Min: 0
    Max: 15
    Current: 2 (speaker): 11, 8000 (remote_submix): 5, 40000000 (default): 11
    Devices: remote_submix
    Streams: STREAM_DTMF
  • VOLUME GROUP AUDIO_STREAM_ENFORCED_AUDIBLE:
    Muted: false
    Min: 0
    Max: 7
    Current: 40000000 (default): 5
    Devices: remote_submix
    Streams: STREAM_SYSTEM_ENFORCED
  • VOLUME GROUP AUDIO_STREAM_MUSIC:
    Muted: false
    Min: 0
    Max: 15
    Current: 2 (speaker): 15, 8000 (remote_submix): 15, 4000000 (usb_headset): 3, 40000000 (default): 5
    Devices: remote_submix
    Streams: STREAM_MUSIC
  • VOLUME GROUP AUDIO_STREAM_NOTIFICATION:
    Muted: false
    Min: 0
    Max: 7
    Current: 40000000 (default): 5
    Devices: speaker
    Streams: STREAM_NOTIFICATION
  • VOLUME GROUP AUDIO_STREAM_PATCH:
    Muted: false
    Min: 0
    Max: 15
    Current: 40000000 (default): 5
    Devices: remote_submix
    Streams: UNKNOWN_STREAM_13
  • VOLUME GROUP AUDIO_STREAM_REROUTING:
    Muted: false
    Min: 0
    Max: 15
    Current: 40000000 (default): 5
    Devices: remote_submix
    Streams: UNKNOWN_STREAM_12
  • VOLUME GROUP AUDIO_STREAM_RING:
    Muted: false
    Min: 0
    Max: 7
    Current: 40000000 (default): 5
    Devices: speaker
    Streams: STREAM_RING
  • VOLUME GROUP AUDIO_STREAM_SYSTEM:
    Muted: false
    Min: 0
    Max: 7
    Current: 40000000 (default): 5
    Devices: remote_submix
    Streams: STREAM_SYSTEM
  • VOLUME GROUP AUDIO_STREAM_TTS:
    Muted: false
    Min: 0
    Max: 15
    Current: 2 (speaker): 15, 8000 (remote_submix): 15, 4000000 (usb_headset): 3, 40000000 (default): 5
    Devices: speaker
    Streams: STREAM_TTS
  • VOLUME GROUP AUDIO_STREAM_VOICE_CALL:
    Muted: false
    Min: 1
    Max: 5
    Current: 40000000 (default): 3
    Devices: speaker
    Streams: STREAM_VOICE_CALL
  • VOLUME GROUP AUDIO_STREAM_CALL_ASSISTANT:
    Muted: false
    Min: 0
    Max: 15
    Current: 40000000 (default): 5
    Devices: remote_submix
    Streams: UNKNOWN_STREAM_14

Ringer mode:

  • mode (internal) = NORMAL
  • mode (external) = NORMAL
  • zen mode:ZEN_MODE_OFF
  • ringer mode affected streams = 0x1a6 (STREAM_SYSTEM,STREAM_RING,STREAM_NOTIFICATION,STREAM_SYSTEM_ENFORCED,STREAM_DTMF)
  • 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@4cede9e,mVisible=false)
mSafeMediaVolumeState=SAFE_MEDIA_VOLUME_ACTIVE
mSafeMediaVolumeIndex=100
mSafeUsbMediaVolumeIndex=30
mSafeUsbMediaVolumeDbfs=-37.0
sIndependentA11yVolume=false
mPendingVolumeCommand=null
mMusicActiveMs=0
mMcc=0
mCameraSoundForced=false
mHasVibrator=false
mVolumePolicy=VolumePolicy[volumeDownToEnterSilent=false,volumeUpToExitSilent=false,doNotDisturbWhenSilent=false,vibrateToSilentDebounce=400]
mAvrcpAbsVolSupported=false
mBtScoOnByApp=false
mIsSingleVolume=false
mUseFixedVolume=false
mNotifAliasRing=false
mFixedVolumeDevices=0x200000
mFullVolumeDevices=0x40000,0x40001
mAbsoluteVolumeDevices.keySet()=
mExtVolumeController=null
mHdmiAudioSystemClient=null
mHdmiPlaybackClient=null
mHdmiTvClient=null
mHdmiSystemAudioSupported=false
mHdmiCecVolumeControlEnabled=false
mIsCallScreeningModeSupported=false
mic mute FromSwitch=false FromRestrictions=false FromApi=false from system=false mCurrentImeUid=0
No accessibility service Uids.
No Assistant service Uids.

Audio policies:
Audio event log: dynamic policy events (logged when command received by AudioService)

PlaybackActivityMonitor dump time: 12:35:39 PM

playback listeners:
(S)com.android.server.audio.PlaybackActivityMonitor$PlayMonitorClient@1d1d7f (S)com.android.server.audio.PlaybackActivityMonitor$PlayMonitorClient@a9c714c

players:
(not logged) AudioPlaybackConfiguration piid:312407 deviceId:0 type:android.media.SoundPool u/pid:1000/245 state:idle attr:AudioAttributes: usage=USAGE_ASSISTANCE_SONIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x800 tags= bundle=null sessionId:0
AudioPlaybackConfiguration piid:312415 deviceId:0 type:android.media.SoundPool u/pid:10109/3768 state:idle attr:AudioAttributes: usage=USAGE_ASSISTANCE_SONIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x800 tags= bundle=null sessionId:0

ducked players piids:

faded out players piids:

muted player piids due to call/ring:

banned uids:

muted players (piids) awaiting device connection:

Audio event log: playback activity as reported through PlayerBase
04-11 12:31:30:034 player piid:312543 new AudioAttributes:AudioAttributes: usage=USAGE_NOTIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x800 tags= bundle=null
04-11 12:31:30:567 player piid:312543 state:started DeviceId:0
04-11 12:31:30:639 player piid:312543 state:device DeviceId:2
04-11 12:31:31:888 player piid:312543 state:stopped DeviceId:0
04-11 12:31:31:890 releasing player piid:312543
04-11 12:32:33:814 new player piid:312551 uid/pid:10109/3768 type:android.media.MediaPlayer attr:AudioAttributes: usage=USAGE_UNKNOWN content=CONTENT_TYPE_UNKNOWN flags=0x800 tags= bundle=null session:0
04-11 12:32:33:814 player piid:312551 new AudioAttributes:AudioAttributes: usage=USAGE_NOTIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x800 tags= bundle=null
04-11 12:32:34:340 player piid:312551 state:started DeviceId:0
04-11 12:32:34:412 player piid:312551 state:device DeviceId:2
04-11 12:32:34:821 new player piid:312559 uid/pid:10109/3768 type:android.media.MediaPlayer attr:AudioAttributes: usage=USAGE_UNKNOWN content=CONTENT_TYPE_UNKNOWN flags=0x800 tags= bundle=null session:0
04-11 12:32:34:821 player piid:312559 new AudioAttributes:AudioAttributes: usage=USAGE_NOTIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x800 tags= bundle=null
04-11 12:32:35:347 player piid:312559 state:started DeviceId:0
04-11 12:32:35:348 player piid:312551 state:paused DeviceId:0
04-11 12:32:35:448 releasing player piid:312551
04-11 12:32:35:482 player piid:312559 state:device DeviceId:2
04-11 12:32:36:627 player piid:312559 state:stopped DeviceId:0
04-11 12:32:36:628 releasing player piid:312559
04-11 12:32:38:084 new player piid:312567 uid/pid:10109/3768 type:android.media.MediaPlayer attr:AudioAttributes: usage=USAGE_UNKNOWN content=CONTENT_TYPE_UNKNOWN flags=0x800 tags= bundle=null session:0
04-11 12:32:38:084 player piid:312567 new AudioAttributes:AudioAttributes: usage=USAGE_NOTIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x800 tags= bundle=null
04-11 12:32:38:600 player piid:312567 state:started DeviceId:0
04-11 12:32:38:655 player piid:312567 state:device DeviceId:2
04-11 12:32:39:879 player piid:312567 state:stopped DeviceId:0
04-11 12:32:39:880 releasing player piid:312567
04-11 12:32:50:549 new player piid:312583 uid/pid:10127/6032 type:android.media.MediaPlayer attr:AudioAttributes: usage=USAGE_UNKNOWN content=CONTENT_TYPE_UNKNOWN flags=0x800 tags= bundle=null session:0
04-11 12:32:50:595 new player piid:312591 uid/pid:10127/6032 type:OpenSL ES AudioPlayer (Buffer Queue) attr:AudioAttributes: usage=USAGE_MEDIA content=CONTENT_TYPE_UNKNOWN flags=0x0 tags= bundle=null session:312569
04-11 12:32:50:623 player piid:312591 state:started DeviceId:36
04-11 12:32:50:624 player piid:312591 state:stopped DeviceId:0
04-11 12:32:50:637 player piid:312591 state:started DeviceId:36
04-11 12:32:50:637 player piid:312591 state:stopped DeviceId:0
04-11 12:32:50:637 player piid:312591 state:started DeviceId:36
04-11 12:32:50:637 player piid:312591 state:stopped DeviceId:0
04-11 12:32:50:637 player piid:312591 state:started DeviceId:36
04-11 12:32:50:638 player piid:312591 state:stopped DeviceId:0
04-11 12:32:50:651 player piid:312591 state:started DeviceId:36
04-11 12:32:50:651 player piid:312591 state:stopped DeviceId:0
04-11 12:32:50:651 player piid:312591 state:started DeviceId:36
04-11 12:32:50:651 player piid:312591 state:stopped DeviceId:0
04-11 12:32:50:652 player piid:312591 state:started DeviceId:36
04-11 12:32:50:658 player piid:312591 state:stopped DeviceId:0
04-11 12:32:50:665 player piid:312591 state:started DeviceId:36
04-11 12:32:52:476 player piid:312591 state:stopped DeviceId:0
04-11 12:32:52:689 player piid:312591 state:started DeviceId:36
04-11 12:32:52:693 player piid:312591 state:stopped DeviceId:0
04-11 12:32:52:693 player piid:312591 state:started DeviceId:36
04-11 12:32:52:693 player piid:312591 state:stopped DeviceId:0
04-11 12:32:52:693 player piid:312591 state:started DeviceId:36
04-11 12:32:52:694 player piid:312591 state:stopped DeviceId:0
04-11 12:32:52:700 player piid:312591 state:device DeviceId:36
04-11 12:32:52:707 player piid:312591 state:started DeviceId:36
04-11 12:32:52:708 player piid:312591 state:stopped DeviceId:0
04-11 12:32:52:708 player piid:312591 state:started DeviceId:36
04-11 12:32:52:709 player piid:312591 state:stopped DeviceId:0
04-11 12:32:52:721 player piid:312591 state:started DeviceId:36
04-11 12:32:52:723 player piid:312591 state:stopped DeviceId:0
04-11 12:32:52:723 player piid:312591 state:started DeviceId:36
04-11 12:32:57:607 player piid:312591 state:stopped DeviceId:0
04-11 12:32:57:970 new player piid:312599 uid/pid:10127/6032 type:AAudio attr:AudioAttributes: usage=USAGE_GAME content=CONTENT_TYPE_UNKNOWN flags=0x0 tags= bundle=null session:-1
04-11 12:32:57:971 player piid:312599 state:started DeviceId:36
04-11 12:33:19:933 releasing player piid:312599
04-11 12:33:19:938 releasing player piid:312591
04-11 12:33:20:105 releasing player piid:312583
04-11 12:33:24:195 new player piid:312607 uid/pid:10127/6481 type:android.media.MediaPlayer attr:AudioAttributes: usage=USAGE_UNKNOWN content=CONTENT_TYPE_UNKNOWN flags=0x800 tags= bundle=null session:0
04-11 12:33:24:227 new player piid:312615 uid/pid:10127/6481 type:OpenSL ES AudioPlayer (Buffer Queue) attr:AudioAttributes: usage=USAGE_MEDIA content=CONTENT_TYPE_UNKNOWN flags=0x0 tags= bundle=null session:312593
04-11 12:33:24:255 player piid:312615 state:started DeviceId:36
04-11 12:33:24:258 player piid:312615 state:stopped DeviceId:0
04-11 12:33:24:270 player piid:312615 state:started DeviceId:36
04-11 12:33:24:273 player piid:312615 state:stopped DeviceId:0
04-11 12:33:24:285 player piid:312615 state:started DeviceId:36
04-11 12:33:24:285 player piid:312615 state:stopped DeviceId:0
04-11 12:33:24:285 player piid:312615 state:started DeviceId:36
04-11 12:33:24:298 player piid:312615 state:stopped DeviceId:0
04-11 12:33:24:299 player piid:312615 state:started DeviceId:36
04-11 12:33:26:120 player piid:312615 state:stopped DeviceId:0
04-11 12:33:26:305 player piid:312615 state:started DeviceId:36
04-11 12:33:26:312 player piid:312615 state:stopped DeviceId:0
04-11 12:33:26:312 player piid:312615 state:started DeviceId:36
04-11 12:33:26:313 player piid:312615 state:stopped DeviceId:0
04-11 12:33:26:325 player piid:312615 state:started DeviceId:36
04-11 12:33:26:326 player piid:312615 state:stopped DeviceId:0
04-11 12:33:26:326 player piid:312615 state:started DeviceId:36
04-11 12:33:26:327 player piid:312615 state:stopped DeviceId:0
04-11 12:33:26:340 player piid:312615 state:started DeviceId:36
04-11 12:33:31:232 player piid:312615 state:stopped DeviceId:0
04-11 12:33:31:605 new player piid:312623 uid/pid:10127/6481 type:AAudio attr:AudioAttributes: usage=USAGE_GAME content=CONTENT_TYPE_UNKNOWN flags=0x0 tags= bundle=null session:-1
04-11 12:33:31:609 player piid:312623 state:started DeviceId:36
04-11 12:35:12:425 releasing player piid:312623
04-11 12:35:12:428 releasing player piid:312615
04-11 12:35:12:566 releasing player piid:312607
04-11 12:35:16:594 new player piid:312631 uid/pid:10109/3768 type:android.media.MediaPlayer attr:AudioAttributes: usage=USAGE_UNKNOWN content=CONTENT_TYPE_UNKNOWN flags=0x800 tags= bundle=null session:0
04-11 12:35:16:595 player piid:312631 new AudioAttributes:AudioAttributes: usage=USAGE_NOTIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x800 tags= bundle=null
04-11 12:35:17:108 player piid:312631 state:started DeviceId:0
04-11 12:35:17:149 player piid:312631 state:device DeviceId:2
04-11 12:35:18:406 player piid:312631 state:stopped DeviceId:0
04-11 12:35:18:406 releasing player piid:312631
04-11 12:35:21:509 new player piid:312639 uid/pid:10109/3768 type:android.media.MediaPlayer attr:AudioAttributes: usage=USAGE_UNKNOWN content=CONTENT_TYPE_UNKNOWN flags=0x800 tags= bundle=null session:0
04-11 12:35:21:509 player piid:312639 new AudioAttributes:AudioAttributes: usage=USAGE_NOT 840A IFICATION content=CONTENT_TYPE_SONIFICATION flags=0x800 tags= bundle=null
04-11 12:35:22:044 player piid:312639 state:started DeviceId:0
04-11 12:35:22:084 player piid:312639 state:device DeviceId:2
04-11 12:35:23:348 player piid:312639 state:stopped DeviceId:0
04-11 12:35:23:349 releasing player piid:312639

allowed capture policies:

RecordActivityMonitor dump time: 12:35:39 PM
riid 312575; active? true
no config

Audio event log: recording activity received by AudioService
04-11 12:28:16:919 rec update riid:312511 uid:2000 session:312489 src:REMOTE_SUBMIX not silenced pack:com.android.shell
04-11 12:32:46:378 rec update riid:312575 uid:2000 session:312553 src:REMOTE_SUBMIX not silenced pack:com.android.shell

AudioDeviceBroker:
Message handler (watch for unhandled messages):
Handler (com.android.server.audio.AudioDeviceBroker$BrokerHandler) {be99595} @ 39620232
Looper (AudioDeviceBroker, tid 111) {44646aa}
(Total messages: 0, polling=true, quitting=false)

BECOMING_NOISY_INTENT_DEVICES_SET=
0x400 0x800 0x8000000 0x20000000 0x80 0x100 0x200 0x2000 0x4000 0x4000000 0x20000001 0x20000 0x20000002 0x4 0x8
Preferred devices for strategy:

Connected devices:

APM Connected device (A2DP sink only):

devices:

Communication route clients:

Computed Preferred communication device: null

Applied Preferred communication device: null
Active communication device: AudioDeviceAttributes: role:output type:speaker addr: name:redroid13_arm64 profiles:[] descriptors:[]
mCommunicationStrategyId: 15
mAccessibilityStrategyId: 18

mAudioModeOwner: AudioModeInfo: mMode=MODE_NORMAL, mPid=0, mUid=0

mBluetoothHeadset: null
mBluetoothHeadsetDevice: null
mScoAudioState: SCO_STATE_INACTIVE
mScoAudioMode: SCO_MODE_VIRTUAL_CALL

mHearingAid: null

mLeAudio: null
mA2dp: null
mAvrcpAbsVolSupported: false

SoundEffects:
Message handler (watch for unhandled messages):
Handler (com.android.server.audio.SoundEffectsHelper$SfxHandler) {cf0129b} @ 39620232
Looper (AS.SfxWorker, tid 113) {6c55638}
(Total messages: 0, polling=true, quitting=false)
Default attenuation (dB): -6
Audio event log: Sound Effects Loading
04-11 12:26:16:139 effects loading started
04-11 12:26:16:455 effect Effect_Tick.ogg loaded
04-11 12:26:16:456 effect KeypressStandard.ogg loaded
04-11 12:26:16:498 effect KeypressDelete.ogg loaded
04-11 12:26:16:498 effect KeypressSpacebar.ogg loaded
04-11 12:26:16:530 effect KeypressReturn.ogg loaded
04-11 12:26:16:532 effect KeypressInvalid.ogg loaded
04-11 12:26:16:532 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
04-11 12:26:16:135 onUpdateCommunicationRoute, preferredCommunicationDevice: null eventSource: resetBluetoothSco
04-11 12:26:16:136 removePreferredDevicesForStrategySync, strategy: 15
04-11 12:26:16:136 removePreferredDevicesForStrategySync, strategy: 18
04-11 12:26:19:138 onUpdateCommunicationRoute, preferredCommunicationDevice: null eventSource: resetBluetoothSco
04-11 12:26:19:138 removePreferredDevicesForStrategySync, strategy: 15
04-11 12:26:19:138 removePreferredDevicesForStrategySync, strategy: 18

Audio event log: force use (logged before setForceUse() is executed)
04-11 12:26:15:476 setForceUse(FOR_SYSTEM, FORCE_NONE) due to AudioService ctor
04-11 12:26:15:478 setForceUse(FOR_ENCODED_SURROUND, FORCE_NONE) due to readPersistedSettings
04-11 12:26:15:479 setForceUse(FOR_DOCK, FORCE_DIGITAL_DOCK) due to readDockAudioSettings
04-11 12:26:15:608 setForceUse(FOR_VIBRATE_RINGING, FORCE_NONE) due to muteRingerModeStreams() from u/pid:1000/245
04-11 12:26:16:139 setForceUse(FOR_VIBRATE_RINGING, FORCE_NONE) due to muteRingerModeStreams() from u/pid:1000/245
04-11 12:26:16:861 setForceUse(FOR_DOCK, FORCE_DIGITAL_DOCK) due to readDockAudioSettings
04-11 12:26:16:917 setForceUse(FOR_ENCODED_SURROUND, FORCE_NONE) due to readPersistedSettings
04-11 12:26:16:917 setForceUse(FOR_DOCK, FORCE_DIGITAL_DOCK) due to readDockAudioSettings
04-11 12:26:16:940 setForceUse(FOR_VIBRATE_RINGING, FORCE_NONE) due to muteRingerModeStreams() from u/pid:1000/245
04-11 12:26:19:139 setForceUse(FOR_VIBRATE_RINGING, FORCE_NONE) due to muteRingerModeStreams() from u/pid:1000/245

Audio event log: volume changes (logged when command received by AudioService)
04-11 12:26:15:505 sending VOLUME_CHANGED stream:STREAM_TTS index:15 alias:STREAM_MUSIC
04-11 12:26:15:508 sending VOLUME_CHANGED stream:STREAM_ACCESSIBILITY index:15 alias:STREAM_MUSIC
04-11 12:26:15:511 sending VOLUME_CHANGED stream:STREAM_ASSISTANT index:15 alias:STREAM_MUSIC
04-11 12:26:16:953 sending VOLUME_CHANGED stream:STREAM_TTS index:15 alias:STREAM_MUSIC
04-11 12:26:16:955 sending VOLUME_CHANGED stream:STREAM_ACCESSIBILITY index:15 alias:STREAM_MUSIC
04-11 12:26:16:957 sending VOLUME_CHANGED stream:STREAM_ASSISTANT index:15 alias:STREAM_MUSIC
04-11 12:32:57:910 sending VOLUME_CHANGED stream:STREAM_DTMF index:5 alias:STREAM_RING

Supported System Usages:
USAGE_CALL_ASSISTANT

Spatial audio:
mHasSpatializerEffect:false (effect present)
isSpatializerEnabled:false (routing dependent)
SpatializerHelper:
mState:1
mSpatLevel:0
mCapableSpatLevel:0
mIsHeadTrackingSupported:false
supported head tracking modes:
mDesiredHeadTrackingMode:HEAD_TRACKING_MODE_RELATIVE_WORLD
mActualHeadTrackingMode:HEAD_TRACKING_MODE_UNSUPPORTED
headtracker available:false
supports binaural:false / transaural:false
mSpatOutput:0
Audio event log: spatial audio
04-11 12:26:15:533 init effectExpected=false
04-11 12:26:15:533 init(): setting state to STATE_NOT_SUPPORTED due to effect not expected
04-11 12:26:15:533 setFeatureEnabled(false) was featureEnabled:false

AudioSystemAdapter:
last cache clear time: 04-11 12:32:46:378
mDevicesForAttrCache:
AudioAttributes: usage=USAGE_ASSISTANCE_ACCESSIBILITY content=CONTENT_TYPE_UNKNOWN flags=0x800 tags= bundle=null forVolume: true stream: STREAM_ACCESSIBILITY(10)
AudioDeviceAttributes: role:output type:remote_submix addr:0 name: profiles:[] descriptors:[]
AudioAttributes: usage=USAGE_ASSISTANCE_SONIFICATION content=CONTENT_TYPE_UNKNOWN flags=0x800 tags= bundle=null forVolume: true stream: STREAM_SYSTEM(1)
AudioDeviceAttributes: role:output type:remote_submix addr:0 name: profiles:[] descriptors:[]
AudioAttributes: usage=USAGE_VOICE_COMMUNICATION content=CONTENT_TYPE_SPEECH flags=0x804 tags= bundle=null forVolume: true stream: STREAM_VOICE_CALL(0)
AudioDeviceAttributes: role:output type:speaker addr: name: profiles:[] descriptors:[]
AudioAttributes: usage=USAGE_ASSISTANCE_SONIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x801 tags= bundle=null forVolume: true stream: STREAM_SYSTEM(1)
AudioDeviceAttributes: role:output type:remote_submix addr:0 name: profiles:[] descriptors:[]
AudioAttributes: usage=USAGE_ALARM content=CONTENT_TYPE_UNKNOWN flags=0x800 tags= bundle=null forVolume: true stream: STREAM_ALARM(4)
AudioDeviceAttributes: role:output type:speaker addr: name: profiles:[] descriptors:[]
AudioAttributes: usage=USAGE_ASSISTANT content=CONTENT_TYPE_SPEECH flags=0x800 tags= bundle=null forVolume: true stream: STREAM_ASSISTANT(11)
AudioDeviceAttributes: role:output type:remote_submix addr:0 name: profiles:[] descriptors:[]
AudioAttributes: usage=USAGE_VOICE_COMMUNICATION_SIGNALLING content=CONTENT_TYPE_UNKNOWN flags=0x800 tags= bundle=null forVolume: true stream: STREAM_DTMF(8)
AudioDeviceAttributes: role:output type:remote_submix addr:0 name: profiles:[] descriptors:[]
AudioAttributes: usage=USAGE_NOTIFICATION_RINGTONE content=CONTENT_TYPE_UNKNOWN flags=0x800 tags= bundle=null forVolume: true stream: STREAM_RING(2)
AudioDeviceAttributes: role:output type:speaker addr: name: profiles:[] descriptors:[]
AudioAttributes: usage=USAGE_NOTIFICATION content=CONTENT_TYPE_UNKNOWN flags=0x800 tags= bundle=null forVolume: true stream: STREAM_NOTIFICATION(5)
AudioDeviceAttributes: role:output type:speaker addr: name: profiles:[] descriptors:[]
AudioAttributes: usage=USAGE_UNKNOWN content=CONTENT_TYPE_SONIFICATION flags=0x808 tags= bundle=null forVolume: true stream: STREAM_MUSIC(3)
AudioDeviceAttributes: role:output type:speaker addr: name: profiles:[] descriptors:[]
AudioAttributes: usage=USAGE_VOICE_COMMUNICATION content=CONTENT_TYPE_UNKNOWN flags=0x800 tags= bundle=null forVolume: true stream: STREAM_VOICE_CALL(0)
AudioDeviceAttributes: role:output type:speaker addr: name: profiles:[] descriptors:[]
AudioAttributes: usage=USAGE_MEDIA content=CONTENT_TYPE_UNKNOWN flags=0x800 tags= bundle=null forVolume: true stream: STREAM_MUSIC(3)
AudioDeviceAttributes: role:output type:remote_submix addr:0 name: profiles:[] descriptors:[]
AudioAttributes: usage=USAGE_ASSISTANCE_SONIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x800 tags= bundle=null forVolume: true stream: STREAM_SYSTEM(1)
AudioDeviceAttributes: role:output type:remote_submix addr:0 name: profiles:[] descriptors:[]
AudioAttributes: usage=USAGE_UNKNOWN content=CONTENT_TYPE_UNKNOWN flags=0x804 tags= bundle=null forVolume: true stream: STREAM_VOICE_CALL(0)
AudioDeviceAttributes: role:output type:speaker addr: name: profiles:[] descriptors:[]
AudioAttributes: usage=USAGE_ASSISTANCE_ACCESSIBILITY content=CONTENT_TYPE_SPEECH flags=0x800 tags= bundle=null forVolume: true stream: STREAM_ACCESSIBILITY(10)
AudioDeviceAttributes: role:output type:remote_submix addr:0 name: profiles:[] descriptors:[]
AudioAttributes: usage=USAGE_UNKNOWN content=CONTENT_TYPE_UNKNOWN flags=0x808 tags= bundle=null forVolume: true stream: STREAM_MUSIC(3)
AudioDeviceAttributes: role:output type:speaker addr: name: profiles:[] descriptors:[]
AudioAttributes: usage=USAGE_NOTIFICATION content=CONTENT_TYPE_SONIFICATION flags=0x800 tags= bundle=null forVolume: true stream: STREAM_NOTIFICATION(5)
AudioDeviceAttributes: role:output type:speaker addr: name: profiles:[] descriptors:[]
AudioAttributes: usage=USAGE_NOTIFICATION_RINGTONE content=CONTENT_TYPE_SONIFICATION flags=0x800 tags= bundle=null forVolume: true stream: STREAM_RING(2)
AudioDeviceAttributes: role:output type:speaker addr: name: profiles:[] descriptors:[]
AudioAttributes: usage=USAGE_VOICE_COMMUNICATION content=CONTENT_TYPE_SPEECH flags=0x800 tags= bundle=null forVolume: true stream: STREAM_VOICE_CALL(0)
AudioDeviceAttributes: role:output type:speaker addr: name: profiles:[] descriptors:[]
AudioAttributes: usage=USAGE_VOICE_COMMUNICATION_SIGNALLING content=CONTENT_TYPE_SONIFICATION flags=0x800 tags= bundle=null forVolume: true stream: STREAM_DTMF(8)
AudioDeviceAttributes: role:output type:remote_submix addr:0 name: profiles:[] descriptors:[]
AudioAttributes: usage=USAGE_ALARM content=CONTENT_TYPE_SONIFICATION flags=0x800 tags= bundle=null forVolume: true stream: STREAM_ALARM(4)
AudioDeviceAttributes: role:output type:speaker addr: name: profiles:[] descriptors:[]
AudioAttributes: usage=USAGE_UNKNOWN content=CONTENT_TYPE_UNKNOWN flags=0x801 tags= bundle=null forVolume: true stream: STREAM_SYSTEM(1)
AudioDeviceAttributes: role:output type:remote_submix addr:0 name: profiles:[] descriptors:[]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0