summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Hexen <SyberHexen@gmail.com>2023-10-26 06:02:09 -0700
committerNolen Johnson <johnsonnolen@gmail.com>2023-11-12 13:21:09 -0500
commitf7763471434f437c9ee27aa5d98b79ddc24cc02b (patch)
tree488b9e8a023f76243d3236b76c40f553f9b92443
parent0c8b6610247aaea3cfa56aa24011d45a2d12f144 (diff)
msm8998-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 <SyberHexen@gmail.com> Change-Id: Ic7acabbe16d66740b3aee414be60c24d3a0de43d
-rw-r--r--BoardConfigCommon.mk3
-rw-r--r--sepolicy/vendor/file_contexts1
2 files changed, 4 insertions, 0 deletions
diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk
index a8709e03..93f2aa4b 100644
--- a/BoardConfigCommon.mk
+++ b/BoardConfigCommon.mk
@@ -110,6 +110,9 @@ TARGET_USERIMAGES_USE_EXT4 := true
TARGET_USERIMAGES_USE_F2FS := true
TARGET_COPY_OUT_VENDOR := vendor
+BOARD_ROOT_EXTRA_SYMLINKS := \
+ /vendor/fsg:/fsg
+
# Power
TARGET_USES_INTERACTION_BOOST := true
diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts
index e026bf38..c394ff0e 100644
--- a/sepolicy/vendor/file_contexts
+++ b/sepolicy/vendor/file_contexts
@@ -31,6 +31,7 @@
/dev/mmi_sys_temp u:object_r:thermal_device:s0
/dev/socket/perfd u:object_r:perfd_socket:s0
+/fsg u:object_r:fsg_firmware_file:s0
/(vendor|system/vendor)/fsg u:object_r:fsg_firmware_file:s0
/dev/v4l2-hal-ctrl u:object_r:video_device:s0