From d53809cb221433fc89f12fbcf26d0a6dc3c1d916 Mon Sep 17 00:00:00 2001 From: Giulio Cervera Date: Sat, 20 Feb 2016 20:00:28 +0100 Subject: update init script * newer qmuxd need root permission for accessing wakelocks * create qmuxd nfc dir to avoid cosmetics error * move subsystems settings early Change-Id: Id0f6756f1a2265a73da5baf43694f2fb0d61889b --- rootdir/init.qcom.rc | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'rootdir') diff --git a/rootdir/init.qcom.rc b/rootdir/init.qcom.rc index aa35e36..046b3ed 100644 --- a/rootdir/init.qcom.rc +++ b/rootdir/init.qcom.rc @@ -24,6 +24,13 @@ on early-init chown system system /sys/kernel/debug/kgsl/proc on init + # Enable subsystem restart + write /sys/module/subsystem_restart/parameters/enable_ramdumps 0 + 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" + # for backwards compatibility symlink /sdcard /mnt/sdcard symlink /sdcard /storage/sdcard0 @@ -46,16 +53,6 @@ on init write /sys/module/qpnp_rtc/parameters/poweron_alarm 1 - # Enable ramdumps from subsystems to dump - # adsp ssr - write /sys/bus/msm_subsys/devices/subsys0/restart_level "SYSTEM" - # modem ssr - write /sys/bus/msm_subsys/devices/subsys1/restart_level "RELATED" - # wcnss ssr - write /sys/bus/msm_subsys/devices/subsys2/restart_level "RELATED" - # venus ssr - write /sys/bus/msm_subsys/devices/subsys3/restart_level "RELATED" - # Enable panic on out of memory write /proc/sys/vm/panic_on_oom 2 @@ -105,6 +102,8 @@ on boot chmod 2770 /dev/socket/qmux_bluetooth mkdir /dev/socket/qmux_gps 0770 gps gps chmod 2770 /dev/socket/qmux_gps + mkdir /dev/socket/qmux_nfc 0770 nfc nfc + chmod 2770 /dev/socket/qmux_nfc # Create PERFD deamon related dirs mkdir /data/misc/perfd 0755 root system @@ -356,8 +355,8 @@ on property:init.svc.wpa_supplicant=stopped # QMUX must be in multiple groups to support external process connections service qmuxd /system/bin/qmuxd class main - user radio - group radio audio bluetooth gps qcom_diag + user root + group radio audio bluetooth gps nfc diag qcom_diag # SONY: TrimArea Daemon # Last 2 args: start block(blk size 128k), number of blocks(partitionsize(kb)/128(kb)) -- cgit v1.2.3