diff options
author | Giulio Cervera <giulio.cervera@cyanogenmod.org> | 2016-02-20 20:00:28 +0100 |
---|---|---|
committer | Max Weffers <rcstar6696@gmail.com> | 2017-01-30 15:42:43 +0100 |
commit | d53809cb221433fc89f12fbcf26d0a6dc3c1d916 (patch) | |
tree | b57e9f4f282cde326953da9fa43e59a43045c1f1 | |
parent | 6f770f9eb59bf7bdd482dceab02311a88f846136 (diff) |
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
-rw-r--r-- | rootdir/init.qcom.rc | 23 |
1 files changed, 11 insertions, 12 deletions
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)) |