From 56d93f30a02ffb3f6d63d5d4753ba51455b8492b Mon Sep 17 00:00:00 2001 From: Andrew Hexen Date: Thu, 26 Oct 2023 06:02:09 -0700 Subject: [PATCH] sm7325-common: symlink vendor/fsg to system_root * Seems to be an issue where if modemst1/2 (efs) is wiped modem only looks for fsg to rebuild efs in the root_directory. * Even though this isn't correct it should allow radio to be easily flashed during future firmware upgrades as the stock radio.img is a container which flashes fsg/modem then passes the command to wipe modemst* Signed-off-by: Andrew Hexen Change-Id: Ic7acabbe16d66740b3aee414be60c24d3a0de43d --- BoardConfigCommon.mk | 3 +++ sepolicy/vendor/file_contexts | 1 + 2 files changed, 4 insertions(+) diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 017939c..f95a0c4 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -64,6 +64,9 @@ TARGET_KERNEL_CONFIG := vendor/lahaina-qgki_defconfig vendor/lineage_moto-lahain BOARD_USES_QCOM_HARDWARE := true TARGET_BOARD_PLATFORM := lahaina +BOARD_ROOT_EXTRA_SYMLINKS := \ + /vendor/fsg:/fsg + # A/B AB_OTA_UPDATER := true diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index 91071bc..9a8e7d9 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -15,6 +15,7 @@ /dev/block/platform/soc/1d84000\.ufshc/by-name/utagsBackup u:object_r:vendor_utags_block_device:s0 # Partition Mountpoints +/fsg u:object_r:fsg_file:s0 /(vendor|system/vendor)/fsg u:object_r:fsg_file:s0 /(vendor|system/vendor)/super_fsg u:object_r:fsg_file:s0 /(vendor|system/vendor)/super_modem u:object_r:firmware_file:s0