From 4b0fcbf2051e86dab194d0c5907bbcedf8455104 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Thu, 11 Jul 2019 15:32:52 +0200 Subject: [PATCH] sm6225-common: Drop SSR services and set SSR restart_level in init.qcom.rc Change-Id: I32fc08c9ad36b9c8ebfc019fc87a19eece18f0b4 --- rootdir/etc/init.qcom.rc | 40 +++++++++------------------------------- vendor.prop | 3 --- 2 files changed, 9 insertions(+), 34 deletions(-) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 3d0d58d..f312a1c 100755 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -73,6 +73,15 @@ on early-boot exec u:r:vendor_qti_init_shell:s0 -- /vendor/bin/init.qti.can.sh setprop ro.sf.lcd_density ${vendor.display.lcd_density} + # SSR + write /sys/bus/msm_subsys/devices/subsys0/restart_level RELATED + write /sys/bus/msm_subsys/devices/subsys1/restart_level RELATED + write /sys/bus/msm_subsys/devices/subsys2/restart_level RELATED + write /sys/bus/msm_subsys/devices/subsys3/restart_level RELATED + write /sys/bus/msm_subsys/devices/subsys4/restart_level RELATED + write /sys/bus/msm_subsys/devices/subsys5/restart_level RELATED + write /sys/bus/msm_subsys/devices/subsys6/restart_level RELATED + chown system system /mnt/vendor/persist/data/pfm/licenses chmod 0775 /mnt/vendor/persist/data/pfm/licenses chown system system /mnt/vendor/persist/data/pfm/licenses/store_0 @@ -403,17 +412,6 @@ on property:ro.vendor.hw.dualsim=false #on property:persist.vendor.qcomsysd.enabled=0 # stop qcomsysd -service vendor.ssr_setup /system/vendor/bin/ssr_setup - oneshot - disabled - -service vendor.ss_ramdump /system/vendor/bin/subsystem_ramdump - class main - user system - group log sdcard_rw sdcard_r diag - ioprio rt 4 - disabled - on property:ro.vendor.iocgrp.config=1 mkdir /dev/blkio mount cgroup none /dev/blkio blkio @@ -426,9 +424,6 @@ on property:ro.vendor.iocgrp.config=1 write /dev/blkio/blkio.weight 1000 write /dev/blkio/bg/blkio.weight 100 -on property:persist.sys.ssr.enable_debug=* - write /sys/module/subsystem_restart/parameters/enable_debug ${persist.sys.ssr.enable_debug} - on property:persist.sys.mba_boot_timeout=* write /sys/module/pil_msa/parameters/pbl_mba_boot_timeout_ms ${persist.sys.mba_boot_timeout} @@ -438,17 +433,6 @@ on property:persist.sys.modem_auth_timeout=* on property:persist.sys.pil_proxy_timeout=* write /sys/module/peripheral_loader/parameters/proxy_timeout_ms ${persist.sys.pil_proxy_timeout} -on property:persist.vendor.ssr.restart_level=* - start vendor.ssr_setup - -on property:persist.vendor.ssr.enable_ramdumps=1 - write /sys/module/subsystem_restart/parameters/enable_ramdumps 1 - mkdir /data/vendor/ramdump_ssr 770 system system - start vendor.ss_ramdump - -on property:persist.vendor.ssr.enable_ramdumps=0 - write /sys/module/subsystem_restart/parameters/enable_ramdumps 0 - on property:persist.vendor.sys.rawdump_copy=1 write /sys/kernel/dload/emmc_dload 1 @@ -764,12 +748,6 @@ service charger /system/bin/charger capabilities SYS_BOOT seclabel u:r:charger:s0 -service vendor.ssr_diag /system/vendor/bin/ssr_diag - class late_start - user system - group system - disabled - #service diag_mdlog_start /system/vendor/bin/diag_mdlog # class late_start # user shell diff --git a/vendor.prop b/vendor.prop index 22a10d8..55ba45c 100644 --- a/vendor.prop +++ b/vendor.prop @@ -227,9 +227,6 @@ ro.vendor.sensors.glance_approach=false ro.vendor.sensors.mot_ltv=true ro.vendor.sensors.pug=false -# SSR -persist.vendor.ssr.restart_level=ALL_ENABLE - # USB vendor.usb.diag.func.name=diag vendor.usb.dpl.inst.name=dpl