msm8953-common: Add pixel boot enhancements
This commit is contained in:
@@ -62,7 +62,8 @@ on property:ro.vendor.hw.dualsim=false
|
||||
on fs
|
||||
wait /dev/block/platform/soc/${ro.boot.bootdevice}
|
||||
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice
|
||||
mount_all /vendor/etc/fstab.qcom
|
||||
mount_all /vendor/etc/fstab.qcom --early
|
||||
write /proc/sys/vm/swappiness 100
|
||||
chown root system /mnt/vendor/persist
|
||||
chmod 0771 /mnt/vendor/persist
|
||||
mkdir /mnt/vendor/persist/data 0700 system system
|
||||
@@ -75,6 +76,23 @@ on fs
|
||||
#wait /dev/block/bootdevice/by-name/oem
|
||||
#mount ext4 /dev/block/bootdevice/by-name/oem /oem ro nosuid nodev barrier=1
|
||||
|
||||
on late-fs
|
||||
# Start services for bootanim
|
||||
start servicemanager
|
||||
start surfaceflinger
|
||||
start bootanim
|
||||
|
||||
start vendor.configstore-hal
|
||||
start vendor.gralloc-2-0
|
||||
|
||||
# Wait for hwservicemanager ready since fsck might be triggered in mount_all --late
|
||||
# In such case, init won't responce the property_set from hwservicemanager and then
|
||||
# cause services for bootanim not running.
|
||||
wait_for_prop hwservicemanager.ready true
|
||||
|
||||
# mount RW partitions which need run fsck
|
||||
mount_all /vendor/etc/fstab.qcom --late
|
||||
|
||||
on post-fs
|
||||
# set RLIMIT_MEMLOCK to 64MB
|
||||
setrlimit 8 67108864 67108864
|
||||
@@ -92,6 +110,7 @@ on post-fs-data
|
||||
mkdir /persist/data/tz 0700 system system
|
||||
mkdir /data/misc/dts 0770 media audio
|
||||
mkdir /data/vendor/hbtp 0750 system system
|
||||
mkdir /data/vendor/tloc 0700 system drmrpc
|
||||
|
||||
|
||||
#Create folder for mm-qcamera-daemon
|
||||
@@ -154,23 +173,23 @@ on boot
|
||||
start rmt_storage
|
||||
insmod /system/lib/modules/adsprpc.ko
|
||||
# access permission for secure touch
|
||||
chmod 0660 /sys/devices/soc/78b7000.i2c/i2c-3/3-0020/input/input0/secure_touch_enable
|
||||
chmod 0440 /sys/devices/soc/78b7000.i2c/i2c-3/3-0020/input/input0/secure_touch
|
||||
chmod 0660 /sys/devices/soc/78b8000.i2c/i2c-4/4-0020/input/input0/secure_touch_enable
|
||||
chmod 0440 /sys/devices/soc/78b8000.i2c/i2c-4/4-0020/input/input0/secure_touch
|
||||
chown system drmrpc /sys/devices/soc/78b7000.i2c/i2c-3/3-0020/input/input0/secure_touch_enable
|
||||
chown system drmrpc /sys/devices/soc/78b7000.i2c/i2c-3/3-0020/input/input0/secure_touch
|
||||
chown system drmrpc /sys/devices/soc/78b8000.i2c/i2c-4/4-0020/input/input0/secure_touch_enable
|
||||
chown system drmrpc /sys/devices/soc/78b8000.i2c/i2c-4/4-0020/input/input0/secure_touch
|
||||
chmod 0660 /sys/devices/soc.0/78b7000.i2c/i2c-3/3-0020/input/input0/secure_touch_enable
|
||||
chmod 0440 /sys/devices/soc.0/78b7000.i2c/i2c-3/3-0020/input/input0/secure_touch
|
||||
chmod 0660 /sys/devices/soc.0/78b8000.i2c/i2c-4/4-0020/input/input0/secure_touch_enable
|
||||
chmod 0440 /sys/devices/soc.0/78b8000.i2c/i2c-4/4-0020/input/input0/secure_touch
|
||||
chown system drmrpc /sys/devices/soc.0/78b7000.i2c/i2c-3/3-0020/input/input0/secure_touch_enable
|
||||
chown system drmrpc /sys/devices/soc.0/78b7000.i2c/i2c-3/3-0020/input/input0/secure_touch
|
||||
chown system drmrpc /sys/devices/soc.0/78b8000.i2c/i2c-4/4-0020/input/input0/secure_touch_enable
|
||||
chown system drmrpc /sys/devices/soc.0/78b8000.i2c/i2c-4/4-0020/input/input0/secure_touch
|
||||
|
||||
# Add a cpuset for the camera daemon
|
||||
# We want all cores for camera
|
||||
mkdir /dev/cpuset/camera-daemon
|
||||
write /dev/cpuset/camera-daemon/cpus 0-3
|
||||
write /dev/cpuset/camera-daemon/mems 0
|
||||
chown cameraserver cameraserver /dev/cpuset/camera-daemon
|
||||
chown cameraserver cameraserver /dev/cpuset/camera-daemon/tasks
|
||||
chmod 0660 /dev/cpuset/camera-daemon/tasks
|
||||
# Add a cpuset for the camera daemon
|
||||
# We want all cores for camera
|
||||
mkdir /dev/cpuset/camera-daemon
|
||||
write /dev/cpuset/camera-daemon/cpus 0-3
|
||||
write /dev/cpuset/camera-daemon/mems 0
|
||||
chown cameraserver cameraserver /dev/cpuset/camera-daemon
|
||||
chown cameraserver cameraserver /dev/cpuset/camera-daemon/tasks
|
||||
chmod 0660 /dev/cpuset/camera-daemon/tasks
|
||||
|
||||
####Regionalization config and prop files####
|
||||
chmod 0644 /persist/speccfg/spec
|
||||
|
||||
Reference in New Issue
Block a user