From 5e6dfc115b62c06e9657c0a35bbc4569a0308df1 Mon Sep 17 00:00:00 2001 From: Jesse Chan Date: Fri, 20 Apr 2018 00:11:15 -0700 Subject: [PATCH] universal7885: remove duplicate exfat/sdfat defines from platform sepolicy Signed-off-by: SamarV-121 --- BoardConfigCommon.mk | 3 +++ releasetools/releasetools.py | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 releasetools/releasetools.py diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 95c21c6..2b16e1d 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -66,6 +66,9 @@ BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true # Recovery TARGET_RECOVERY_FSTAB := $(COMMON_PATH)/rootdir/fstab.samsungexynos7885 +# Releasetools +TARGET_RELEASETOOLS_EXTENSIONS := $(COMMON_PATH)/releasetools + # Vendor TARGET_COPY_OUT_VENDOR := vendor diff --git a/releasetools/releasetools.py b/releasetools/releasetools.py new file mode 100644 index 0000000..627a2d7 --- /dev/null +++ b/releasetools/releasetools.py @@ -0,0 +1,5 @@ +def FullOTA_InstallEnd(info): + info.script.AppendExtra('mount("ext4", "EMMC", "/dev/block/platform/13500000.dwmmc0/by-name/SYSTEM", "/system");'); + info.script.AppendExtra('run_program("/sbin/sed", "-i", "/exfat/d", "/system/etc/selinux/plat_sepolicy.cil");'); + info.script.AppendExtra('run_program("/sbin/sed", "-i", "/sdfat/d", "/system/etc/selinux/plat_sepolicy.cil");'); + info.script.AppendExtra('unmount("/system");');