Update bluetooth permissions
This commit is contained in:
parent
05f1562703
commit
4dcfeec788
1 changed files with 52 additions and 0 deletions
|
@ -17,6 +17,48 @@ on fs
|
||||||
on boot
|
on boot
|
||||||
# permission for MUIC(waterproof)
|
# permission for MUIC(waterproof)
|
||||||
chown system radio /sys/class/sec/switch/uart_en
|
chown system radio /sys/class/sec/switch/uart_en
|
||||||
|
|
||||||
|
chown bluetooth net_bt /sys/class/rfkill/rfkill0/type
|
||||||
|
chown bluetooth net_bt /sys/class/rfkill/rfkill0/state
|
||||||
|
chown bluetooth bluetooth /proc/bluetooth/sleep/proto
|
||||||
|
chown system system /sys/module/sco/parameters/disable_esco
|
||||||
|
chown bluetooth bluetooth /sys/module/hci_smd/parameters/hcismd_set
|
||||||
|
chown system system /sys/module/msm_core/parameters/polling_interval
|
||||||
|
chown system system /sys/module/msm_core/parameters/disabled
|
||||||
|
chown system system /sys/kernel/debug/msm_core/enable
|
||||||
|
chown system system /sys/kernel/debug/msm_core/ptable
|
||||||
|
chown system system /sys/kernel/boot_slpi/ssr
|
||||||
|
chown system system /sys/module/radio_iris_transport/parameters/fmsmd_set
|
||||||
|
chmod 0660 /sys/module/hci_smd/parameters/hcismd_set
|
||||||
|
chmod 0660 /sys/module/radio_iris_transport/parameters/fmsmd_set
|
||||||
|
chmod 0660 /sys/class/rfkill/rfkill0/state
|
||||||
|
chmod 0660 /proc/bluetooth/sleep/proto
|
||||||
|
chown bluetooth net_bt /dev/ttyHS0
|
||||||
|
chmod 0660 /dev/ttyHS0
|
||||||
|
chown bluetooth bluetooth /sys/devices/platform/msm_serial_hs.0/clock
|
||||||
|
chmod 0660 /sys/devices/platform/msm_serial_hs.0/clock
|
||||||
|
|
||||||
|
chown bluetooth net_bt /sys/class/rfkill/rfkill0/device/extldo
|
||||||
|
chmod 0660 /sys/class/rfkill/rfkill0/device/extldo
|
||||||
|
|
||||||
|
# for BT MAC address
|
||||||
|
mkdir /efs/bluetooth 0770 system bluetooth
|
||||||
|
# if already exist
|
||||||
|
chown system bluetooth /efs/bluetooth
|
||||||
|
chown system bluetooth /efs/bluetooth/bt_addr
|
||||||
|
chmod 0770 /efs/bluetooth
|
||||||
|
chmod 0640 /efs/bluetooth/bt_addr
|
||||||
|
# permissions for bluetooth.
|
||||||
|
setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr"
|
||||||
|
chown bluetooth bluetooth ro.bt.bdaddr_path
|
||||||
|
|
||||||
|
# bluetooth LPM
|
||||||
|
chmod 0660 /proc/bluetooth/sleep/lpm
|
||||||
|
chmod 0220 /proc/bluetooth/sleep/btwrite
|
||||||
|
chown bluetooth bluetooth /proc/bluetooth/sleep/lpm
|
||||||
|
chown bluetooth bluetooth /proc/bluetooth/sleep/btwrite
|
||||||
|
chmod 0600 /dev/btlock
|
||||||
|
chown bluetooth bluetooth /dev/btlock
|
||||||
|
|
||||||
# permission for touchkey grip
|
# permission for touchkey grip
|
||||||
chown system radio /sys/class/sec/sec_touchkey/sar_enable
|
chown system radio /sys/class/sec/sec_touchkey/sar_enable
|
||||||
|
@ -109,6 +151,16 @@ on post-fs-data
|
||||||
chown system system /efs/sec_efs/ssp_data
|
chown system system /efs/sec_efs/ssp_data
|
||||||
chmod 0644 /efs/sec_efs/ssp_data
|
chmod 0644 /efs/sec_efs/ssp_data
|
||||||
|
|
||||||
|
|
||||||
|
# permissions for bluetooth.
|
||||||
|
setprop ro.bt.bdaddr_path "/efs/bluetooth/bt_addr"
|
||||||
|
chown bluetooth bluetooth ro.bt.bdaddr_path
|
||||||
|
chown radio bluetooth /efs/bluetooth/bt_addr
|
||||||
|
chmod 0640 /efs/bluetooth/bt_addr
|
||||||
|
chmod 0660 /sys/class/rfkill/rfkill0/state
|
||||||
|
chown bluetooth net_bt /sys/class/rfkill/rfkill0/state
|
||||||
|
chown bluetooth net_bt /sys/class/rfkill/rfkill0/type
|
||||||
|
|
||||||
# sem_daemon
|
# sem_daemon
|
||||||
#service sem_daemon /system/bin/sem_daemon
|
#service sem_daemon /system/bin/sem_daemon
|
||||||
# class core
|
# class core
|
||||||
|
|
Loading…
Reference in a new issue