From 4abfd2ac856b286049cbfe1452efd7ed55f75f4e Mon Sep 17 00:00:00 2001 From: Naman Jain Date: Mon, 14 Feb 2022 12:26:49 +0530 Subject: [PATCH] sm8450-common: rootdir: init: remove getprop commands for fixing avc denials remove logic from init scripts where getprop is used, causing avc denials. Removed logic is not applicable to current targets using this. Change-Id: Ib783c6b2c341da59d24b8f4626e0461e1fbbdd0d --- rootdir/bin/init.qcom.class_core.sh | 53 ----------------------------- 1 file changed, 53 deletions(-) mode change 100755 => 100644 rootdir/bin/init.qcom.class_core.sh diff --git a/rootdir/bin/init.qcom.class_core.sh b/rootdir/bin/init.qcom.class_core.sh old mode 100755 new mode 100644 index 8f8265d..fbe74aa --- a/rootdir/bin/init.qcom.class_core.sh +++ b/rootdir/bin/init.qcom.class_core.sh @@ -145,59 +145,6 @@ init_DMM() esac } -# -# For controlling console and shell on console on 8960 - perist.serial.enable 8960 -# On other target use default ro.debuggable property. -# -serial=`getprop persist.serial.enable` -dserial=`getprop ro.debuggable` -case "$target" in - "msm8960") - case "$serial" in - "0") - echo 0 > /sys/devices/platform/msm_serial_hsl.0/console - ;; - "1") - echo 1 > /sys/devices/platform/msm_serial_hsl.0/console - start console - ;; - *) - case "$dserial" in - "1") - start console - ;; - esac - ;; - esac - ;; - - "msm8610" | "msm8974" | "msm8226") - case "$serial" in - "0") - echo 0 > /sys/devices/f991f000.serial/console - ;; - "1") - echo 1 > /sys/devices/f991f000.serial/console - start console - ;; - *) - case "$dserial" in - "1") - start console - ;; - esac - ;; - esac - ;; - *) - case "$dserial" in - "1") - start console - ;; - esac - ;; -esac - case "$target" in "msm7630_surf" | "msm7630_1x" | "msm7630_fusion") insmod /system/lib/modules/ss_mfcinit.ko