sdm660-common: Moving persist mount point to /mnt/vendor/persist
Move persist entry to fstab and mount at /mnt/vendor/persist Apply required user, group and permissions once persist folder is created through __mount and parititon is mounted. Run restorecon on /mnt/vendor/persist. Change-Id: I20a16f3669bc7abf9844525c6ba0db1521a5a8e2
This commit is contained in:
parent
bc02699357
commit
c743a9b88e
2 changed files with 53 additions and 34 deletions
|
@ -165,13 +165,12 @@ on boot
|
|||
chmod 0770 /sys/class/power_supply/battery/device/thermalcall
|
||||
chown system system /sys/class/power_supply/battery/device/thermalcall
|
||||
|
||||
mkdir /persist/drm 0770 system system
|
||||
mkdir /persist/bluetooth 0770 bluetooth bluetooth
|
||||
mkdir /persist/misc 0770 system system
|
||||
mkdir /mnt/vendor/persist/alarm 0770 system system
|
||||
mkdir /persist/time 0770 system system
|
||||
mkdir /mnt/vendor/persist/secnvm 0770 system system
|
||||
mkdir /persist/alarm 0770 system system
|
||||
mkdir /vendor/mnt/persist/drm 0770 system system
|
||||
mkdir /vendor/mnt/persist/bluetooth 0770 bluetooth bluetooth
|
||||
mkdir /vendor/mnt/persist/misc 0770 system system
|
||||
mkdir /vendor/mnt/persist/alarm 0770 system system
|
||||
mkdir /vendor/mnt/persist/time 0770 system system
|
||||
mkdir /vendor/mnt/persist/secnvm 0770 system system
|
||||
|
||||
#create port-bridge log dir
|
||||
mkdir /data/vendor/port_bridge 0770 radio radio
|
||||
|
@ -259,7 +258,7 @@ on boot
|
|||
chown system system /sys/class/sensors/apds9930-proximity/poll_delay
|
||||
|
||||
# Create directory used for display
|
||||
mkdir /persist/display 0770 system graphics
|
||||
mkdir /vendor/mnt/persist/display 0770 system graphics
|
||||
|
||||
# Create vpp directory
|
||||
mkdir /mnt/vendor/persist/vpp 0770 media media
|
||||
|
@ -375,10 +374,10 @@ on post-fs-data
|
|||
mkdir /data/vendor/modem_config 0570 radio root
|
||||
|
||||
# Mounting of persist is moved to 'on emmc-fs' and 'on fs' sections
|
||||
# We chown/chmod /persist again so because mount is run as root + defaults
|
||||
chown root system /persist
|
||||
chmod 0771 /persist
|
||||
chown system system /persist/WCNSS_qcom_wlan_nv.bin
|
||||
# We chown/chmod /vendor/mnt/persist again so because mount is run as root + defaults
|
||||
chown root system /vendor/mnt/persist
|
||||
chmod 0771 /vendor/mnt/persist
|
||||
chown system system /vendor/mnt/persist/WCNSS_qcom_wlan_nv.bin
|
||||
chmod 0664 /sys/devices/platform/msm_sdcc.1/polling
|
||||
chmod 0664 /sys/devices/platform/msm_sdcc.2/polling
|
||||
chmod 0664 /sys/devices/platform/msm_sdcc.3/polling
|
||||
|
@ -410,6 +409,14 @@ on post-fs-data
|
|||
mkdir /data/fota 0771
|
||||
chown system system /data/fota
|
||||
|
||||
# SSC/SLPI sensors
|
||||
mkdir /vendor/mnt/persist/sensors 0775 sensors sensors
|
||||
write /vendor/mnt/persist/sensors/sensors_settings 1
|
||||
chown system root /vendor/mnt/persist/sensors/sensors_settings
|
||||
chmod 0664 /vendor/mnt/persist/sensors/sensors_settings
|
||||
chown system system /vendor/mnt/persist/PRSensorData.txt
|
||||
chmod 0600 /vendor/mnt/persist/PRSensorData.txt
|
||||
|
||||
#Create directory for hostapd
|
||||
mkdir /data/hostapd 0770 system wifi
|
||||
|
||||
|
|
|
@ -64,6 +64,15 @@ on fs
|
|||
mkdir /mnt/vendor/persist/secnvm 0770 system system
|
||||
mkdir /mnt/vendor/persist/time 0770 system system
|
||||
restorecon_recursive /mnt/vendor/persist
|
||||
|
||||
mkdir /vendor/mnt/persist/wlan_bt 0777 root system
|
||||
#add by Quanyu.Lee for MI-feature
|
||||
#only needed on Factory version,DO NOT push to MIUI!
|
||||
chmod 0644 /vendor/mnt/persist/wlan_bt/bt.mac
|
||||
chmod 0644 /vendor/mnt/persist/wlan_bt/wlan.mac
|
||||
chown system system /vendor/mnt/persist/wlan_bt/bt.mac
|
||||
chown system system /vendor/mnt/persist/wlan_bt/wlan.mac
|
||||
|
||||
write /sys/kernel/boot_adsp/boot 1
|
||||
chown system system /dev/goodix_fp
|
||||
#chmod 0644 /dev/goodix_fp
|
||||
|
@ -86,6 +95,7 @@ on post-fs-data
|
|||
#D2SP has no hbtp feature
|
||||
# mkdir /data/vendor/hbtp 0750 system system
|
||||
#end
|
||||
mkdir /vendor/mnt/persist/qti_fp 0700 system system
|
||||
mkdir /data/misc/seemp 0700 system system
|
||||
mkdir /data/vendor/tloc 0700 system drmrpc
|
||||
|
||||
|
@ -108,24 +118,25 @@ on boot
|
|||
write /dev/cpuset/background/cpus 0-7
|
||||
write /dev/cpuset/system-background/cpus 0-7
|
||||
write /dev/cpuset/restricted/cpus 0-7
|
||||
|
||||
####Regionalization config and prop files####
|
||||
chmod 0644 /persist/speccfg/spec
|
||||
chmod 0644 /persist/speccfg/devicetype
|
||||
chmod 0644 /persist/speccfg/mbnversion
|
||||
chmod 0644 /persist/speccfg/.not_triggered
|
||||
chmod 0644 /persist/speccfg/vendor_ro.prop
|
||||
chmod 0644 /persist/speccfg/vendor_persist.prop
|
||||
chmod 0644 /persist/speccfg/submask
|
||||
chmod 0644 /persist/speccfg/partition
|
||||
chown system system /persist/speccfg/spec
|
||||
chown system system /persist/speccfg/devicetype
|
||||
chown system system /persist/speccfg/mbnversion
|
||||
chown system system /persist/speccfg/.not_triggered
|
||||
chown system system /persist/speccfg/vendor_ro.prop
|
||||
chown system system /persist/speccfg/vendor_persist.prop
|
||||
chown system system /persist/speccfg/submask
|
||||
chown system system /persist/speccfg/partition
|
||||
chown system system /mnt/vendor/persist/sensors/sns.reg
|
||||
chmod 0644 /vendor/mnt/persist/speccfg/spec
|
||||
chmod 0644 /vendor/mnt/persist/speccfg/devicetype
|
||||
chmod 0644 /vendor/mnt/persist/speccfg/mbnversion
|
||||
chmod 0644 /vendor/mnt/persist/speccfg/.not_triggered
|
||||
chmod 0644 /vendor/mnt/persist/speccfg/vendor_ro.prop
|
||||
chmod 0644 /vendor/mnt/persist/speccfg/vendor_persist.prop
|
||||
chmod 0644 /vendor/mnt/persist/speccfg/submask
|
||||
chmod 0644 /vendor/mnt/persist/speccfg/partition
|
||||
chown system system /vendor/mnt/persist/speccfg/spec
|
||||
chown system system /vendor/mnt/persist/speccfg/devicetype
|
||||
chown system system /vendor/mnt/persist/speccfg/mbnversion
|
||||
chown system system /vendor/mnt/persist/speccfg/.not_triggered
|
||||
chown system system /vendor/mnt/persist/speccfg/vendor_ro.prop
|
||||
chown system system /vendor/mnt/persist/speccfg/vendor_persist.prop
|
||||
chown system system /vendor/mnt/persist/speccfg/submask
|
||||
chown system system /vendor/mnt/persist/speccfg/partition
|
||||
|
||||
#spk pa-cal lct-20180914
|
||||
chmod 0664 /dev/tiload_node
|
||||
|
||||
|
@ -133,7 +144,12 @@ on boot
|
|||
mkdir /data/vendor/camera 0770 camera camera
|
||||
|
||||
# Wifi firmware reload path
|
||||
#add for display feature
|
||||
chown wifi wifi /sys/module/wlan/parameters/fwpath
|
||||
|
||||
# default country code
|
||||
setprop ro.boot.wificountrycode 00
|
||||
|
||||
#add for display feature
|
||||
chown system system /sys/class/graphics/fb0/msm_fb_ce
|
||||
chown system system /sys/class/graphics/fb0/msm_fb_cabc
|
||||
chown system system /sys/class/graphics/fb0/msm_fb_srgb
|
||||
|
@ -141,10 +157,6 @@ on boot
|
|||
chown system system /sys/class/graphics/fb0/msm_fb_cabc_movie
|
||||
chown system system /sys/class/graphics/fb0/msm_fb_cabc_still
|
||||
chown system system /sys/class/graphics/fb0/msm_fb_hbm
|
||||
chown wifi wifi /sys/module/wlan/parameters/fwpath
|
||||
|
||||
# default country code
|
||||
setprop ro.boot.wificountrycode 00
|
||||
|
||||
#Peripheral manager
|
||||
service vendor.per_mgr /system/vendor/bin/pm-service
|
||||
|
|
Loading…
Reference in a new issue