上一篇文章介绍了 Radio 开发中获取音频补丁的相关流程,这一篇来看一下获取流程中出现的一个 Bug 分析
一、异常Log分析
1、Log内容
收到这样一份 ANR 异常Log:
"main" prio=5 tid=1 Native| group="main" sCount=1 dsCount=0 flags=1 obj=0xxxxx self=0xxxxx| sysTid=xxxx nice=0 cgrp=default sched=0/0 handle=0xxxxx| state=S schedstat=( xxx xxx xxx ) utm=7 stm=3 core=2 HZ=100| stack=0xxxx-0xxxx stackSize=8192KB| held mutexes=native: #00 pc 00000000000xxxxx /apex/com.android.runtime/lib64/bionic/libc.so (nanosleep+8)native: #01 pc 00000000000xxxxx /apex/com.android.runtime/lib64/bionic/libc.so (usleep+76)native: #02 pc 00000000000xxxxx /system/lib64/libbinder.so (android::ServiceManagerShim::getService(android::String16 const&) const+324)native: #03 pc 00000000000xxxxx /system/lib64/libaudioclient.so (android::AudioSyst