mirror of
https://github.com/S3NEO/android_device_samsung_msm8226-common.git
synced 2024-11-06 21:55:45 +00:00
msm8226-common: Rename bt props for new HAL
* Also move some stuff to vendor Change-Id: I1afd110bffed0f43b1afcbef99be8a3776d24e0b
This commit is contained in:
parent
50a1d315aa
commit
2e680523ba
2 changed files with 7 additions and 7 deletions
|
@ -623,11 +623,11 @@ service hciattach /system/bin/sh /system/etc/init.qcom.bt.sh
|
|||
seclabel u:r:bluetooth_loader:s0
|
||||
oneshot
|
||||
|
||||
on property:bluetooth.hciattach=true
|
||||
on property:vendor.bluetooth.hciattach=true
|
||||
start hciattach
|
||||
|
||||
on property:bluetooth.hciattach=false
|
||||
setprop bluetooth.status off
|
||||
on property:vendor.bluetooth.hciattach=false
|
||||
setprop vendor.bluetooth.status off
|
||||
|
||||
service irsc_util /vendor/bin/irsc_util "/vendor/etc/sec_config"
|
||||
class main
|
||||
|
|
|
@ -28,7 +28,7 @@ setprop ro.qualcomm.bt.hci_transport smd
|
|||
POWER_CLASS=`getprop qcom.bt.dev_power_class`
|
||||
LE_POWER_CLASS=`getprop qcom.bt.le_dev_pwr_class`
|
||||
|
||||
setprop bluetooth.status off
|
||||
setprop vendor.bluetooth.status off
|
||||
|
||||
case $POWER_CLASS in
|
||||
1) PWR_CLASS="-p 0" ;
|
||||
|
@ -54,15 +54,15 @@ 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/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 $(/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")
|
||||
|
||||
case $exit_code_hci_qcomm_init in
|
||||
0) logi "Bluetooth QSoC firmware download succeeded, $BTS_DEVICE $BTS_TYPE $BTS_BAUD $BTS_ADDRESS";;
|
||||
*) failed "Bluetooth QSoC firmware download failed" $exit_code_hci_qcomm_init;
|
||||
setprop bluetooth.status off
|
||||
setprop vendor.bluetooth.status off
|
||||
exit $exit_code_hci_qcomm_init;;
|
||||
esac
|
||||
|
||||
setprop bluetooth.status on
|
||||
setprop vendor.bluetooth.status on
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Reference in a new issue