bt: set rfkill device nodes permission setting on early_boot stage
move the rfkill permission setting from post-fs-data to early_boot stage because the kernel/net/rfkill/rfkill.ko may not be loaded on post-fs-data stage and cause the permission setting failed. Bug: 277148159 Test: m Change-Id: I65f0593caddbe659528877f583917cdaead1756b
This commit is contained in:
parent
26a23b76de
commit
5fa0e12ada
1 changed files with 3 additions and 1 deletions
|
@ -829,10 +829,12 @@ on property:ro.build.fingerprint=*
|
||||||
write /sys/module/debug_kinfo/parameters/build_info ${ro.build.fingerprint}
|
write /sys/module/debug_kinfo/parameters/build_info ${ro.build.fingerprint}
|
||||||
|
|
||||||
# Bluetooth
|
# Bluetooth
|
||||||
on post-fs-data
|
on early-boot
|
||||||
chown bluetooth system /sys/devices/platform/175b0000.serial/serial0/serial0-0/bluetooth/hci0/rfkill0/state
|
chown bluetooth system /sys/devices/platform/175b0000.serial/serial0/serial0-0/bluetooth/hci0/rfkill0/state
|
||||||
chown bluetooth system /sys/devices/platform/odm/odm:btbcm/rfkill/rfkill0/state
|
chown bluetooth system /sys/devices/platform/odm/odm:btbcm/rfkill/rfkill0/state
|
||||||
chown bluetooth system /sys/devices/platform/odm/odm:btbcm/rfkill/rfkill2/state
|
chown bluetooth system /sys/devices/platform/odm/odm:btbcm/rfkill/rfkill2/state
|
||||||
|
|
||||||
|
on post-fs-data
|
||||||
chown bluetooth system /proc/bluetooth/sleep/btwake
|
chown bluetooth system /proc/bluetooth/sleep/btwake
|
||||||
chown bluetooth system /proc/bluetooth/sleep/lpm
|
chown bluetooth system /proc/bluetooth/sleep/lpm
|
||||||
chown bluetooth system /proc/bluetooth/sleep/btwrite
|
chown bluetooth system /proc/bluetooth/sleep/btwrite
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue