集成cocos以后,音频应用后台播放无故停播

cocos creator 1.10.2, 2.4.2 均会出现
华为P30
Android系统:10.1

最近遇到一个很诡异的问题,集成了cocos sdk的app,cocos未进行初始化,so未load。后台播放音频,无故被停。播放音频的player是一个单独的进程,foreground service的形式在后台播放,防止被系统kill。以前都没问题的,集成了cocos就有这个问题了。把libcocos2djs.so移除,打的包又没问题了。。。。。。
下面是log,6961 player进程被冻结freezer

09-05 00:04:57.116 I/AudioFlinger( 740): pid(6961):mVol=1.000000, tVol=0.010000, pVol=1.000000, sVol=1.000000, scale=1.000000, output=13, mDevice=0x2, mStreamType=3
09-05 00:04:57.119 D/asd_out_fwk( 740): L = -47.418663db, R = -47.418663db, Device = 0x2
09-05 00:04:57.189 I/Pged-IPgedBinderService( 898): *action is 1, pid num is 3
09-05 00:04:57.189 I/Pged-Freezer( 898): freezePids
09-05 00:04:57.189 I/Pged-Freezer( 898): freezePids pid 6961 binder called 321 ms ago by 11637, ignor it:1
09-05 00:04:57.189 I/Pged-Freezer( 898): Freeze process: 11637
09-05 00:04:57.190 I/Pged-Freezer( 898): Freeze process: 6961
09-05 00:04:57.203 I/Pged ( 898): Destroyed 10 sockets for uid:10214 in 2.3 ms
09-05 00:04:57.318 D/asd_out_fwk( 740): L = -45.173355db, R = -45.173355db, Device = 0x2
09-05 00:04:57.337 D/DlbDap2Process( 710): process() called [8732000] times
09-05 00:04:57.337 D/DlbDap2Process( 710): process in: cap=256 ch=2 stride=8 samplesize=4
09-05 00:04:57.337 D/DlbDap2Process( 710): process out: cap=256 ch=2 stride=8 samplesize=4
09-05 00:04:57.457 W/AudioTrackShared( 740): tallyUnderrunFrames(441) at uf = 441, bump mUnderrunCount = 1 for Id(769)
09-05 00:04:57.457 E/asd_out_fwk( 740): data is NULL and there is no volume data
09-05 00:04:57.472 D/DlbDapBufferAdapter( 710): checkPopAndMuteOutput(), input change between non-silent and silent, mIsSilentInput=1, mLastIsSilentInput=0
09-05 00:04:57.504 D/asd_out_fwk( 740): L = -45.713468db, R = -45.713468db, Device = 0x2
09-05 00:04:57.504 D/asd_out_fwk( 740): 1->0 volume_FrameCount 4528, Device = 0x2
09-05 00:04:57.882 D/asd_out_fwk( 740): L = [0], R = [0], continus 20 times, Device = 0x2
09-05 00:04:57.941 I/AudioFlinger( 740): BUFFER TIMEOUT: remove(769) from active list on thread notMTK 0x787a13a940
09-05 00:04:57.941 I/AudioFlinger( 740): stop output session(6601) pid(6961)
09-05 00:04:57.944 I/chatty ( 2290): uid=1000(system) Binder:2290_9 expire 1 line
09-05 00:04:58.030 I/chatty ( 1271): uid=1000 system_server expire 2 lines
09-05 00:04:58.033 I/chatty ( 1271): uid=1000 system_server expire 2 lines
09-05 00:04:58.115 I/audio_hw_primary( 710): update stream types 0
09-05 00:04:58.116 I/audio_hw_effect( 710): get streamType fail: -2
09-05 00:04:58.117 I/APM_AudioPolicyManager( 740): stopOutput() output 13, stream 3, session 6601, portId 731
09-05 00:04:58.117 I/APM_AudioPolicyManager( 740): getNewOutputDevices selected devices AUDIO_DEVICE_NONE connectdeDevices(11003)
09-05 00:04:58.117 I/APM_AudioPolicyManager( 740): setOutputDevices device AUDIO_DEVICE_NONE delayMs 240 force 0 outputDesc 13 from stopSource
09-05 00:04:58.117 D/AudioPolicyManagerCustomBase( 740): virtual audio log:getDeviceForOutVirtualAudio,after instead device 2
09-05 00:04:58.118 I/APM_AudioPolicyManager( 740): setOutputDevices setting same device AUDIO_DEVICE_NONE or null device, force=0, patch handle=6
09-05 00:04:58.118 D/AudioPolicyManagerCustomBase( 740): virtual audio log:getDeviceForOutVirtualAudio,after instead device 2
09-05 00:04:58.118 I/APM_AudioPolicyManager( 740): getNewOutputDevices selected devices AUDIO_DEVICE_NONE connectdeDevices(11003)
09-05 00:04:58.118 D/APM::AudioOutputDescriptor( 740): stop, profile name: primary out, curActiveCount: 0
09-05 00:04:58.119 I/virtual_btn_hal( 710): audio is off