NOTE: I did analysis of this failure using a test harness on actual hardware together with Claude Opus 5.5
TL;DR and the ground truth: Real cause is that the bluetooth bridge found in appsupport currently doesn’t implement the BLE advertising HCI pass-through so that it always stubs to zero slots. To get my problem fixed I AI-engineered a temporary replacement appsupport-bridge-bt that adds the missing BLE GATT support. Using this replacement I got my banking app moved from the old device to JP 2026
as BLE GATT is finally added to the bridge.
You can find it here: GitHub - nekrondev/appsupport-bridge-bt-re: An alternative, open-source re-implementation of appsupport-bridge-bt. · GitHub
Due to the advent of REA Jolla should really overthink their Open-Source policy (or what it is not).
Cheers,
– Nek
REPRODUCIBILITY: 100% (every attempt)
OS VERSION: 5.2.0.20 (Finlayson)
HARDWARE: Jolla Phone (2026)
UI LANGUAGE: German (de-DE)
REGRESSION: Unknown — not verified against an earlier release; appears to have never worked on this device.
DESCRIPTION:
Inside Android App Support, no app can start BLE advertising (act as a BLE peripheral). Every
BluetoothLeAdvertiser.startAdvertisingSet(...) fails immediately. Classic BLE scanning (central role) works fine; only advertising/peripheral is broken.
Root cause is a self-contradictory, Bluetooth-Core-spec-violating capability report from the
controller/HAL: it sets the LE Extended Advertising feature bit but reports 0 supported advertising
sets. The AOSP Gabeldorsche (GD) stack therefore selects the extended-advertising API and sizes its advertiser pool from that 0, so advertiser allocation always fails (“allocate_advertiser: Number of max instances 0 reached”).
From dumpsys bluetooth_manager (controller block) on the Jolla Phone (2026):
le_local_supported_features: 0x800001000f01fdfd # bit 12 = LE Extended Advertising = 1
le_number_supported_advertising_sets: 0 # ...but ZERO advertising sets
vendor_capabilities: { is_supported: 1, max_advt_instances: 16, extended_scan_support: 0 }
Per the Bluetooth Core spec, a controller advertising LE Extended Advertising must report at least 1
supported advertising set. Because feature bit 12 is set, GD chooses the EXTENDED path and reads the (zero) set count. Had the bit not been set, GD would fall back to the vendor/legacy path using max_advt_instances = 16.
Comparison: a Sony Xperia 10 II on Sailfish OS 5.1.0.11 reports LE Extended Advertising = false and mNumOfAdvertisementInstancesSupported = 16, uses the vendor/legacy advertising path, and BLE advertising works there.
Impact: any Android app needing to act as a BLE peripheral fails. Concrete user-visible breakage:
the Sparkasse “S-pushTAN” app’s device-change / “Verbindung übernehmen” cannot complete, because the new device must BLE-advertise a transfer service for the old device to discover — it never goes on air, so the old device’s scan finds nothing and provisioning fails after ~30 s.
BT bridge chain on this device: /vendor/bin/hw/android.hardware.bluetooth-service-mediatek →
bluebinder → /dev/vhci → Android GD stack (com.android.bluetooth, App Support API 35).
PRECONDITIONS:
- Android App Support enabled.
- Any Android app that advertises as a BLE peripheral (e.g. Sparkasse S-pushTAN “move to new
device”, or any generic “BLE peripheral/advertiser” test app). - Bluetooth turned on.
STEPS TO REPRODUCE:
-
In App Support, open an app that starts BLE advertising (e.g. S-pushTAN device change, or a BLE advertiser test app) and trigger advertising.
-
Advertising never starts. In logcat:
D BluetoothLeAdvertiser: TxPower == ADVERTISE_TX_POWER_MEDIUM I bt_shim_advertiser: le_advertising_manager.cc:149 StartAdvertisingSet: in shim layer I bt_shim_advertiser: le_advertising_manager.cc:169 StartAdvertisingSet: create advertising set, client_id:255, reg_id:-2 W bluetooth: le_advertising_manager.cc:375 allocate_advertiser: Number of max instances 0 reached W bluetooth: le_advertising_manager.cc:554 create_extended_advertiser: Number of max instances reached -
Capability check without any app, in the App Support container (read-only):
dumpsys bluetooth_manager | grep -E "le_number_supported_advertising_sets|le_local_supported_features|max_advt_instances"Observe le_number_supported_advertising_sets: 0 together with the LE Extended Advertising feature bit set in le_local_supported_features.
EXPECTED RESULT:
BLE advertising starts and the device acts as a BLE peripheral (as it does on the Xperia 10 II).
ACTUAL RESULT:
Advertiser allocation fails (“Number of max instances 0 reached”); the device cannot advertise at
all. Any dependent flow (e.g. S-pushTAN device change) fails.
MODIFICATIONS:
None. Developer mode / SSH only. No patches, OpenRepos/Chum packages, Waydroid, or custom BT configuration. All diagnostics were read-only (dumpsys, logcat, getprop); nothing was changed on the device.
ADDITIONAL INFORMATION:
Suggested fix (either is sufficient):
- Preferred: correct the MediaTek BT HAL/firmware so a controller advertising LE Extended
Advertising also returns LE Read Number of Supported Advertising Sets >= 1. - Alternative: do not claim extended advertising — clear LE feature bits 12/13 in the reported
le_local_supported_features so the GD stack falls back to the vendor ANDROID_HCI path using
max_advt_instances = 16 (the known-good path already used on the Xperia 10 II). This could also be masked in bluebinder, but the HAL is the correct place.