HBiSoft / HBRecorder

Lightweight screen recording Android library
MIT License
402 stars 137 forks source link

Audio recording silenced upon Play Store app installation #148

Closed rkenan closed 12 months ago

rkenan commented 1 year ago

Describe the bug

During the installation of a different application from the Play Store, an issue arises where audio recording functionality becomes silenced. There could be a audio permission conflict that causes the audio to stop working.

Log

log.txt

`

2023-08-29 11:53:46.811 1246-15535 QC2C2DEngine media.hwcodec I calcYSize: unsupported or RGB color format, RGBA8888(1) 2023-08-29 11:53:46.828 1246-15535 QC2C2DEngine media.hwcodec I calcYSize: unsupported or RGB color format, RGBA8888(1) 2023-08-29 11:53:46.840 1225-8088 sensors-hal and....sensors@2.0-service.multihal I handle_sns_std_sensor_event:231, [SSC_LIGHT] P: 43(43),als:169,green:36,ir:4,delta_avg:0,delta_max:94,stdev:0,stdev_per_4sample:1,magig_code or itime:384 2023-08-29 11:53:46.844 1246-15535 QC2C2DEngine media.hwcodec I calcYSize: unsupported or RGB color format, RGBA8888(1)

2023-08-29 11:53:46.844 1505-7216 AppOps system_server E evalMode() Foreground Record OP returned IGNORE, uid - 10980, capability - 8 2023-08-29 11:53:46.845 1291-1751 AudioPolicyService audioserver I App op 27 missing, silencing record AttributionSourceState{pid: 15457, uid: 10980, packageName: com.hbisoft.hbrecorderexample, attributionTag: (null), token: {no toString() implemented}, renouncedPermissions: [], next: []}

2023-08-29 11:53:46.862 1246-15535 QC2C2DEngine media.hwcodec I calcYSize: unsupported or RGB color format, RGBA8888(1) 2023-08-29 11:53:46.868 3282-4415 ViewRootIm...orOverlay] com.android.systemui I dispatchDetachedFromWindow 2023-08-29 11:53:46.871 1505-7260 InputManager-JNI system_server W Input channel object '1e63692 ScreenDecorOverlay (client)' was disposed without first being removed with the input manager! 2023-08-29 11:53:46.873 1505-7260 WindowManager system_server I Destroying surface Surface(name=ScreenDecorOverlay$_3282)/@0x6b21ba2 called by com.android.server.wm.WindowStateAnimator.destroySurface:942 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:536 com.android.server.wm.WindowState.removeImmediately:2969 com.android.server.wm.WindowState.removeIfPossible:3227 com.android.server.wm.WindowState.removeIfPossible:3040 com.android.server.wm.WindowManagerService.removeWindow:2282 com.android.server.wm.Session.remove:236 android.view.IWindowSession$Stub.onTransact:743 2023-08-29 11:53:46.875 1505-1607 Looper system_server W Drained

`

Can it be reproduced in demo app Yes

How to reproduce

Was tested also with custom settings ON using multiple different settings options.

HBRecorder version 3.0.1

Device information

HBiSoft commented 12 months ago

I can confirm this, but I have no idea why this is happening. I suggest you open an issue on issuetracker since there is nothing I can you on the library side to fix this.

rkenan commented 12 months ago

I can confirm this, but I have no idea why this is happening. I suggest you open an issue on issuetracker since there is nothing I can you on the library side to fix this.

hi , thanks for the reply