X6837: Initial vendor tree & Sync with device tree

Change-Id: I13901a5404039adff809813c283deec88917c82f
Signed-off-by: vlxlxlv <fajarslebew31@gmail.com>
This commit is contained in:
2026-04-26 08:01:00 +02:00
commit 0b994b644b
1812 changed files with 161296 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
on init
#create mountpoint for /mnt/vendor/persist partition
mkdir /mnt/vendor/persist 0771 system system
on post-fs
chown system system /mnt/vendor/persist
chmod 0771 /mnt/vendor/persist
# We restorecon /mnt/vendor/persist to set SEPolicy label.
restorecon /mnt/vendor/persist
# Create mcRegistry to store failure record
mkdir /mnt/vendor/persist/mcRegistry 0771 system system
mkdir /mnt/vendor/persist/paytrigger
chown system system /mnt/vendor/persist/paytrigger
chmod 0777 /mnt/vendor/persist/paytrigger
on post-fs-data
# Create /data/vendor/key_provisioning dir and get proper encryption policy installed
# Key Installation
mkdir /data/vendor/key_provisioning 0771 system system
# For META/FACTORY mode
on property:ro.crypto.state=unencrypted
write /proc/bootprof "MOBICORE: create /data/vendor/mcRegistry ++ (unencrypted)"
mkdir /data/vendor/mcRegistry 0775 system system
write /proc/bootprof "MOBICORE: create /data/vendor/mcRegistry -- (unencrypted)"
# Normal mode, FBE
on property:ro.crypto.type=file && property:ro.crypto.state=encrypted
write /proc/bootprof "MOBICORE: create /data/vendor/mcRegistry ++ (FBE encrypted)"
mkdir /data/vendor/mcRegistry 0775 system system
write /proc/bootprof "MOBICORE: create /data/vendor/mcRegistry -- (FBE encrypted)"
# Normal mode, FDE
on property:vold.decrypt=trigger_restart_framework
write /proc/bootprof "MOBICORE: create /data/vendor/mcRegistry ++ (FDE encrypted)"
mkdir /data/vendor/mcRegistry 0775 system system
write /proc/bootprof "MOBICORE: create /data/vendor/mcRegistry -- (FDE encrypted)"