#BOARD_KERNEL_CMDLINE := The bootloader ignores the cmdline from the boot.img
BOARD_KERNEL_SEPARATED_DT := true
TARGET_CUSTOM_DTBTOOL := dtbhtoolExynos
+BOARD_ROOT_EXTRA_FOLDERS += efs cpefs
+TARGET_FS_CONFIG_GEN := $(LOCAL_PATH)/config.fs
# Kernel
TARGET_KERNEL_ARCH := arm64
--- /dev/null
+[cpefs/]
+mode: 0771
+user: AID_SYSTEM
+group: AID_RADIO
+caps: 0
/dev/block/platform/13540000.dwmmc0/by-name/BOOT /boot emmc defaults defaults
/dev/block/platform/13540000.dwmmc0/by-name/OTA /misc emmc defaults defaults
/dev/block/platform/13540000.dwmmc0/by-name/RECOVERY /recovery emmc defaults defaults
+/dev/block/platform/13540000.dwmmc0/by-name/CPEFS /cpefs ext4 noatime,nosuid,nodev,noauto_da_alloc,discard,journal_async_commit,errors=panic wait,check
/dev/block/platform/13540000.dwmmc0/by-name/EFS /efs ext4 nosuid,nodev,noatime,noauto_da_alloc,discard,journal_async_commit,errors=panic wait,check
/dev/block/platform/13540000.dwmmc0/by-name/CACHE /cache f2fs rw,nosuid,nodev,noatime,nodiratime,inline_xattr wait,check
/dev/block/platform/13540000.dwmmc0/by-name/CACHE /cache ext4 nosuid,nodev,noatime,noauto_da_alloc,discard,journal_async_commit,errors=panic wait,check
on init
- mkdir /efs 0771 radio system
symlink /dev/block/platform/13540000.dwmmc0/by-name/RADIO /dev/mbin0
restorecon /dev/mbin0
write /sys/class/net/rmnet0/queues/rx-0/rps_cpus 6
chmod 0660 /sys/devices/virtual/misc/umts_dm0/dm_state
chown radio system /sys/devices/virtual/misc/umts_dm0/dm_state
-#For cpefs partition
- mkdir /cpefs 0771 radio system
- wait /dev/block/platform/13540000.dwmmc0/by-name/CPEFS
- exec /system/bin/e2fsck -p /dev/block/platform/13540000.dwmmc0/by-name/CPEFS
- mount ext4 /dev/block/platform/13540000.dwmmc0/by-name/CPEFS /cpefs noatime nosuid nodev barrier=1
- chown radio system /cpefs
- chmod 0771 /cpefs
-
# Parse hardware revision (needs to happen before cbd starts)
service modemloader /system/bin/modemloader
class core
mount debugfs /sys/kernel/debug /sys/kernel/debug mode=755
on init
- mkdir /preload 0771 system system
-
# RIL <-> audioserver comm
chmod 0644 /proc/cmdline
chmod 0660 /sys/class/mdnie/mdnie/lux
chown system system /sys/class/mdnie/mdnie/lux
-#For Absolute Persistence Partition
- mkdir /persdata 0755 system system
- mkdir /persdata/absolute 0750 system system
-
- wait /dev/block/platform/13540000.dwmmc0/by-name/PERSDATA
- exec /system/bin/e2fsck -p /dev/block/platform/13540000.dwmmc0/by-name/PERSDATA
- mount ext4 /dev/block/platform/13540000.dwmmc0/by-name/PERSDATA /persdata/absolute nosuid nodev barrier=1
-
- chown system system /persdata
- chmod 0755 /persdata
- chown system system /persdata/absolute
- chmod 0750 /persdata/absolute
-
# Permissions for TouchScreen
chown system radio /sys/class/sec/tsp/cmd
chown system system /sys/class/sec/tsp/input/enabled
/efs/prov_data(/.*)? u:object_r:prov_efs_file:s0
/efs/wifi(/.*)? u:object_r:wifi_efs_file:s0
/efs/wv\.keys u:object_r:cpk_efs_file:s0
+/cpefs(/.*)? u:object_r:sec_efs_file:s0
####################################
# data files