From 59166cef96bc7e55dc6292826644a8d12c272ba0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Darrel=20Gri=C3=ABt?= Date: Thu, 29 Dec 2022 22:18:52 +0100 Subject: [PATCH] beluga: android-init: Start the btnvtool and Bluetooth init services. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../recipes-android/android-init/android-init/init.rc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/meta-beluga/recipes-android/android-init/android-init/init.rc b/meta-beluga/recipes-android/android-init/android-init/init.rc index d465f94e..c78b4d8c 100644 --- a/meta-beluga/recipes-android/android-init/android-init/init.rc +++ b/meta-beluga/recipes-android/android-init/android-init/init.rc @@ -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