Merged differences from init scripts in fortunave3g tree
diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc
index 5a207e8..9e0b7f0 100644
--- a/rootdir/etc/init.qcom.rc
+++ b/rootdir/etc/init.qcom.rc
@@ -29,6 +29,10 @@
import init.target.rc
on early-init
+ mkdir /firmware 0771 system system
+ mkdir /firmware-modem 0771 system system
+ #mkdir /system 0777 root root
+ symlink /data/tombstones /tombstones
mount debugfs debugfs /sys/kernel/debug
write /sys/block/mmcblk0/queue/scheduler noop
# additionaly for init.trace.rc
@@ -36,6 +40,9 @@
chown root shell /sys/kernel/debug/tracing/options/print-tgid
chmod 0664 /sys/kernel/debug/tracing/options/print-tgid
+ chown system system /sys/kernel/debug/kgsl/proc
+ chmod 644 /proc/cmdline
+
on init
# Set permissions for persist partition
mkdir /persist 0771 system system
@@ -75,6 +82,18 @@
write /sys/kernel/boot_adsp/boot 1
on boot
+ start rmt_storage
+ insmod /system/lib/modules/adsprpc.ko
+ # access permission for secure touch
+ chmod 0660 /sys/devices/soc.0/78b9000.i2c/i2c-5/5-0020/secure_touch_enable
+ chmod 0440 /sys/devices/soc.0/78b9000.i2c/i2c-5/5-0020/secure_touch
+ chmod 0660 /sys/devices/soc.0/78b9000.i2c/i2c-5/5-0070/secure_touch_enable
+ chmod 0440 /sys/devices/soc.0/78b9000.i2c/i2c-5/5-0070/secure_touch
+ chown system drmrpc /sys/devices/soc.0/78b9000.i2c/i2c-5/5-0020/secure_touch_enable
+ chown system drmrpc /sys/devices/soc.0/78b9000.i2c/i2c-5/5-0020/secure_touch
+ chown system drmrpc /sys/devices/soc.0/78b9000.i2c/i2c-5/5-0070/secure_touch_enable
+ chown system drmrpc /sys/devices/soc.0/78b9000.i2c/i2c-5/5-0070/secure_touch
+
chown bluetooth bluetooth /sys/module/bluetooth_power/parameters/power
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/type
chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
@@ -202,6 +221,7 @@
# Allow access for CCID command/response timeout configuration
chown system system /sys/module/ccid_bridge/parameters/bulk_msg_timeout
+
#
# start qmuxd and qmiproxy for appropriate targets
#
@@ -214,6 +234,18 @@
on property:ro.baseband=unknown
start qmuxd
+on fs
+# mount_all fstab.qcom
+
+ chown system radio /efs
+ chmod 0771 /efs
+ rm -rf /efs/dmverity
+ restorecon -R /efs
+
+# fm_radio
+ chmod 0777 /dev/radio0
+ chown system system /dev/radio0
+
# msm specific files that need to be created on /data
on post-fs-data
# Create directory for TZ Apps
diff --git a/rootdir/etc/init.rc b/rootdir/etc/init.rc
index d67dfd3..5203aeb 100644
--- a/rootdir/etc/init.rc
+++ b/rootdir/etc/init.rc
@@ -786,22 +786,31 @@
###############################################################################
# Permissions for Camera
- chown system system /sys/class/camera/rear/isp_core
- chown system system /sys/class/camera/rear/rear_camfw_full
+ chown root system /sys/class/camera/rear/rear_camantibanding
chown system system /sys/class/camera/rear/rear_camfw
+ chown system system /sys/class/camera/rear/rear_checkfw_user
+ chown system system /sys/class/camera/rear/rear_checkfw_factory
+ chown system system /sys/class/camera/rear/rear_camfw_full
+ chown system system /sys/class/camera/rear/rear_camfw_load
chown system system /sys/class/camera/rear/rear_camtype
+ chown system radio /sys/class/camera/rear/rear_corever
+ chown system radio /sys/class/camera/rear/rear_companionfw_full
+ chown system radio /sys/class/camera/rear/rear_calcheck
+ chown system radio /sys/class/camera/rear/rear_fwcheck
+ chown system system /sys/class/camera/rear/isp_core
chown system radio /sys/class/camera/flash/rear_flash
+ chown system radio /sys/class/camera/flash/front_flash
chown system system /sys/class/camera/front/front_camfw
chown system system /sys/class/camera/front/front_camtype
chown system system /sys/class/camera/front/front_camfw_full
chown system system /sys/class/camera/front/front_camfw_load
- chown system system /sys/class/camera/rear/rear_checkfw_user
- chown system system /sys/class/camera/rear/rear_checkfw_factory
#OTG Test
chown system radio /sys/class/host_notify/usb_otg/booster
chmod 0660 /sys/class/host_notify/usb_otg/booster
-
+ chown system radio /sys/class/usb_notify/usb_control/disable
+ chmod 0660 /sys/class/usb_notify/usb_control/disable
+
# Accelerometer_sensor
chown system radio /sys/class/sensors/accelerometer_sensor/raw_data
chown system radio /sys/class/sensors/accelerometer_sensor/calibration
@@ -868,6 +877,10 @@
chmod 0664 /sys/class/power_supply/ps/status
chown system radio /sys/class/power_supply/battery/batt_temp_table
+ # Adaptive LMK
+ write /sys/module/lowmemorykiller/parameters/enable_adaptive_lmk 1
+ write /sys/module/lowmemorykiller/parameters/vmpressure_file_min 53059
+
# Define default initial receive window size in segments.
setprop net.tcp.default_init_rwnd 60