"main" prio=5 tid=1 Native group="main" sCount=1 ucsCount=0 flags=1 obj=0x729ad2c8…
- User
"main" prio=5 tid=1 Native | group="main" sCount=1 ucsCount=0 flags=1 obj=0x729ad2c8 self=0xb400007411c14380 | sysTid=3147 nice=-10 cgrp=top-app sched=0/0 handle=0x75b2ea44f8 | state=S schedstat=( 11657502767 2509635142 14019 ) utm=510 stm=655 core=6 HZ=100 | stack=0x7ff28f3000-0x7ff28f5000 stackSize=8188KB | held mutexes= native: #00 pc 000000000004eb30 /apex/com.android.runtime/lib64/bionic/libc.so (syscall+32) (BuildId: bf5f1ce73f89cca7d6a062eb7877e86a) native: #01 pc 00000000003a9ae4 /apex/com.android.art/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+140) (BuildId: 12e00d030bcfeb51f978c01791e0cd24) native: #02 pc 000000000078699c /apex/com.android.art/lib64/libart.so (artJniMethodEnd+220) (BuildId: 12e00d030bcfeb51f978c01791e0cd24) native: #03 pc 000000000020facc /apex/com.android.art/lib64/libart.so (art_jni_method_end+12) (BuildId: 12e00d030bcfeb51f978c01791e0cd24) at android.os.BinderProxy.transactNative(Native method) at android.os.BinderProxy.transact(BinderProxy.java:584) at android.bluetooth.IBluetoothProxy.isTwsPlusDevice(IBluetooth.java:3402) at android.bluetooth.BluetoothDevice.isTwsPlusDevice(BluetoothDevice.java:2507) at com.android.settingslib.bluetooth.CachedBluetoothDevice.getConnectionSummary(CachedBluetoothDevice.java:1251) at com.android.settingslib.bluetooth.CachedBluetoothDevice.getConnectionSummary(CachedBluetoothDevice.java:1189) at com.android.settings.bluetooth.BluetoothDevicePreference.onPreferenceAttributesChanged(BluetoothDevicePreference.java:223) at com.android.settings.bluetooth.BluetoothDevicePreferenceDeviceFoundHandler.onReceive(BluetoothEventManager.java:413) at com.android.settingslib.bluetooth.BluetoothEventManagerReceiverDispatchergetRunnableandroid-app-LoadedApkArgs(LoadedApk.java:1790) at android.app.LoadedApkArgs$$ExternalSyntheticLambda0.run(unavailable:2) at android.os.Handler.handleCallback(Handler.java:942) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:7930) at java.lang.reflect.Method.invoke(Native method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:942) 分析一下
- Assistant
这是一个关于Android应用程序的主线程的调用堆栈跟踪。下面是对各部分的分析:
-
native行: 这些行显示了使用C/C++编写的底层代码的调用。在这种情况下,应用程序正在调用位于libc.so和libart.so库中的函数。 -
android.os.BinderProxy.transactNative: 这是一个Native方法,用于在Android应用程序之间进行跨进程通信(IPC)。 -
BinderProxy.transact: 这是一个Java方法,用于处理IPC请求。 -
IBluetooth$Stub$Proxy.isTwsPlusDevice: 这是一个代理方法,用于检查蓝牙设备是否为TWS Plus设备。 -
BluetoothDevice.isTwsPlusDevice: 这是一个Java方法,调用蓝牙设备类中的方法来检查是否为TWS Plus设备。 -
CachedBluetoothDevice.getConnectionSummary: 这是一个Java方法,用于获取蓝牙设备的连接摘要。 -
BluetoothDevicePreference.onPreferenceAttributesChanged: 这是一个Java方法,当蓝牙设备的属性发生变化时调用。 -
CachedBluetoothDevice.dispatchAttributesChanged: 这是一个Java方法,用于调度蓝牙设备的属性更改事件。 -
BluetoothEventManager$DeviceFoundHandler.onReceive: 这是一个Java方法,在收到蓝牙设备发现事件时被调用。 -
BluetoothEventManager$BluetoothBroadcastReceiver.onReceive: 这是一个Java方法,用于处理蓝牙广播事件。
-