Merge "Move setup of the persist partition to init.persist.rc" into main
This commit is contained in:
commit
740512e745
4 changed files with 47 additions and 43 deletions
|
@ -1,8 +1,6 @@
|
||||||
on early-init
|
|
||||||
mount_all /vendor/etc/fstab.persist --early
|
|
||||||
|
|
||||||
on late-fs
|
on late-fs
|
||||||
mount_all /vendor/etc/fstab.efs --early
|
mount_all /vendor/etc/fstab.efs --early
|
||||||
|
# for modem related functions
|
||||||
restorecon_recursive /mnt/vendor/efs
|
restorecon_recursive /mnt/vendor/efs
|
||||||
chown radio system /mnt/vendor/efs
|
chown radio system /mnt/vendor/efs
|
||||||
restorecon_recursive /mnt/vendor/efs_backup
|
restorecon_recursive /mnt/vendor/efs_backup
|
||||||
|
|
43
conf/init.persist.rc
Normal file
43
conf/init.persist.rc
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
on early-init
|
||||||
|
mount_all /vendor/etc/fstab.persist --early
|
||||||
|
setprop ro.vendor.persist.status mounted
|
||||||
|
|
||||||
|
on property:ro.vendor.persist.status=mounted
|
||||||
|
# for battery defender
|
||||||
|
mkdir /mnt/vendor/persist/battery 0700 system system
|
||||||
|
|
||||||
|
# Camera factory calibration files
|
||||||
|
chmod 0771 /mnt/vendor/persist/camera
|
||||||
|
chmod 0771 /mnt/vendor/persist/camera/OTP_calibration
|
||||||
|
chmod 0771 /mnt/vendor/persist/camera/pdaf_calibration_data
|
||||||
|
mkdir /mnt/vendor/persist/camera/rear 0771 system camera
|
||||||
|
chmod 0771 /mnt/vendor/persist/camera/rear
|
||||||
|
|
||||||
|
restorecon_recursive /mnt/vendor/persist
|
||||||
|
restorecon_recursive /mnt/vendor/persist/aoc
|
||||||
|
restorecon_recursive /mnt/vendor/persist/audio
|
||||||
|
restorecon_recursive /mnt/vendor/persist/sensors
|
||||||
|
restorecon_recursive /mnt/vendor/persist/battery
|
||||||
|
restorecon_recursive /mnt/vendor/persist/camera
|
||||||
|
restorecon_recursive /mnt/vendor/persist/modem
|
||||||
|
# Set up display-related directories and permissions
|
||||||
|
# Add restorecon_recursive command to make sure the restorecon label is persist_display_file.
|
||||||
|
restorecon_recursive /mnt/vendor/persist/display
|
||||||
|
mkdir /mnt/vendor/persist/data/sfs 0700 system system
|
||||||
|
mkdir /mnt/vendor/persist/data/tz 0700 system system
|
||||||
|
mkdir /mnt/vendor/persist/touch 0770 system system
|
||||||
|
|
||||||
|
on property:ro.fstype.data=* && property:ro.vendor.persist.status=mounted
|
||||||
|
# Proxy for Secure Storage
|
||||||
|
mkdir /data/vendor/rebootescrow 0770 hsm hsm
|
||||||
|
mkdir /data/vendor/ss 0770 root system
|
||||||
|
mkdir /mnt/vendor/persist/ss 0770 root system
|
||||||
|
restorecon_recursive /mnt/vendor/persist/ss
|
||||||
|
symlink /mnt/vendor/persist/ss /data/vendor/ss/persist
|
||||||
|
chown root system /data/vendor/ss/persist
|
||||||
|
chmod 0770 /data/vendor/ss/persist
|
||||||
|
chown system system /data/vendor/ss/0
|
||||||
|
chown system system /data/vendor/ss/persist/0
|
||||||
|
chown system system /data/vendor/ss/persist/nsp
|
||||||
|
|
||||||
|
restart storageproxyd
|
|
@ -1,5 +1,6 @@
|
||||||
import /vendor/etc/init/hw/init.zumapro.usb.rc
|
import /vendor/etc/init/hw/init.zumapro.usb.rc
|
||||||
import /vendor/etc/init/hw/init.efs.rc
|
import /vendor/etc/init/hw/init.efs.rc
|
||||||
|
import /vendor/etc/init/hw/init.persist.rc
|
||||||
import android.hardware.drm@1.2-service.widevine.rc
|
import android.hardware.drm@1.2-service.widevine.rc
|
||||||
import init.exynos.sensorhub.rc
|
import init.exynos.sensorhub.rc
|
||||||
import /vendor/etc/init/hw/init.${ro.boot.hardware.platform}.soc.rc
|
import /vendor/etc/init/hw/init.${ro.boot.hardware.platform}.soc.rc
|
||||||
|
@ -268,13 +269,6 @@ on post-fs-data
|
||||||
chown system system /dev/ispolin_ranging
|
chown system system /dev/ispolin_ranging
|
||||||
chmod 0660 /dev/ispolin_ranging
|
chmod 0660 /dev/ispolin_ranging
|
||||||
|
|
||||||
# Factory calibration files
|
|
||||||
chmod 0771 /mnt/vendor/persist/camera
|
|
||||||
chmod 0771 /mnt/vendor/persist/camera/OTP_calibration
|
|
||||||
chmod 0771 /mnt/vendor/persist/camera/pdaf_calibration_data
|
|
||||||
mkdir /mnt/vendor/persist/camera/rear 0771 system camera
|
|
||||||
chmod 0771 /mnt/vendor/persist/camera/rear
|
|
||||||
|
|
||||||
# Audio dump and debug
|
# Audio dump and debug
|
||||||
mkdir /data/vendor/audio 0770 audio audio
|
mkdir /data/vendor/audio 0770 audio audio
|
||||||
|
|
||||||
|
@ -369,27 +363,10 @@ on property:persist.vendor.radio.no_modem_board=1
|
||||||
on fs
|
on fs
|
||||||
mount_all --early
|
mount_all --early
|
||||||
|
|
||||||
# for battery defender
|
|
||||||
mkdir /mnt/vendor/persist/battery 0700 system system
|
|
||||||
|
|
||||||
# Mount modem partition
|
# Mount modem partition
|
||||||
mount_all /vendor/etc/fstab.modem --early
|
mount_all /vendor/etc/fstab.modem --early
|
||||||
restorecon_recursive /mnt/vendor/modem_img
|
restorecon_recursive /mnt/vendor/modem_img
|
||||||
|
|
||||||
restorecon_recursive /mnt/vendor/persist
|
|
||||||
restorecon_recursive /mnt/vendor/persist/aoc
|
|
||||||
restorecon_recursive /mnt/vendor/persist/audio
|
|
||||||
restorecon_recursive /mnt/vendor/persist/sensors
|
|
||||||
restorecon_recursive /mnt/vendor/persist/battery
|
|
||||||
restorecon_recursive /mnt/vendor/persist/camera
|
|
||||||
restorecon_recursive /mnt/vendor/persist/modem
|
|
||||||
# Set up display-related directories and permissions
|
|
||||||
# Add restorecon_recursive command to make sure the restorecon label is persist_display_file.
|
|
||||||
restorecon_recursive /mnt/vendor/persist/display
|
|
||||||
mkdir /mnt/vendor/persist/data/sfs 0700 system system
|
|
||||||
mkdir /mnt/vendor/persist/data/tz 0700 system system
|
|
||||||
mkdir /mnt/vendor/persist/touch 0770 system system
|
|
||||||
|
|
||||||
# Permissions for ION
|
# Permissions for ION
|
||||||
chmod 0660 /sys/class/ion_cma/ion_video_ext/isolated
|
chmod 0660 /sys/class/ion_cma/ion_video_ext/isolated
|
||||||
chown system system /sys/class/ion_cma/ion_video_ext/isolated
|
chown system system /sys/class/ion_cma/ion_video_ext/isolated
|
||||||
|
@ -635,21 +612,6 @@ service bugreport /system/bin/dumpstate -d -p -z
|
||||||
oneshot
|
oneshot
|
||||||
keycodes 114 115 116
|
keycodes 114 115 116
|
||||||
|
|
||||||
# Proxy for Secure Storage
|
|
||||||
on post-fs-data
|
|
||||||
mkdir /data/vendor/rebootescrow 0770 hsm hsm
|
|
||||||
mkdir /data/vendor/ss 0770 root system
|
|
||||||
mkdir /mnt/vendor/persist/ss 0770 root system
|
|
||||||
restorecon_recursive /mnt/vendor/persist/ss
|
|
||||||
symlink /mnt/vendor/persist/ss /data/vendor/ss/persist
|
|
||||||
chown root system /data/vendor/ss/persist
|
|
||||||
chmod 0770 /data/vendor/ss/persist
|
|
||||||
chown system system /data/vendor/ss/0
|
|
||||||
chown system system /data/vendor/ss/persist/0
|
|
||||||
chown system system /data/vendor/ss/persist/nsp
|
|
||||||
|
|
||||||
restart storageproxyd
|
|
||||||
|
|
||||||
service storageproxyd /vendor/bin/storageproxyd \
|
service storageproxyd /vendor/bin/storageproxyd \
|
||||||
-d /dev/trusty-ipc-dev0 \
|
-d /dev/trusty-ipc-dev0 \
|
||||||
-r /dev/sg1 \
|
-r /dev/sg1 \
|
||||||
|
|
|
@ -451,7 +451,8 @@ PRODUCT_COPY_FILES += \
|
||||||
device/google/zumapro/conf/init.zumapro.soc.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.zumapro.soc.rc \
|
device/google/zumapro/conf/init.zumapro.soc.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.zumapro.soc.rc \
|
||||||
device/google/zumapro/conf/init.zuma.soc.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.zuma.soc.rc \
|
device/google/zumapro/conf/init.zuma.soc.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.zuma.soc.rc \
|
||||||
device/google/zumapro/conf/init.zumapro.board.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.zumapro.board.rc \
|
device/google/zumapro/conf/init.zumapro.board.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.zumapro.board.rc \
|
||||||
device/google/zumapro/conf/init.efs.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.efs.rc
|
device/google/zumapro/conf/init.efs.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.efs.rc \
|
||||||
|
device/google/zumapro/conf/init.persist.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.persist.rc
|
||||||
|
|
||||||
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue