From d0d4a07d3af748fa718946a3ce4f658f27cecf49 Mon Sep 17 00:00:00 2001 From: Poompatai Puntitpong Date: Mon, 11 Mar 2024 09:04:43 +0000 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. Test: m Bug: 323377234 Change-Id: Ibf3862a5e0f4554e8df5c2ed1c76d460bbd5e543 --- conf/init.gs201.rc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/init.gs201.rc b/conf/init.gs201.rc index 09898cbd..c607fca6 100644 --- a/conf/init.gs201.rc +++ b/conf/init.gs201.rc @@ -876,10 +876,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