Skip to content

Commit

Permalink
beluga: android-init: Start the btnvtool and Bluetooth init services.
Browse files Browse the repository at this point in the history
This fixes an issue where the Bluetooth mac addresses were randomized after every reboot.
Essentially it creates a new file at `/persist/bluetooth/.bt_nv.bin` file with a random mac address if that file doesn't already exist.

Signed-off-by: Darrel Griët <[email protected]>
  • Loading branch information
MagneFire authored and FlorentRevest committed Jan 4, 2023
1 parent d5e6b18 commit 59166ce
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions meta-beluga/recipes-android/android-init/android-init/init.rc
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,11 @@ service deamonserver /system/bin/deamonserver
service pm-service /vendor/bin/pm-service
class core
oneshot

service config_bt_addr /vendor/bin/btnvtool -O
class core
oneshot

service config_bluetooth /system/bin/sh /system/etc/init.qcom.bt.sh "onboot"
class core
oneshot

0 comments on commit 59166ce

Please sign in to comment.