raspberry-vanilla / android_local_manifest

149 stars 58 forks source link

when reboot system Bluetooth-LE device can't reconnect. #112

Closed zhou199864 closed 4 months ago

zhou199864 commented 4 months ago

Hi, I successfully build android14 tablet image. I try to use ble-Remote to control the Pi 5 and when I reboot system, the remote can’t reconnect the Pi 5, however, I use classical bluetooth device can reconnect the Pi 5.

Hardware: Pi 5. Build Type: aosp_rpi5-ap2a-userdebug or aosp_rpi5-ap2a-userdebug

Logcat: ble.log Kernel log: kernel.log

cloud you please analyze it. Thanks!

zhou199864 commented 4 months ago

Because of the bt-module have opened random address, so remote-control send br of direct and the host can't reconnect. So we can use public address mode. step 1: Navigate to packages/modules/Bluetooth/system/btif/src/btif_dm.cc file. image Go to this define, we found it. image

step 2: Navigate to device/brcm/rpixx/vendor.prop and add bluetooth.core.gap.le.privacy.enabled=false, it's work.