He visto este problema en Nexus 4 y Nexus 5. El Bluetooth se enciende de forma inesperada. Se puede apagar, pero volverá aproximadamente un minuto más tarde.
Buscando en Google, parece que esto podría deberse a una aplicación que funciona mal, pero no parece haber una buena solución para averiguar qué aplicación.
¿Hay alguna manera de averiguar cuál es el responsable de reactivar Bluetooth todo el tiempo?
Si es de alguna utilidad, capturé parte de la salida de adb después de deshabilitar Bluetooth.
Al deshabilitar:
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
Entonces, momentos después:
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
Fue la aplicación Firechat para mí. Será una de las aplicaciones más recientes que instaló si el Bluetooth comenzó a apagarse en ninguna parte.
Tuve el mismo síntoma y lo resolví al deshabilitar "Escaneo Bluetooth" en los servicios de ubicación:
Puede averiguar qué está activando bluetooth yendo a Configuración -> Conexiones -> Bluetooth -> "..." -> Historial de control de Bluetooth.
En mi caso, fue la aplicación de alquiler de bicicletas para París "Velib" y, lamentablemente, parece que no hay forma de evitar que active el bluetooth a través de la configuración de permisos.
Mi teléfono es un Samsung GS7 con Android 7.0.
Yo tuve el mismo problema. La aplicación llamada Automatic que se conecta a un dongle que se conecta al puerto OBD de su automóvil fue la culpable. Odio la aplicación. Solo lo uso ocasionalmente para leer los códigos del motor de verificación. Automático desinstalado y todo está bien. Por lo general, es una aplicación que se comporta mal la culpable.
Yo tuve el mismo problema. Esto funcionó para mí. Configuración ~Aplicación~Todas~Bluetooth. El botón de desactivación no estaba resaltado, así que borré todos los datos. Hice lo mismo para compartir bluetooth. Luego intenté encender y apagar el Bluetooth varias veces para ver si permanecía apagado y así fue.
Tuve el mismo problema y resultó ser una aplicación que contenía códigos incorrectos que seguían buscando dispositivos Bluetooth en segundo plano incluso si la aplicación estaba cerrada (era una aplicación de mensajería BT).
Rushnosh
adb shell dumpsys meminfo
.. También puede ser un paquete que instaló en sus teléfonos que podría ser el culpable. FYI: realicé las mismas pruebas en mi Nexus 5: teléfono rooteado con ROM estándar. y todo funciona para mí ... sin embargo, encuentro esta línea de registro interesante donde el estado cambia de 13 -> 10 cuando detuve el servicio de Bluetooth ...D/BluetoothManagerService( 1683): Bluetooth State Change Intent: 13 -> 10
andypaxo
Rushnosh
Rushnosh
Rushnosh
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:
No sé si esto está relacionado, pero al reiniciar su teléfono, realice la prueba de encendido/apagado de BT para ver si el teléfono normal funciona, conecte su teclado para ver si su logitec no está manejando la desconexión.andypaxo
Rushnosh
andypaxo
Rushnosh
Rushnosh