From 3bf5f0922a290072a57b3cb1ad9d1598cef007d0 Mon Sep 17 00:00:00 2001 From: jonerlin Date: Thu, 6 Apr 2023 21:23:37 +0800 Subject: [PATCH] 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: reboot device stress test and check the log Change-Id: I1738febe22af21733ef2b14b16e84186b8156fd6 --- conf/init.zuma.rc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/init.zuma.rc b/conf/init.zuma.rc index 5196c086..78ae8272 100644 --- a/conf/init.zuma.rc +++ b/conf/init.zuma.rc @@ -882,10 +882,12 @@ on property:ro.build.fingerprint=* write /sys/module/debug_kinfo/parameters/build_info ${ro.build.fingerprint} # 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/odm/odm:btbcm/rfkill/rfkill0/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/lpm chown bluetooth system /proc/bluetooth/sleep/btwrite