From b5b1d38eeb79978c7154e164b714ac34540fa257 Mon Sep 17 00:00:00 2001 From: Joel Bacchus Date: Sun, 17 Jan 2021 17:15:56 +0000 Subject: [PATCH] rootdir: add permissions for call state detection --- rootdir/init.mt8127.rc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rootdir/init.mt8127.rc b/rootdir/init.mt8127.rc index 5b1ae0f..9383d5b 100755 --- a/rootdir/init.mt8127.rc +++ b/rootdir/init.mt8127.rc @@ -364,6 +364,12 @@ on post-fs-data chown system /sys/devices/platform/msensor/driver/cpsopmode chown system /sys/devices/platform/msensor/driver/cpsreptxy chown system /sys/devices/platform/msensor/driver/cpsreptz + + # Accdet + chown root radio /sys/devices/platform/Accdet_Driver/driver/accdet_call_state + + # kpd + chown radio radio /sys/devices/platform/mtk-kpd/driver/kpd_call_state chown system system /system/bin/sbchk chmod 0771 /system/bin/sbchk