Android Bluetooth stuck in BLE_TURNING_ON: the com.android.bluetooth system package had been disabled

A phone’s Bluetooth stopped working. The Quick Settings tile said on, nothing could pair, and toggling it or rebooting changed nothing. The radio was fine. The app that implements the Bluetooth stack had been disabled, and nothing in the UI says so.

TL;DR — If adb shell dumpsys bluetooth_manager shows State: BLE_TURNING_ON and stays there, check adb shell pm list packages -d for com.android.bluetooth. If it is listed, adb shell pm enable com.android.bluetooth brings Bluetooth back without a reboot.

The setup

On recent Android versions, Bluetooth is split in two. A system service, BluetoothManagerService, runs inside system_server and owns the on/off state. The actual stack (profiles, pairing, the code that talks to the chip) is an ordinary-looking app, com.android.bluetooth, shipped in its own updatable APEX module (com.android.bt). When you switch Bluetooth on, the manager binds to that app and waits for it to come up, going through BLE_TURNING_ON to ON.

Packages, system ones included, can be disabled per user with pm disable-user. Debloating scripts and « package disabler » tools do exactly that. The phone here was a Samsung on Android 17, connected over USB with debugging on.

What I expected

A toggle that says on, and a device that can’t see anything, usually means a hardware or firmware problem: a stuck chip, a corrupted pairing database, a bad update. I expected to clear the Bluetooth app’s data or reboot, and if that failed, to blame the radio.

What actually happens

The manager’s own dump shows it waiting forever:

$ adb shell dumpsys bluetooth_manager
Bluetooth Status:
  State:         BLE_TURNING_ON
  Name:          (device name)
  Inner app:     com.android.bluetooth

Exception occurred while dumping:
java.lang.NullPointerException: Parameter specified as non-null is null:
  method com.android.bluetooth.util.Text.elapsedString, parameter <this>

The NullPointerException is a red herring: the dump code crashes because the stack never recorded a start time. The rest of the evidence:

  • settings get global bluetooth_on returned 1. As far as the system was concerned, the user wanted Bluetooth on.
  • ps -A showed the vendor HAL process (android.hardware.bluetooth@1.1-service-qti) but no com.android.bluetooth process at all.
  • Apps trying to use Bluetooth logged E BluetoothAdapter: mService is not initialized.
  • The role controller logged Default/fallback role holder package doesn't qualify for the role, package: com.android.bluetooth, role: android.app.role.SYSTEM_BLUETOOTH_STACK. A disabled package can’t hold a role, and that line was the closest thing to a direct hint.

Then the package list:

$ adb shell pm list packages -d | grep bluetooth
package:com.android.bluetooth
$ adb shell dumpsys package com.android.bluetooth | grep -E 'enabled=|lastDisabledCaller'
    User 0: ... installed=true hidden=false suspended=false ... enabled=3 ...
    lastDisabledCaller: shell:1000

enabled=3 is COMPONENT_ENABLED_STATE_DISABLED_USER, and lastDisabledCaller: shell says it was done from a shell command, not by Android. The device’s logs didn’t go back far enough to show when.

Diagram: the toggle sets bluetooth_on=1, BluetoothManagerService tries to bind com.android.bluetooth, which is disabled (enabled=3), so the state stays at BLE_TURNING_ON; pm enable lets it reach ON in about 8 seconds

The fix

adb shell pm enable com.android.bluetooth
sleep 8
adb shell dumpsys bluetooth_manager | head -3
Package com.android.bluetooth new state: enabled
Bluetooth Status:
  State:         ON

The manager was still waiting, so as soon as the package came back it bound, the stack process started, and the state reached ON in about eight seconds. No reboot and no app data cleared.

Why it was hard to see

pm list packages -d on this phone returned about 160 packages. Almost all of them were enabled=4 (DISABLED_UNTIL_USED) with lastDisabledCaller: auto_disabler. That’s the vendor’s automatic sleep for unused apps, and it’s harmless: the app wakes up when you open it. The one package that mattered was buried in that list.

So the useful filter isn’t « disabled », it’s « disabled by someone, on a system package ». This loop prints the state and the caller for every disabled system package, and drops the auto-sleep ones:

adb shell 'for p in $(pm list packages -d -s | cut -d: -f2); do
  s=$(dumpsys package $p 2>/dev/null | grep -m1 -o "enabled=[0-9]")
  c=$(dumpsys package $p 2>/dev/null | grep -m1 -o "lastDisabledCaller: [^ ]*")
  echo "$p $s $c"
done' | grep -v 'enabled=4'

enabled=2 means the package disabled itself or was disabled by the system. That’s normal for some optional components, for example an NFC package on a device without NFC. enabled=3 with a shell caller is the line to read twice.

What I did not test

  • Only one phone: a Samsung on Android 17 with a Qualcomm Bluetooth HAL. Older Android versions, before the stack moved to the com.android.bt APEX, may name or behave differently.
  • I didn’t find out what disabled the package. shell:1000 points at an adb or shell command, which in practice means a debloat script or a package-manager tool.
  • After the fix I only checked State: ON. I didn’t reconnect paired devices, though nothing touched the pairing data.
  • The filtering loop was re-run on an Android emulator, not on the phone after the fix.

Facts

context: Android phone, Bluetooth toggle on but nothing pairs; adb available
problem: com.android.bluetooth (the Bluetooth stack app) was disabled with pm disable-user (enabled=3), so BluetoothManagerService stayed in BLE_TURNING_ON forever
solution: adb shell pm enable com.android.bluetooth; State reaches ON in ~8 s without reboot
verified_on: 2026-11-11
applies_to: Android 17 with the com.android.bt APEX (Samsung build observed)
does_not_apply_to: hardware or firmware Bluetooth failures; packages in enabled=4 (DISABLED_UNTIL_USED) auto-sleep state

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Retour en haut