diff --git a/rootdir/Android.mk b/rootdir/Android.mk index c5450e9..2b4994f 100644 --- a/rootdir/Android.mk +++ b/rootdir/Android.mk @@ -49,6 +49,7 @@ LOCAL_MODULE := init.qcom.bt.sh LOCAL_MODULE_TAGS := optional eng LOCAL_MODULE_CLASS := ETC LOCAL_SRC_FILES := etc/scripts/init.qcom.bt.sh +LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_EXECUTABLES) include $(BUILD_PREBUILT) include $(CLEAR_VARS) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 789ea8e..41849d4 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -615,7 +615,7 @@ service ds_fmc_appd /vendor/bin/ds_fmc_appd -p "rmnet0" -D on property:persist.data.ds_fmc_app.mode=1 start ds_fmc_appd -service hciattach /system/bin/sh /system/etc/init.qcom.bt.sh +service hciattach /vendor/bin/init.qcom.bt.sh class late_start user bluetooth group bluetooth net_bt_admin diff --git a/rootdir/etc/scripts/init.qcom.bt.sh b/rootdir/etc/scripts/init.qcom.bt.sh index 83744a3..02c6cfe 100644 --- a/rootdir/etc/scripts/init.qcom.bt.sh +++ b/rootdir/etc/scripts/init.qcom.bt.sh @@ -1,16 +1,16 @@ -#!/system/bin/sh +#!/vendor/bin/sh LOG_TAG="qcom-bluetooth" LOG_NAME="${0}:" loge () { - /system/bin/log -t $LOG_TAG -p e "$LOG_NAME $@" + /vendor/bin/log -t $LOG_TAG -p e "$LOG_NAME $@" } logi () { - /system/bin/log -t $LOG_TAG -p i "$LOG_NAME $@" + /vendor/bin/log -t $LOG_TAG -p i "$LOG_NAME $@" } failed () @@ -54,7 +54,7 @@ case $LE_POWER_CLASS in logi "LE Power Class: To override, Before turning BT ON; setprop qcom.bt.le_dev_pwr_class <1 or 2 or 3>";; esac -eval $(/system/vendor/bin/hci_qcomm_init -e $PWR_CLASS $LE_PWR_CLASS && echo "exit_code_hci_qcomm_init=0" || echo "exit_code_hci_qcomm_init=1") +eval $(/vendor/bin/hci_qcomm_init -e $PWR_CLASS $LE_PWR_CLASS && echo "exit_code_hci_qcomm_init=0" || echo "exit_code_hci_qcomm_init=1") case $exit_code_hci_qcomm_init in 0) logi "Bluetooth QSoC firmware download succeeded, $BTS_DEVICE $BTS_TYPE $BTS_BAUD $BTS_ADDRESS";;