Cannot start mic in background

Hi all,
I dev app using this package(Android). When I connected app with bluetooth or headset and use external PTT to start call, but I have problem when start call in background, Mic cannot start: Operation not started: uid=10352 pkg=com.walkietalkieapp(null) op=RECORD_AUDIO

. Here is logcat:

2023-04-10 09:36:45.618 13481-13594 org.webrtc.Logging      com.walkietalkieapp                  I  WebRtcAudioRecordExternal: AudioRecord: session ID: 750025, channels: 1, sample rate: 48000
2023-04-10 09:36:45.618 13481-13594 org.webrtc.Logging      com.walkietalkieapp                  I  WebRtcAudioRecordExternal: AudioRecord: buffer size in frames: 3840
2023-04-10 09:36:45.619 13481-13594 org.webrtc.Logging      com.walkietalkieapp                  I  WebRtcAudioRecordExternal: Number of active recording sessions: 0
2023-04-10 09:36:45.620 13481-13594 org.webrtc.Logging      com.walkietalkieapp                  I  WebRtcAudioRecordExternal: startRecording
2023-04-10 09:36:45.625  1853-9077  AppOps                  pid-1853                             E  Operation not started: uid=10352 pkg=com.walkietalkieapp(null) op=RECORD_AUDIO
2023-04-10 09:36:45.641 13481-13594 org.webrtc.Logging      com.walkietalkieapp                  I  WebRtcAudioRecordExternal: scheduleLogRecordingConfigurationsTask
2023-04-10 09:36:45.650 13481-15005 org.webrtc.Logging      com.walkietalkieapp                  I  WebRtcAudioRecordExternal: AudioRecordThread@[name=AudioRecordJavaThread, id=280]
2023-04-10 09:36:45.650 13481-15005 org.webrtc.Logging      com.walkietalkieapp                  I  WebRtcAudioRecordExternal: doAudioRecordStateCallback: START

How can I start call in background with mic?
Thank you.
Vu.