我在Nexus 4和Nexus 5上看到了此问题。蓝牙已意外打开。可以关闭它,但是一分钟后会回来。
到处搜寻,看来这可能是由于应用程式行为不当所致,但似乎找不到找到哪个应用程式的好方法。
有没有办法找出什么原因一直导致蓝牙重新激活?
如果有什么用,我在禁用蓝牙后捕获了一些adb输出。
禁用时:
D/BluetoothManagerService( 578): disable(): mBluetooth = android.bluetooth.IBluetooth$Stub$Proxy@42d29fa0 mBinding = false
D/BluetoothManagerService( 578): Message: 2
D/BluetoothManagerService( 578): Sending off request.
D/BluetoothAdapterState(23958): CURRENT_STATE=ON, MESSAGE = USER_TURN_OFF
D/BluetoothAdapterProperties(23958): Setting state to 13
I/BluetoothAdapterState(23958): Bluetooth adapter state changed: 12-> 13
D/BluetoothAdapterService(23958): Broadcasting updateAdapterState() to 1 receivers.
D/BluetoothAdapterProperties(23958): onBluetoothDisable()
I/BluetoothAdapterState(23958): Entering PendingCommandState State: isTurningOn()=false, isTurningOff()=true
D/BluetoothManagerService( 578): Message: 60
D/BluetoothManagerService( 578): MESSAGE_BLUETOOTH_STATE_CHANGE: prevState = 12, newState=13
D/BluetoothManagerService( 578): Bluetooth State Change Intent: 12 -> 13
D/BluetoothMapService(23958): onReceive
D/BluetoothMapService(23958): STATE_TURNING_OFF
D/BluetoothMapService(23958): MAP Service closeService in
I/BtOppRfcommListener(23958): stopping Accept Thread
I/CompanionService(13584): bluetoothStateChangeReceiver action = android.bluetooth.adapter.action.STATE_CHANGED
D/CachedBluetoothDevice(14368): Clearing all connection state for dev:Bose SoundLink Wireless Mobile speaker
D/CachedBluetoothDevice(14368): Clearing all connection state for dev:ANDY
D/CachedBluetoothDevice(14368): Clearing all connection state for dev:obd2ecu
D/CachedBluetoothDevice(14368): Clearing all connection state for dev:Glass 6014
D/CachedBluetoothDevice(14368): Clearing all connection state for dev:P311
D/CachedBluetoothDevice(14368): Clearing all connection state for dev:Logitech MX5000 Keyboard
W/ContextImpl(14368): Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1487 android.content.ContextWrapper.startService:494 android.content.ContextWrapper.startService:494 com.android.set
tings.bluetooth.DockEventReceiver.beginStartingService:134 com.android.settings.bluetooth.DockEventReceiver.onReceive:115
D/DockEventReceiver(14368): finishStartingService: stopping service
D/BluetoothPbap(14368): Proxy object disconnected
D/PbapServerProfile(14368): Bluetooth service disconnected
W/BluetoothAdapterState(23958): Timeout will setting scan mode..Continuing with disable...
D/BluetoothAdapterState(23958): CURRENT_STATE=PENDING, MESSAGE = BEGIN_DISABLE, isTurningOn=false, isTurningOff=true
E/bt-btif (23958): btif_disable_bluetooth : not yet enabled
然后,片刻之后:
D/BluetoothAdapterState(23958): CURRENT_STATE=PENDING, MESSAGE = DISABLE_TIMEOUT, isTurningOn=false, isTurningOff=true
E/BluetoothAdapterState(23958): Error disabling Bluetooth
D/BluetoothAdapterProperties(23958): Setting state to 12
I/BluetoothAdapterState(23958): Bluetooth adapter state changed: 13-> 12
D/BluetoothAdapterService(23958): Broadcasting updateAdapterState() to 1 receivers.
D/BluetoothManagerService( 578): Message: 60
D/BluetoothManagerService( 578): MESSAGE_BLUETOOTH_STATE_CHANGE: prevState = 13, newState=12
D/BluetoothManagerService( 578): Broadcasting onBluetoothStateChange(true) to 13 receivers.
D/BluetoothPan( 578): onBluetoothStateChange(on) call bindService
I/BluetoothAdapterState(23958): Entering On State
@Rushnosh,是的,这是两台设备上的现货Google Android。稍后我将进行内存转储,并将从中找到的内容添加到问题中。
—
andypaxo 2014年
好的,如果可能的话,还有Andriod构建版本吗?
—
Rushnosh 2014年
为了回答一些问题,我有Android 4.4.4,构建KTU84P。Logitech键盘距离现在只有几公里,因此,除非我真的低估了蓝牙的功能,否则应该不会造成问题。(Nexus 5也从未见过Logitech)。另外-谢谢您到目前为止的时间...非常感谢!
—
andypaxo 2014年
抱歉,昨晚时间用完了。我重新启动,现在问题消失了!这意味着我们没有得到什么原因的答案。如果/问题再次出现,我将在电话上进行测试。感谢您的指导!
—
andypaxo 2014年
adb shell dumpsys meminfo
..也可能是您在手机上安装的软件包,这可能是罪魁祸首。仅供参考-我在带有备用ROM的Nexus 5-植根手机上进行了相同的测试。一切都为我工作..但是,我发现此日志行很有趣,当我停止蓝牙服务时状态从13-> 10改变了–D/BluetoothManagerService( 1683): Bluetooth State Change Intent: 13 -> 10