From fad43a2dc592e66f330c3e452e682db823f8f5a6 Mon Sep 17 00:00:00 2001 From: Vishal Cj Date: Sun, 4 Apr 2021 19:02:35 +0530 Subject: [PATCH] sm8150-common: rootdir: Change permissions for /dev/diag. * Logs spam with error '-13' which basically translates to access denied/invalid permission. * Fix this by giving system read and write access. Before in log: Diag_Lib: Diag_LSM_Init: Failed to open handle to diag driver, error = 13 Signed-off-by: Omkar Chandorkar --- rootdir/etc/init.qcom.rc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 71a34e64..2e596b92 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -74,6 +74,8 @@ on early-init exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules msm_11ad_proxy on init + # Change permissions for diag lib. + chmod 0666 /dev/diag # Support legacy paths symlink /sdcard /mnt/sdcard