Просмотр исходного кода

Redo the device tree, update kernel for BPH bootloader

Kernel version now shows 1.0 since based on new universal8890
tree release for gracelte instead.

Change-Id: I04c6b0d66284721234983c3f9848c3394195d42b
James Christopher Adduono 10 лет назад
Родитель
Сommit
ebd2067766

+ 32 - 0
Android.mk

@@ -0,0 +1,32 @@
+#
+# Copyright 2012 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+# This contains the module build definitions for the hardware-specific
+# components for this device.
+#
+# As much as possible, those components should be built unconditionally,
+# with device-specific names to avoid collisions, to avoid device-specific
+# bitrot and build breakages. Building a component unconditionally does
+# *not* include it on all devices, so it is safe even with hardware-specific
+# components.
+
+ifneq ($(filter hero2lte,$(TARGET_DEVICE)),)
+
+LOCAL_PATH := $(call my-dir)
+
+include $(call all-makefiles-under,$(LOCAL_PATH))
+
+endif

+ 0 - 5
AndroidBoard.mk

@@ -1,5 +0,0 @@
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-
-ALL_PREBUILT += $(INSTALLED_KERNEL_TARGET)

+ 37 - 21
AndroidProducts.mk

@@ -1,10 +1,11 @@
-USE_CAMERA_STUB := true
+DEVICE_TREE := device/samsung/hero2lte
 
+# Bootloader
 TARGET_NO_BOOTLOADER := true
-TARGET_BOOTLOADER_BOARD_NAME := samsungexynos8890
+TARGET_BOOTLOADER_BOARD_NAME := universal8890
 
 # Platform
-TARGET_BOARD_PLATFORM := exynos8890
+TARGET_BOARD_PLATFORM := exynos5
 TARGET_BOARD_PLATFORM_GPU := mali-t880mp12
 
 # Flags
@@ -17,46 +18,55 @@ TARGET_ARCH := arm64
 TARGET_ARCH_VARIANT := armv8-a
 TARGET_CPU_ABI := arm64-v8a
 TARGET_CPU_ABI2 :=
-TARGET_CPU_VARIANT := generic
+TARGET_CPU_VARIANT := cortex-a53
 TARGET_CPU_SMP := true
 
 TARGET_2ND_ARCH := arm
 TARGET_2ND_ARCH_VARIANT := armv7-a-neon
 TARGET_2ND_CPU_ABI := armeabi-v7a
 TARGET_2ND_CPU_ABI2 := armeabi
-TARGET_2ND_CPU_VARIANT := generic
+TARGET_2ND_CPU_VARIANT := cortex-a53
 
+# Kernel
+TARGET_USES_UNCOMPRESSED_KERNEL := true
+#TARGET_KERNEL_SOURCE := kernel/samsung/universal8890
 TARGET_KERNEL_ARCH := arm64
 TARGET_KERNEL_HEADER_ARCH := arm64
-TARGET_USES_UNCOMPRESSED_KERNEL := true
+TARGET_KERNEL_CONFIG := twrp_defconfig
+TARGET_KERNEL_DEVICE_DEFCONFIG := device_hero2lte
+TARGET_KERNEL_VARIANT_DEFCONFIG := variant_hero2lte_xx
+
+TARGET_PREBUILT_KERNEL := $(DEVICE_TREE)/Image
+TARGET_PREBUILT_DTB := $(DEVICE_TREE)/dtb.img
+
+# DTB
+TARGET_DTBH_PLATFORM_CODE := 0x000050a6
+TARGET_DTBH_SUBTYPE_CODE  := 0x217584da
 
+# Boot image
 BOARD_KERNEL_CMDLINE := # Exynos doesn't take cmdline arguments from boot image
 BOARD_KERNEL_BASE := 0x10000000
 BOARD_KERNEL_PAGESIZE := 2048
 # 000RU = recovery kernel, 000KU = system kernel
 BOARD_MKBOOTIMG_ARGS := --kernel_offset 0x00008000 --ramdisk_offset 0x01000000 --tags_offset 0x00000100 --board SRPOI30A000RU
+BOARD_CUSTOM_BOOTIMG_MK :=  $(DEVICE_TREE)/bootimg.mk
 
+# Partitions
 BOARD_BOOTIMAGE_PARTITION_SIZE     := 0x002800000
 BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x002E00000
-BOARD_SYSTEMIMAGE_PARTITION_SIZE   := 0x10CC00000
+BOARD_SYSTEMIMAGE_PARTITION_SIZE   := 0x16A800000
 BOARD_USERDATAIMAGE_PARTITION_SIZE := 0x64BFFB000 # 0x64C000000 - 20480 (footer)
-BOARD_CACHEIMAGE_PARTITION_SIZE    := 0x00C800000
+BOARD_CACHEIMAGE_PARTITION_SIZE    := 0x00FA00000
 BOARD_FLASH_BLOCK_SIZE := 131072
 
-TARGET_PREBUILT_KERNEL := device/samsung/hero2lte/Image
-TARGET_PREBUILT_DTB := device/samsung/hero2lte/dtb.img
-
-# Use this flag if the board has a ext4 partition larger than 2gb
+# File systems
 BOARD_HAS_LARGE_FILESYSTEM := true
 TARGET_USERIMAGES_USE_EXT4 := true
 TARGET_USERIMAGES_USE_F2FS := true
-BOARD_SUPPRESS_SECURE_ERASE := true
-BOARD_CUSTOM_BOOTIMG_MK :=  device/samsung/hero2lte/bootimg.mk
 
 # TWRP specific build flags
 TW_THEME := portrait_hdpi
 RECOVERY_SDCARD_ON_DATA := true
-BOARD_HAS_NO_REAL_SDCARD := true
 TARGET_RECOVERY_PIXEL_FORMAT := "ABGR_8888"
 TARGET_USE_CUSTOM_LUN_FILE_PATH := "/sys/devices/15400000.usb/15400000.dwc3/gadget/lun%d/file"
 TW_BRIGHTNESS_PATH := "/sys/devices/13900000.dsim/backlight/panel/brightness"
@@ -64,20 +74,26 @@ TW_MAX_BRIGHTNESS := 255
 TW_DEFAULT_BRIGHTNESS := 162
 TW_NO_REBOOT_BOOTLOADER := true
 TW_HAS_DOWNLOAD_MODE := true
+TW_INCLUDE_NTFS_3G := true
+# exFAT drivers included in the kernel
 TW_NO_EXFAT_FUSE := true
-TW_MTP_DEVICE := "/dev/mtp_usb"
+# No love for the wicked (device ships with M)
 TW_EXCLUDE_SUPERSU := true
 
 # Encryption support
-# - Only enable standard crypto for now to support AOSP/CM crypto
 TW_INCLUDE_CRYPTO := true
+# Samsung's encryption is currently unsupported
 #TW_INCLUDE_CRYPTO_SAMSUNG := true
 #TARGET_HW_DISK_ENCRYPTION := true
-#TARGET_KEYMASTER_WAIT_FOR_QSEE := true
+
+# Asian region languages
+TW_EXTRA_LANGUAGES := true
+
+# Debug flags
 #TWRP_INCLUDE_LOGCAT := true
-#TARGET_USES_LOGD := true
 
 # Init properties from bootloader version, ex. model info
 TARGET_UNIFIED_DEVICE := true
-TARGET_INIT_VENDOR_LIB := libinit_exynos
-TARGET_LIBINIT_DEFINES_FILE := device/samsung/hero2lte/init/init_hero2lte.cpp
+TARGET_INIT_VENDOR_LIB := libinit_hero2lte
+TARGET_RECOVERY_DEVICE_MODULES := libinit_hero2lte
+TARGET_LIBINIT_DEFINES_FILE := $(DEVICE_TREE)/init/init_hero2lte.cpp


+ 1 - 2
README.md

@@ -11,5 +11,4 @@ Add to `.repo/local_manifests/hero2lte.xml`:
 
 Then run `repo sync` to check it out.
 
-Kernel sources are available at: https://github.com/jcadduono/nethunter_kernel_herolte/tree/twrp-6.0
-
+Kernel sources are available at: https://github.com/jcadduono/android_kernel_samsung_universal8890/tree/twrp-6.0

+ 8 - 15
bootimg.mk

@@ -1,4 +1,4 @@
-MKBOOTIMG := device/samsung/hero2lte/mkbootimg
+LOCAL_PATH := $(call my-dir)
 
 FLASH_IMAGE_TARGET ?= $(PRODUCT_OUT)/recovery.tar
 
@@ -6,19 +6,12 @@ ifdef TARGET_PREBUILT_DTB
 	BOARD_MKBOOTIMG_ARGS += --dt $(TARGET_PREBUILT_DTB)
 endif
 
-INSTALLED_RECOVERYIMAGE_TARGET := $(PRODUCT_OUT)/recovery.img
-$(INSTALLED_RECOVERYIMAGE_TARGET): $(recovery_ramdisk)
-	@echo "------- Making recovery image -------"
-	$(hide) $(MKBOOTIMG) \
-		--kernel $(TARGET_PREBUILT_KERNEL) \
-		--ramdisk $(PRODUCT_OUT)/ramdisk-recovery.img \
-		--cmdline "$(BOARD_KERNEL_CMDLINE)" \
-		--base $(BOARD_KERNEL_BASE) \
-		--pagesize $(BOARD_KERNEL_PAGESIZE) \
-		$(BOARD_MKBOOTIMG_ARGS) \
-		-o $(INSTALLED_RECOVERYIMAGE_TARGET)
-	@echo "------- Made recovery image: $@ -------"
+$(INSTALLED_RECOVERYIMAGE_TARGET): $(MKBOOTIMG) $(INSTALLED_DTIMAGE_TARGET) $(recovery_kernel) $(recovery_ramdisk)
+	@echo -e ${CL_GRN}"----- Making recovery image ------"${CL_RST}
+	$(hide) $(MKBOOTIMG) $(INTERNAL_RECOVERYIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) --output $@ --ramdisk $(recovery_ramdisk)
+	@echo -e ${CL_CYN}"Made recovery image: $@"${CL_RST}
+	@echo -e ${CL_GRN}"----- Lying about SEAndroid state to Samsung bootloader ------"${CL_RST}
 	$(hide) echo -n "SEANDROIDENFORCE" >> $(INSTALLED_RECOVERYIMAGE_TARGET)
-	@echo "------- Lied about SEAndroid state to Samsung bootloader -------"
+	$(hide) $(call assert-max-image-size,$@,$(BOARD_RECOVERYIMAGE_PARTITION_SIZE),raw)
 	$(hide) tar -C $(PRODUCT_OUT) -H ustar -c recovery.img > $(FLASH_IMAGE_TARGET)
-	@echo "------- Made flashable image: $(FLASH_IMAGE_TARGET) -------"
+	@echo -e ${CL_CYN}"Made Odin flashable recovery tar: ${FLASH_IMAGE_TARGET}"${CL_RST}


+ 9 - 0
init/Android.mk

@@ -0,0 +1,9 @@
+LOCAL_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE_TAGS := optional
+LOCAL_C_INCLUDES := system/core/init
+LOCAL_CFLAGS := -Wall
+LOCAL_SRC_FILES := init_hero2lte.cpp
+LOCAL_MODULE := libinit_hero2lte
+include $(BUILD_STATIC_LIBRARY)

+ 5 - 4
init/init_hero2lte.cpp

@@ -33,9 +33,7 @@
 #include "property_service.h"
 #include "util.h"
 
-#include "init_exynos.h"
-
-void init_exynos_properties(void)
+void vendor_load_properties()
 {
 	char bootloader[PROP_VALUE_MAX];
 
@@ -44,16 +42,19 @@ void init_exynos_properties(void)
 	if (strstr(bootloader, "G935W8")) {
 		/* Canada */
 		property_set("ro.product.model", "SM-G935W8");
+		property_set("ro.product.name", "hero2ltebmc");
 	} else if (strstr(bootloader, "G935X")) {
 		/* store model / prerelease */
 		property_set("ro.product.model", "SM-G935X");
+		property_set("ro.product.name", "hero2ltexx");
 	} else if (strstr(bootloader, "G935FD")) {
 		/* international duos */
 		property_set("ro.product.model", "SM-G935FD");
+		property_set("ro.product.name", "hero2ltexx");
 	} else {
 		/* all other variants become international */
 		property_set("ro.product.model", "SM-G935F");
+		property_set("ro.product.name", "hero2ltexx");
 	}
-	property_set("ro.product.name", "hero2lte");
 	property_set("ro.product.device", "hero2lte");
 }


+ 0 - 6
omni.dependencies

@@ -1,8 +1,2 @@
 [
-	{
-		"remote":"github",
-		"repository":"jcadduono/android_device_exynos_common",
-		"target_path":"device/exynos/common",
-		"revision":"android-6.0"
-	}
 ]

+ 6 - 1
omni_hero2lte.mk

@@ -1,11 +1,16 @@
 # Release name
 PRODUCT_RELEASE_NAME := hero2lte
 
-$(call inherit-product, build/target/product/embedded.mk)
+# Inherit from the common Open Source product configuration
+$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk)
 
 # Inherit from our custom product configuration
 $(call inherit-product, vendor/omni/config/common.mk)
 
+PRODUCT_PACKAGES += \
+	charger_res_images \
+	charger
+
 ## Device identifier. This must come after all inclusions
 PRODUCT_DEVICE := hero2lte
 PRODUCT_NAME := omni_hero2lte

+ 8 - 8
recovery.fstab

@@ -1,8 +1,8 @@
-/boot		emmc		/dev/block/platform/155a0000.ufs/by-name/BOOT
-/recovery		emmc		/dev/block/platform/155a0000.ufs/by-name/RECOVERY
-/system		ext4		/dev/block/platform/155a0000.ufs/by-name/SYSTEM
-/data		ext4		/dev/block/platform/155a0000.ufs/by-name/USERDATA	flags=encryptable=footer;length=-20480
-/cache		ext4		/dev/block/platform/155a0000.ufs/by-name/CACHE
-/efs			ext4		/dev/block/platform/155a0000.ufs/by-name/EFS		flags=backup=1;display="EFS"
-/external_sd	vfat		/dev/block/mmcblk0p1 /dev/block/mmcblk0			flags=display="Micro SDcard";storage;wipeingui;removable;settingsstorage
-/usbstorage	vfat		/dev/block/sde1 /dev/block/sde				flags=display="USB Storage";storage;wipeingui;removable
+/boot		emmc	/dev/block/platform/155a0000.ufs/by-name/BOOT
+/recovery	emmc	/dev/block/platform/155a0000.ufs/by-name/RECOVERY	flags=backup=1
+/system		ext4	/dev/block/platform/155a0000.ufs/by-name/SYSTEM
+/data		ext4	/dev/block/platform/155a0000.ufs/by-name/USERDATA	flags=encryptable=footer;length=-20480
+/cache		ext4	/dev/block/platform/155a0000.ufs/by-name/CACHE
+/efs		ext4	/dev/block/platform/155a0000.ufs/by-name/EFS		flags=backup=1;display="EFS"
+/external_sd	vfat	/dev/block/mmcblk0p1 /dev/block/mmcblk0			flags=display="Micro SDcard";storage;wipeingui;removable
+/usb-otg	vfat	/dev/block/sde1 /dev/block/sde				flags=display="USB-OTG";storage;wipeingui;removable

+ 8 - 12
recovery/root/fstab.samsungexynos8890

@@ -2,17 +2,13 @@
 # The filesystem that contains the filesystem checker binary (typically /system) cannot
 # specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
 
-#<src>									<mnt_point>	<type>	<mnt_flags and options>															<fs_mgr_flags>
-/dev/block/platform/155a0000.ufs/by-name/SYSTEM	/system		f2fs		ro																			wait
-/dev/block/platform/155a0000.ufs/by-name/SYSTEM	/system		ext4		ro,errors=panic																wait
-/dev/block/platform/155a0000.ufs/by-name/USERDATA	/data		f2fs		noatime,nosuid,nodev,nodiratime,discard,inline_xattr									wait,encryptable=footer
-/dev/block/platform/155a0000.ufs/by-name/USERDATA	/data		ext4		noatime,nosuid,nodev,noauto_da_alloc,discard,journal_async_commit,data=ordered,errors=panic	wait,encryptable=footer
-/dev/block/platform/155a0000.ufs/by-name/CACHE	/cache		f2fs		noatime,nosuid,nodev,nodiratime,discard,inline_xattr									wait
-/dev/block/platform/155a0000.ufs/by-name/CACHE	/cache		ext4		noatime,nosuid,nodev,noauto_da_alloc,discard,journal_async_commit,data=ordered,errors=panic	wait
-
-/dev/block/platform/155a0000.ufs/by-name/EFS		/efs			ext4		noatime,nosuid,nodev,noauto_da_alloc,discard,journal_async_commit,data=ordered,errors=panic	wait
+#<src>                                                  <mnt_point> <type>  <mnt_flags and options>                                                                        <fs_mgr_flags>
+/dev/block/platform/155a0000.ufs/by-name/SYSTEM         /system     ext4    ro,errors=panic                                                                                wait
+/dev/block/platform/155a0000.ufs/by-name/CACHE          /cache      ext4    noatime,nosuid,nodev,noauto_da_alloc,discard,journal_async_commit,data=ordered,errors=panic    wait,check
+/dev/block/platform/155a0000.ufs/by-name/USERDATA       /data       ext4    noatime,nosuid,nodev,noauto_da_alloc,discard,journal_async_commit,data=ordered,errors=panic    wait,check,forceencrypt=footer
+/dev/block/platform/155a0000.ufs/by-name/EFS            /efs        ext4    noatime,nosuid,nodev,noauto_da_alloc,discard,journal_async_commit,data=ordered,errors=panic    wait,check
 
 # VOLD
-/dev/block/platform/155a0000.ufs/by-name/HIDDEN	/preload		ext4		defaults																		voldmanaged=preload:auto
-/devices/15740000.dwmmc2/mmc_host/mmc*			auto			vfat		defaults																		voldmanaged=sdcard:auto
-/devices/15400000.usb/15400000.dwc3/xhci-hcd.2.auto/usb*	auto	auto		defaults																		voldmanaged=usb:auto
+/dev/block/platform/155a0000.ufs/by-name/HIDDEN          /preload    ext4    defaults    voldmanaged=preload:auto
+/devices/15740000.dwmmc2/mmc_host/mmc*                       auto    vfat    defaults    voldmanaged=sdcard:auto
+/devices/15400000.usb/15400000.dwc3/xhci-hcd.2.auto/usb*     auto    auto    defaults    voldmanaged=usb:auto

+ 15 - 0
recovery/root/init.recovery.samsungexynos8890.rc

@@ -0,0 +1,15 @@
+# Encryption support
+
+on init
+    chown system system /dev/ion
+    chmod 0664 /dev/ion
+
+service keystore /sbin/keystore /data/misc/keystore
+    class core
+    disabled
+    user root
+    group root keystore drmrpc system
+    seclabel u:r:recovery:s0
+
+#on property:ro.crypto.state=encrypted
+#    start keystore

+ 9 - 4
recovery/root/init.recovery.usb.rc

@@ -1,13 +1,17 @@
-on fs
-    setprop sys.usb.config none
-
+on init
     chown system system /sys/class/android_usb/android0/terminal_version
     chmod 0660 /sys/class/android_usb/android0/terminal_version
     chown system system /sys/devices/15400000.usb/15400000.dwc3/gadget/lun0/file
     chmod 0660 /sys/devices/15400000.usb/15400000.dwc3/gadget/lun0/file
 
+    write /sys/class/android_usb/android0/iSerial ${ro.serialno}
+    write /sys/class/android_usb/android0/f_rndis/manufacturer Samsung
+    write /sys/class/android_usb/android0/f_rndis/vendorID 04E8
     write /sys/class/android_usb/android0/f_rndis/wceis 1
-    write /sys/class/android_usb/android0/f_rndis/manufacturer ${ro.product.manufacturer}
+
+on boot
+    setprop sys.usb.config none
+
     write /sys/class/android_usb/android0/iManufacturer ${ro.product.manufacturer}
     write /sys/class/android_usb/android0/iProduct ${ro.product.model}
     write /sys/class/android_usb/android0/iSerial ${ro.serialno}
@@ -16,6 +20,7 @@ on fs
     write /sys/class/android_usb/android0/bDeviceProtocol 0
 
     # set up the usb mass storage lun
+    write /sys/class/android_usb/f_mass_storage/inquiry_string "Samsung"
     write /sys/devices/15400000.usb/15400000.dwc3/gadget/lun0/cdrom 0
     write /sys/devices/15400000.usb/15400000.dwc3/gadget/lun0/nofua 0
     write /sys/devices/15400000.usb/15400000.dwc3/gadget/lun0/ro 0

+ 173 - 57
recovery/root/prebuilt_file_contexts

@@ -350,8 +350,9 @@
 /dev/hsicctl.*                                  u:object_r:hsic_device:s0
 /dev/kgsl-3d0                                   u:object_r:gpu_device:s0
 /dev/mhi_pipe_.*                                u:object_r:mhi_device:s0
+/dev/bhi                                        u:object_r:bhi_device:s0
 /dev/msm_.*                                     u:object_r:audio_device:s0
-# SEC removed : /dev/usf1                                       u:object_r:usf_device:s0
+##SEC removed dup context : /dev/usf1                                       u:object_r:usf_device:s0
 /dev/msm_dsps                                   u:object_r:sensors_device:s0
 /dev/msm_thermal_query                          u:object_r:thermal_device:s0
 /dev/nfc-nci                                    u:object_r:nfc_device:s0
@@ -360,7 +361,7 @@
 /dev/qseecom                                    u:object_r:qseecom_device:s0
 /dev/seemplog                                   u:object_r:seemplog_device:s0
 /dev/radio0                                     u:object_r:fm_radio_device:s0
-# SEC removed : /dev/rtc0                                       u:object_r:rtc_device:s0
+##SEC removed dup context : /dev/rtc0                                       u:object_r:rtc_device:s0
 /dev/sensors                                    u:object_r:sensors_device:s0
 /dev/smd.*                                      u:object_r:smd_device:s0
 /dev/smem_log                                   u:object_r:smem_log_device:s0
@@ -373,8 +374,8 @@
 /dev/v4l-subdev.*                               u:object_r:camera_device:s0
 /dev/vm_bms                                     u:object_r:vm_bms_device:s0
 /dev/battery_data                               u:object_r:battery_data_device:s0
-#/dev/block/mmcblk1                              u:object_r:sd_device:s0
-#/dev/block/mmcblk1p1                            u:object_r:sd_device:s0
+##SEC removed dup context : /dev/block/mmcblk1                              u:object_r:sd_device:s0
+##SEC removed dup context : /dev/block/mmcblk1p1                            u:object_r:sd_device:s0
 /dev/ccid_bridge                                u:object_r:usb_uicc_device:s0
 /dev/subsys_.*                                  u:object_r:ssr_device:s0
 /dev/ramdump_.*                                 u:object_r:ramdump_device:s0
@@ -388,16 +389,17 @@
 /dev/dpl_ctrl                                   u:object_r:rmnet_device:s0
 /dev/wcnss_ctrl                                 u:object_r:wcnss_device:s0
 /dev/wcnss_wlan                                 u:object_r:wcnss_device:s0
-##SEC removed dup contexts, /dev/pta                                        u:object_r:pta_device:s0
+##SEC removed dup context : /dev/pta                                        u:object_r:pta_device:s0
 /dev/mdss_rotator                               u:object_r:graphics_device:s0
 /dev/hbtp_input                                 u:object_r:hbtp_device:s0
+/dev/hbtp_vm                                    u:object_r:hbtp_device:s0
 /dev/jdi-bu21150                                u:object_r:bu21150_device:s0
 /dev/voice_svc                                  u:object_r:voice_device:s0
 /dev/avtimer                                    u:object_r:avtimer_device:s0
-##SEC removed duplicated contexts,/dev/coresight-stm                              u:object_r:qdss_device:s0
-##SEC removed duplicated contexts,/dev/coresight-tmc-etf                          u:object_r:qdss_device:s0
-##SEC removed duplicated contexts,/dev/coresight-tmc-etr                          u:object_r:qdss_device:s0
-##SEC removed duplicated contexts,/dev/coresight-tmc-etr-stream                   u:object_r:qdss_device:s0
+##SEC removed dup context : /dev/coresight-stm                              u:object_r:qdss_device:s0
+##SEC removed dup context : /dev/coresight-tmc-etf                          u:object_r:qdss_device:s0
+##SEC removed dup context : /dev/coresight-tmc-etr                          u:object_r:qdss_device:s0
+##SEC removed dup context : /dev/coresight-tmc-etr-stream                   u:object_r:qdss_device:s0
 /dev/system_health_monitor                      u:object_r:system_health_monitor_device:s0
 /dev/qce                                        u:object_r:qce_device:s0
 /dev/msm-rng                                    u:object_r:rng_device:s0
@@ -415,7 +417,7 @@
 /dev/block/bootdevice/by-name/ssd               u:object_r:ssd_device:s0
 /dev/block/bootdevice/by-name/misc              u:object_r:misc_partition:s0
 #/dev/block/mmcblk0p13                          u:object_r:bootselect_device:s0
-#/dev/block/zram0                                u:object_r:swap_block_device:s0
+##SEC removed dup context : /dev/block/zram0                                u:object_r:swap_block_device:s0
 /dev/block/bootdevice/by-name/dip               u:object_r:dip_device:s0
 /dev/block/bootdevice/by-name/mdtp              u:object_r:mdtp_device:s0
 
@@ -488,6 +490,7 @@
 /system/bin/qmuxd                               u:object_r:qmuxd_exec:s0
 /system/bin/port-bridge                         u:object_r:port-bridge_exec:s0
 /system/bin/sensors.qcom                        u:object_r:sensors_exec:s0
+##SEC removed ambigious contexts:/system/bin/sns.*                               u:object_r:sensors_test_exec:s0
 /system/bin/test_diag                           u:object_r:diag_exec:s0
 /system/vendor/bin/thermal-engine               u:object_r:thermal-engine_exec:s0
 /system/bin/vm_bms                              u:object_r:vm_bms_exec:s0
@@ -531,7 +534,7 @@
 /system/bin/garden_app                          u:object_r:location_exec:s0
 /system/bin/gpsone_daemon                       u:object_r:location_exec:s0
 /system/vendor/bin/slim_daemon                  u:object_r:location_exec:s0
-# SEC removed : /system/bin/energy-awareness                    u:object_r:energyawareness_exec:s0
+##SEC removed dup context : /system/bin/energy-awareness                    u:object_r:energyawareness_exec:s0
 /system/vendor/bin/fidodaemon                   u:object_r:fidodaemon_exec:s0
 /system/bin/secotad                             u:object_r:secotad_exec:s0
 /system/vendor/bin/qseeproxydaemon              u:object_r:qseeproxy_exec:s0
@@ -539,9 +542,8 @@
 /system/bin/dts_eagle_service                   u:object_r:dtseagleservice_exec:s0
 /system/vendor/bin/qti                          u:object_r:qti_exec:s0
 /system/bin/wcnss_service                       u:object_r:wcnss_service_exec:s0
-# SEC added : wcnss_filter
-/system/bin/wcnss_filter                       u:object_r:wcnss_service_exec:s0
 /system/vendor/bin/hbtp_daemon                  u:object_r:hbtp_exec:s0
+/system/vendor/bin/touch_fusion                 u:object_r:touchfusion_exec:s0
 /system/vendor/bin/seemp_healthd                u:object_r:seemp_health_daemon_exec:s0
 # SEC added : cld-fwlog-netlink
 /system/bin/cld-fwlog-netlink                       u:object_r:wcnss_service_exec:s0
@@ -551,7 +553,8 @@
 /system/bin/btsnoop                             u:object_r:btsnoop_exec:s0
 /system/bin/dun-server                          u:object_r:dun-server_exec:s0
 /system/bin/wfdservice                          u:object_r:wfdservice_exec:s0
-# SEC removed : /system/bin/wcnss_filter                        u:object_r:wcnss_filter_exec:s0
+## SEC changed exec type due to BT error : /system/bin/wcnss_filter                        u:object_r:wcnss_filter_exec:s0
+/system/bin/wcnss_filter                        u:object_r:wcnss_service_exec:s0
 /system/bin/usf_epos                            u:object_r:usf_exec:s0
 /system/bin/usf_gesture                         u:object_r:usf_exec:s0
 /system/bin/usf_hovering                        u:object_r:usf_exec:s0
@@ -566,6 +569,7 @@
 /system/bin/mcStarter                           u:object_r:mcStarter_exec:s0
 /system/bin/fstman                              u:object_r:fstman_exec:s0
 /system/vendor/bin/mdtp_service                 u:object_r:mdtpdaemon_exec:s0
+/system/vendor/bin/mdtpd                 u:object_r:mdtpdaemon_exec:s0
 /system/bin/tloc_daemon                         u:object_r:tlocd_exec:s0
 
 ###################################
@@ -576,31 +580,31 @@
 #/sys/devices/[^/]+bcl[^/]+(/.*)?                                    u:object_r:sysfs_thermal:s0
 # this code increase the booting time. so SEC changes from [^/]+bcl[^/]+(/.*)? to qcom,bcl.*(/.*)?
 /sys/devices/qcom,bcl.*(/.*)?                                       u:object_r:sysfs_thermal:s0
-/sys/devices/f9200000.*/power_supply/usb(/.*)?                      u:object_r:sysfs_usb_supply:s0
-/sys/devices/msm_dwc3/power_supply/usb(/.*)?                        u:object_r:sysfs_usb_supply:s0
-/sys/devices/msm_otg/power_supply/usb(/.*)?                         u:object_r:sysfs_usb_supply:s0
+# SEC Remove to cover class symlink /sys/devices/f9200000.*/power_supply/usb(/.*)?                      u:object_r:sysfs_usb_supply:s0
+# SEC Remove to cover class symlink /sys/devices/msm_dwc3/power_supply/usb(/.*)?                        u:object_r:sysfs_usb_supply:s0
+# SEC Remove to cover class symlink /sys/devices/msm_otg/power_supply/usb(/.*)?                         u:object_r:sysfs_usb_supply:s0
 /sys/devices/platform/battery_current_limit                         u:object_r:sysfs_thermal:s0
-/sys/devices/qpnp-charger.*/power_supply/battery(/.*)?              u:object_r:sysfs_battery_supply:s0
+# SEC Remove to cover class symlink /sys/devices/qpnp-charger.*/power_supply/battery(/.*)?              u:object_r:sysfs_battery_supply:s0
 /sys/devices/system/cpu/cpu0/rq-stats/*                             u:object_r:sysfs_rqstats:s0
-# SEC Remove because of restorecon_recursive_symlink /sys/devices/virtual/graphics/fb([0-2])+/idle_time                  u:object_r:sysfs_graphics:s0
-# SEC Remove because of restorecon_recursive_symlink /sys/devices/virtual/graphics/fb([0-2])+/dynamic_fps                u:object_r:sysfs_graphics:s0
-# SEC Remove because of restorecon_recursive_symlink /sys/devices/virtual/graphics/fb([0-2])+/product_description        u:object_r:sysfs_graphics:s0
-# SEC Remove because of restorecon_recursive_symlink /sys/devices/virtual/graphics/fb([0-2])+/vendor_name                u:object_r:sysfs_graphics:s0
-# SEC Remove because of restorecon_recursive_symlink /sys/devices/virtual/graphics/fb([0-2])+/hdcp/tp                    u:object_r:sysfs_graphics:s0
+# SEC Remove to cover class symlink /sys/devices/virtual/graphics/fb([0-2])+/idle_time                  u:object_r:sysfs_graphics:s0
+# SEC Remove to cover class symlink /sys/devices/virtual/graphics/fb([0-2])+/dynamic_fps                u:object_r:sysfs_graphics:s0
+# SEC Remove to cover class symlink /sys/devices/virtual/graphics/fb([0-2])+/product_description        u:object_r:sysfs_graphics:s0
+# SEC Remove to cover class symlink /sys/devices/virtual/graphics/fb([0-2])+/vendor_name                u:object_r:sysfs_graphics:s0
+# SEC Remove to cover class symlink /sys/devices/virtual/graphics/fb([0-2])+/hdcp/tp                    u:object_r:sysfs_graphics:s0
 /sys/devices/virtual/hsicctl/hsicctl1[0-9]/modem_wait               u:object_r:sysfs_hsic_modem_wait:s0
 /sys/devices/virtual/hsicctl/hsicctl[0-9]/modem_wait                u:object_r:sysfs_hsic_modem_wait:s0
 /sys/devices/virtual/smdpkt/smdcntl1[0-9]/open_timeout              u:object_r:sysfs_smd_open_timeout:s0
 /sys/devices/virtual/smdpkt/smdcntl[0-9]/open_timeout               u:object_r:sysfs_smd_open_timeout:s0
-# SEC Remove because of restorecon_recursive_symlink /sys/devices/virtual/thermal(/.*)?                                  u:object_r:sysfs_thermal:s0
+# SEC Remove to cover class symlink /sys/devices/virtual/thermal(/.*)?                                  u:object_r:sysfs_thermal:s0
 /sys/module/msm_serial_hs/parameters/debug_mask                     u:object_r:sysfs_msmuart_file:s0
 /sys/module/msm_thermal(/.*)?                                       u:object_r:sysfs_thermal:s0
 /sys/module/msm_thermal/core_control/cpus_offlined                  u:object_r:sysfs_mpdecision:s0
-/sys/devices/f9a55000.*/power_supply/usb(/.*)?                      u:object_r:sysfs_usb_supply:s0
-# SEC Remove because of restorecon_recursive_symlink /sys/devices/virtual/graphics/fb([0-2])+/hpd                        u:object_r:sysfs_graphics:s0
-# SEC Remove because of restorecon_recursive_symlink /sys/devices/virtual/graphics/fb([0-2])+/res_info                   u:object_r:sysfs_graphics:s0
-# SEC Remove because of restorecon_recursive_symlink /sys/devices/virtual/graphics/fb([0-2])+/s3d_mode                   u:object_r:sysfs_graphics:s0
-# SEC Remove because of restorecon_recursive_symlink /sys/class/graphics/fb([0-2])+/mdp/caps                             u:object_r:sysfs_graphics:s0
-# SEC Remove because of restorecon_recursive_symlink /sys/class/graphics/fb([0-2])+/ad                                   u:object_r:sysfs_graphics:s0
+# SEC Remove to cover class symlink /sys/devices/f9a55000.*/power_supply/usb(/.*)?                      u:object_r:sysfs_usb_supply:s0
+# SEC Remove to cover class symlink /sys/devices/virtual/graphics/fb([0-2])+/hpd                        u:object_r:sysfs_graphics:s0
+# SEC Remove to cover class symlink /sys/devices/virtual/graphics/fb([0-2])+/res_info                   u:object_r:sysfs_graphics:s0
+# SEC Remove to cover class symlink /sys/devices/virtual/graphics/fb([0-2])+/s3d_mode                   u:object_r:sysfs_graphics:s0
+# SEC Remove to cover class symlink /sys/class/graphics/fb([0-2])+/mdp/caps                             u:object_r:sysfs_graphics:s0
+# SEC Remove to cover class symlink /sys/class/graphics/fb([0-2])+/ad                                   u:object_r:sysfs_graphics:s0
 /sys/bus/platform/drivers/xhci_msm_hsic(/.*)?                       u:object_r:sysfs_hsic:s0
 /sys/devices/msm_hsic_host/host_ready                               u:object_r:sysfs_hsic_host_rdy:s0
 /sys/bus/esoc(/.*)?                                                 u:object_r:sysfs_esoc:s0
@@ -623,10 +627,11 @@
 /data/misc/sensors(/.*)?                                            u:object_r:sensors_data_file:s0
 /data/rfs.*                                                         u:object_r:rfs_data_file:s0
 /data/hlos_rfs(/.*)?                                                u:object_r:rfs_shared_hlos_file:s0
+#SEC keepped camera_data_file, not camera_socket
 /data/camera(/.*)?                                                  u:object_r:camera_data_file:s0
 /data/misc/stargate(/.*)?                                           u:object_r:qfp-daemon_data_file:s0
 /data/system/sensors(/.*)?                                          u:object_r:sensors_data_file:s0
-# SEC removed : /data/time/*                                                        u:object_r:time_data_file:s0
+##SEC removed dup context : /data/time/*                                                        u:object_r:time_data_file:s0
 /data/nfc(/.*)?                                                     u:object_r:nfc_data_file:s0
 /data/system/perfd(/.*)?                                            u:object_r:mpctl_data_file:s0
 /data/misc/perfd(/.*)?                                              u:object_r:mpctl_socket:s0
@@ -647,7 +652,7 @@
 /data/misc/dts(/.*)?                                                u:object_r:dts_data_file:s0
 /data/misc/seemp(/.*)?                                              u:object_r:seemp_file:s0
 /data/misc/SelfHost(/.*)?                                           u:object_r:RIDL_data_file:s0
-# SEC added /data/misc/radio(/.*)?                                              u:object_r:radio_data_file:s0
+##SEC removed dup context : /data/misc/radio(/.*)?                                              u:object_r:radio_data_file:s0
 /data/misc/port_bridge(/.*)?                                        u:object_r:port_bridge_data_file:s0
 /data/misc/fm(/.*)?                                                 u:object_r:fm_data_file:s0
 /data/misc/audio_pp(/.*)?                                           u:object_r:audio_pp_data_file:s0
@@ -658,7 +663,7 @@
 ###################################
 # persist files
 #
-#/persist(/.*)?                                                      u:object_r:persist_file:s0
+##SEC removed dup context : /persist(/.*)?                                                      u:object_r:persist_file:s0
 /persist/bluetooth(/.*)?                                            u:object_r:persist_bluetooth_file:s0
 /persist/drm(/.*)?                                                  u:object_r:persist_drm_file:s0
 /persist/sensors(/.*)?                                              u:object_r:sensors_persist_file:s0
@@ -878,7 +883,14 @@
 #############################
 # productinfo files
 #
-/productinfo(/.*)?	u:object_r:prod_file:s0
+/productinfo(/.*)?      u:object_r:prod_file:s0
+#############################
+# systeminfo files
+#
+/systeminfo(/.*)?       u:object_r:prod_file:s0
+#############################
+# device files
+#
 #SEC remove: /dev/mali0		u:object_r:gpu_device:s0
 /dev/spipe_lte1         u:object_r:spipe_device:s0
 /dev/spipe_w4           u:object_r:audio_device:s0
@@ -900,67 +912,103 @@
 /dev/sprd_coda7l        u:object_r:video_device:s0
 /dev/sprd_vpp           u:object_r:video_device:s0
 /dev/sprd_jpg           u:object_r:graphics_device:s0
+
 /dev/sdiag_lte          u:object_r:slog_device:s0
 /dev/slog_lte           u:object_r:slog_device:s0
+
+/dev/iq_mem             u:object_r:slog_device:s0
 #SEC remove: /dev/ttyGS[0-9]         u:object_r:serial_device:s0
 /dev/stty_w0            u:object_r:tty_device:s0
 /dev/stty_w[0-9]*       u:object_r:radio_device:s0
 /dev/vser               u:object_r:serial_device:s0
 
 /dev/sttybt0            u:object_r:hci_attach_dev:s0
+/dev/autotst 		u:object_r:autotest_device:s0
 
 
 #SEC remove: /dev/socket/rild2        u:object_r:rild_socket:s0
 #SEC remove: /dev/socket/rild3        u:object_r:rild_socket:s0
 /dev/socket/srtserver    u:object_r:srt_socket:s0
 
-
-/dev/stty_w12            u:object_r:tty_device:s0
-/dev/stty_lte12          u:object_r:tty_device:s0
-/dev/stty_td12           u:object_r:tty_device:s0
-/dev/stty_lte31          u:object_r:tty_device:s0
-/dev/stty_lte[0-9]       u:object_r:radio_device:s0
-/dev/stty_lte10          u:object_r:radio_device:s0
-/dev/stty_lte11          u:object_r:tty_device:s0
+/dev/stty_td[0-9]*       u:object_r:tty_device:s0
+/dev/stty_lte[0-9]*      u:object_r:tty_device:s0
 
 /dev/Trout_FM            u:object_r:audio_device:s0
-#SEC removed: /dev/pipe                u:object_r:audio_device:s0
-/dev/sprd_efuse_otp      u:object_r:efuse_device:s0
-#SEC remove: /dev/block/mmcblk0p2     u:object_r:mmcblk_device:s0
-#SEC remove: /dev/block/mmcblk0p3     u:object_r:mmcblk_device:s0
-#SEC remove: /dev/block/mmcblk0p4     u:object_r:mmcblk_device:s0
+#SEC remove: /dev/pipe                u:object_r:audio_device:s0
+#SEC remove: /dev/block/mmcblk0p[0-9]* u:object_r:mmcblk_device:s0
 #SEC remove: /dev/block/mmcblk0boot0  u:object_r:mmcblk_device:s0
+#SEC remove: /dev/block/mmcblk0boot1  u:object_r:mmcblk_device:s0
+#SEC remove: /dev/block/mmcblk0p17    u:object_r:mmcblk_device:s0
+#SEC remove: /dev/block/mmcblk0p18    u:object_r:frp_block_device:s0
+#SEC remove: /dev/block/mmcblk0p19    u:object_r:mmcblk_device:s0
+#SEC remove: /dev/block/mmcblk0p21    u:object_r:mmcblk_device:s0
+#SEC remove: /dev/block/mmcblk0p22    u:object_r:mmcblk_device:s0
+#SEC remove: /dev/block/mmcblk0p23    u:object_r:mmcblk_device:s0
+#SEC remove: /dev/block/mmcblk1p1    u:object_r:mmcblk_device:s0
+/dev/sprd_efuse_otp      u:object_r:efuse_device:s0
 /dev/sprd_bm             u:object_r:bm_device:s0
+/dev/fm                  u:object_r:fm_device:s0
+/dev/spipe_lte[0-9]*     u:object_r:spipe_device:s0
+#SEC duplicated : /dev/power_ctl       u:object_r:wcn_device:s0
+/dev/download        u:object_r:wcn_device:s0
+/dev/block/platform/sdio_emmc/by-name/boot  u:object_r:boot_block_device:s0
+/dev/block/platform/sdio_emmc/by-name/recovery  u:object_r:recovery_block_device:s0
+/dev/block/platform/sdio_emmc/by-name/persist  u:object_r:frp_block_device:s0
 
 /dev/slog_w              u:object_r:slog_device:s0
 /dev/sdiag_w             u:object_r:slog_device:s0
 /dev/slog_wcn 		     u:object_r:slog_device:s0
 
+/dev/gnss_download        u:object_r:wcn_device:s0
+/dev/gnss_dbg        u:object_r:wcn_device:s0
+/dev/slog_gnss           u:object_r:slog_device:s0
+/dev/cgxdrv          u:object_r:gps_device:s0
+/dev/ttyV0           u:object_r:gps_device:s0
 
 #SEC remove: /dev/block/mmcblk0p[3-6] u:object_r:nv_mmcblk_device:s0
-/dev/spipe_w[0-9]        u:object_r:spipe_device:s0
+/dev/spipe_w[0-9]*        u:object_r:spipe_device:s0
 /dev/spipe_wcn[0-9]*     u:object_r:spipe_device:s0
 /dev/spipe_lte2          u:object_r:spipe_device:s0
-/dev/spipe_lte9          u:object_r:spipe_device:s0
+/dev/spipe_lte9      u:object_r:modemdriver_vpad_device:s0
 /dev/spipe_lte10          u:object_r:spipe_device:s0
 #############################
 # System files
 #
+/system/bin/data_on.sh  u:object_r:data_on_exec:s0
+/system/bin/data_off.sh u:object_r:data_off_exec:s0
 /system/bin/mplayer     u:object_r:mediaserver_exec:s0
+/system/bin/wcnd     	u:object_r:wcnd_exec:s0
 /system/bin/engpc       u:object_r:engpc_exec:s0
+/system/bin/autotest    u:object_r:autotest_exec:s0
+/system/bin/charge u:object_r:charge_exec:s0
 /system/xbin/zram.sh 	u:object_r:zram_exec:s0
 /system/xbin/srtd    	u:object_r:srtd_exec:s0
 /system/bin/refnotify   u:object_r:refnotify_exec:s0
-/system/bin/modemd u:object_r:rild_exec:s0
+/system/bin/modemd      u:object_r:rild_exec:s0
 /system/bin/phoneserver u:object_r:rild_exec:s0
-/system/bin/modem_control u:object_r:rild_exec:s0
+/system/bin/modem_control u:object_r:modem_control_exec:s0
 /system/bin/rild_sp u:object_r:rild_exec:s0
 /system/bin/cp_diskserver u:object_r:cp_diskserver_exec:s0
-
+#SEC duplicated : /system/bin/download    u:object_r:download_exec:s0
+/system/bin/gnss_download    u:object_r:gnss_download_exec:s0
+/system/bin/slogmodem	u:object_r:slogmodem_exec:s0
+/system/bin/factorytest u:object_r:factorytest_exec:s0
+/system/bin/phasecheckserver u:object_r:phasecheckserver_exec:s0
+/system/bin/tune2fs       u:object_r:fsck_exec:s0
+/system/bin/resize2fs     u:object_r:fsck_exec:s0
+/system/bin/GPSenseEngine       u:object_r:GPSenseEngine_exec:s0
+
+#SEC duplicated : /system/bin/batterysrv u:object_r:batterysrv_exec:s0
+#SEC duplicatd : /system/bin/gpsd        u:object_r:gpsd_exec:s0
+/system/bin/cmd_services       u:object_r:cmd_services_exec:s0
+/system/bin/modemDriver_vpad_main u:object_r:modemdriver_vpad_exec:s0
 /dev/block/zram0 u:object_r:zram_block_device:s0
 
 /system/bin/nvitemd u:object_r:nvitemd_exec:s0
-/system/bin/wcnd     	u:object_r:wcnd_exec:s0
+
+/data/modem_log(/.*)?	u:object_r:slogmodem_data:s0
+/data/local/englog(/.*)?    u:object_r:engpc_data:s0
+#SEC duplicated : /system/bin/thermald        u:object_r:thermald_exec:s0
 
 ############################
 #for sharkl64
@@ -973,6 +1021,38 @@
 
 # for core dump
 /data/corefile(/.*)?    u:object_r:coredump_file:s0
+
+# for hprofiles
+#SEC duplicated : /data/misc/hprofs(/.*)?   u:object_r:hprofs_file:s0
+
+# CP time synchronization FIFO
+/data/w_timesyncfifo	u:object_r:ts_fifo:s0
+/data/td_timesyncfifo	u:object_r:ts_fifo:s0
+/data/l_timesyncfifo	u:object_r:ts_fifo:s0
+
+#for factorytest
+/data/cg(/.*)? u:object_r:cg_file:s0
+/data/local/factorytest_log(/.*)?    u:object_r:mmitest_file:s0
+#for slog
+/system/bin/slog u:object_r:slogd_exec:s0
+/data/slog(/.*)? u:object_r:slog_file:s0
+
+#add for data/local/media
+/data/local/media(/.*)? u:object_r:media_data_file:s0
+
+# apr files
+/system/bin/collect_apr u:object_r:aprd_exec:s0
+/data/sprdinfo(/.*)? u:object_r:apr_data_file:s0
+/data/apr.conf u:object_r:apr_data_file:s0
+
+# for mlog
+/data/mlog(/.*)? u:object_r:mlog_file:s0
+
+#charge test file
+/data/.battery_nv		u:object_r:self_system_data_file:s0
+
+#GNSS
+/data/gnss(/.*)? u:object_r:gnss_file:s0
 #line 1 "vendor/samsung/common/sepolicy/model/file_contexts"
 ############################# 
 # Device node
@@ -1015,6 +1095,13 @@
 /sys/class/kgsl/kgsl-3d0/dispatch(/.*)?     --            u:object_r:sysfs_ss_writable:s0
 /sys/class/power_supply/battery/camera                    u:object_r:sysfs_app_writable:s0
 
+#line 1 "vendor/samsung/common/sepolicy/slsi_common/file_contexts"
+
+## CP daemon
+/system/bin/rild_exynos         u:object_r:rild_exec:s0
+/system/bin/rild_SIPC           u:object_r:rild_exec:s0
+/system/bin/dmd                 u:object_r:dmd_exec:s0
+
 #line 1 "vendor/samsung/common/sepolicy/marvell_common/file_contexts"
 
 ## SEC added ##
@@ -1041,12 +1128,12 @@
 
 /system/bin/batterysrv                 u:object_r:batterysrv_exec:s0
 /system/bin/download                   u:object_r:download_exec:s0
-/system/bin/collect_apr                u:object_r:collect_apr_exec:s0
-/system/bin/slog	u:object_r:slog_exec:s0
+/system/bin/ext_symlink.sh             u:object_r:ext_symlink_exec:s0
 /system/bin/sprd_res_monitor	u:object_r:sprd_res_monitor_exec:s0
 
 
 /dev/pipe(/.*)?                u:object_r:audio_device:s0
+/dev/rpipe(/.*)?                u:object_r:audio_device:s0
 /dev/power_ctl                 u:object_r:power_ctl_device:s0
 
 /data/misc/hprofs(/.*)?	u:object_r:dumplog_data_file:s0
@@ -1113,6 +1200,7 @@
 /dev/bcm2079x	u:object_r:nfc_device:s0
 /dev/bus/usb(/.*)?      u:object_r:usb_bus_device:s0
 /dev/cdma_.*		u:object_r:radio_device:s0
+/dev/context		u:object_r:context_device:s0
 # conflict with Qcom BSP, /dev/diag	u:object_r:diag_device:s0
 /dev/esfp[0-9]          u:object_r:fp_sensor_device:s0
 /dev/gnss_ipc                                         u:object_r:gps_device:s0
@@ -1133,6 +1221,7 @@
 /dev/p61		u:object_r:sem_device:s0
 /dev/pn547		u:object_r:nfc_device:s0
 /dev/power_on_alarm                                   u:object_r:alarm_device:s0
+/dev/scsc_h4_0                                        u:object_r:serial_device:s0
 /dev/sec-nfc		u:object_r:nfc_device:s0
 /dev/sec-nfc-fn		u:object_r:nfc_device:s0
 /dev/shtc1_sensor	u:object_r:sensor_device:s0
@@ -1149,6 +1238,8 @@
 /dev/socket/msockets(/.*)?	u:object_r:msockets_socket:s0
 /dev/socket/mtp(/.*)?           u:object_r:mtp_socket:s0
 /dev/socket/ppm     u:object_r:epm_socket:s0
+## TG request(simiso.kim, CP team) by email, 6.0.1, New socket to get iptables and tc command from rild to netd
+/dev/socket/qosd     u:object_r:qosd_socket:s0
 /dev/socket/rild[0-9]*	u:object_r:rild_socket:s0
 /dev/socket/rild-debug[0-9]* u:object_r:rild_debug_socket:s0
 /dev/socket/ss_conn_daemon      u:object_r:ss_conn_daemon_socket:s0
@@ -1157,12 +1248,16 @@
 /dev/socket/tz                  u:object_r:tz_socket:s0
 /dev/socket/uibc(/.*)?          u:object_r:uibc_socket:s0
 /dev/socket/vpnclientd          u:object_r:vpnclientd_socket:s0
+/dev/socket/vaultkeeper(/.*)?   u:object_r:vaultkeeper_socket:s0
 /dev/sound_trigger_boost        u:object_r:audio_device:s0
 /dev/ssp_sensorhub	u:object_r:input_device:s0
 /dev/ssp_data_injection	u:object_r:input_device:s0
 /dev/timerirq	u:object_r:timerirq_device:s0
 /dev/ttyGS[0-9]*	u:object_r:usb_serial_device:s0
 /dev/ttyUSB[0-9]*	u:object_r:usb_device:s0
+# SEA_site_M#92; requested by jh21.hwang
+# the B2B client requests some specific path range such as /dev/ttyUSB0 ~ /dev/ttyUSB30, /dev/ttyACM0 ~ /dev/ttyACM30
+/dev/ttyACM[0-9]*	u:object_r:usb_device:s0
 /dev/t-base-tui                    u:object_r:tui_device:s0
 /dev/tuihw	u:object_r:tz_device:s0
 /dev/tzdev	u:object_r:tz_device:s0
@@ -1324,11 +1419,14 @@
 /sys/class/devfreq/exynos5-busfreq-mif(/.*)? -- u:object_r:sysfs_exynos_writable:s0
 /sys/class/graphics/fb[0-9](/.*)?	-- u:object_r:sysfs_graphics:s0
 /sys/class/lcd(/.*)?	-- u:object_r:sysfs_lcd_writable:s0
+/sys/class/leds/moodlight/blink                       u:object_r:sysfs_led_writable:s0
+/sys/class/leds/smartglow/blink                       u:object_r:sysfs_led_writable:s0 
 /sys/class/mdnie(/.*)?	--                 u:object_r:sysfs_mdnie_writable:s0
 /sys/class/mst/mst_ftmdrv/transmit         u:object_r:sysfs_mst_writable:s0
 /sys/class/mstldo/mst_drv/transmit         u:object_r:sysfs_mst_writable:s0
 /sys/class/power_supply/battery(/.*)?	-- u:object_r:sysfs_battery_supply:s0
 /sys/class/power_supply/battery/music -- u:object_r:sysfs_music_power_writable:s0
+/sys/class/power_supply/usb(/.*)?	       --     u:object_r:sysfs_usb_supply:s0
 /sys/class/rfkill/rfkill[0-9]*/state -- u:object_r:sysfs_bluetooth_writable:s0
 /sys/class/rfkill/rfkill[0-9]*/type -- u:object_r:sysfs_bluetooth_writable:s0
 /sys/class/sec(/.*)?                --               u:object_r:sysfs_sec:s0
@@ -1348,6 +1446,7 @@
 /sys/class/dsm/maxdsm_cal(/.*)?                --     u:object_r:sysfs_ss_writable:s0
 /sys/class/earsmart/control/always_stream_fs_on       u:object_r:sysfs_ss_writable:s0
 /sys/class/host_notify(/.*)?                   --     u:object_r:sysfs_ss_writable:s0   
+/sys/class/leds/led_[1-4](/.*)?                --     u:object_r:sysfs_led_writable:s0   
 /sys/class/timed_output/vibrator/enable               u:object_r:sysfs_ss_writable:s0   
 /sys/class/ultrasonic/ultrasonic/data                 u:object_r:sysfs_ss_writable:s0 
 /sys/class/usb/otg/test                               u:object_r:sysfs_ss_writable:s0
@@ -1413,8 +1512,10 @@
 /system/bin/icd	u:object_r:icd_exec:s0
 /system/bin/insthk	u:object_r:insthk_exec:s0
 /system/bin/imsd	u:object_r:imsd_exec:s0
+/system/bin/iod	u:object_r:iod_exec:s0
 /system/bin/ipruleset	u:object_r:ipruleset_exec:s0
 /system/bin/IPSecService	u:object_r:IPSecService_exec:s0
+/system/bin/irisd	u:object_r:irisd_exec:s0
 /system/bin/jackservice		u:object_r:jackservice_exec:s0
 /system/bin/kiesexe	u:object_r:kiesexe_exec:s0
 /system/bin/launcher	u:object_r:launcher_exec:s0
@@ -1431,6 +1532,7 @@
 /system/bin/pppoewrapper        u:object_r:pppoewrapper_exec:s0
 /system/bin/prepare_param\.sh	u:object_r:prepare_param_sh_file:s0
 /system/bin/rtc_log\.sh          u:object_r:rtc_log_sh_file:s0
+/system/bin/redsocks          u:object_r:redsocks_exec:s0
 /system/bin/samsungpowersoundplay	u:object_r:samsungpowersoundplay_exec:s0
 /system/bin/scs			u:object_r:scs_exec:s0
 /system/bin/sdp_cryptod			u:object_r:sdp_cryptod_exec:s0
@@ -1445,15 +1547,19 @@
 /system/bin/sshd	u:object_r:sshd_exec:s0
 /system/bin/taadaemon           u:object_r:tzdaemon_exec:s0
 /system/bin/tzdaemon            u:object_r:tzdaemon_exec:s0
-/system/bin/sysprof	u:object_r:sysprof_exec:s0
 /system/bin/sysmon	u:object_r:sysmon_exec:s0
 /system/bin/tima_dump_log	u:object_r:tima_dump_exec:s0
+
+# for DDC(Dynamic Domain Change)
+/system/bin/trustonic_tee_proxy u:object_r:trustonic_tee_proxy_exec:s0
+
 /system/bin/tlc_server	u:object_r:tlc_server_exec:s0
 /system/bin/tunman	u:object_r:tunman_exec:s0
 /system/bin/otp_server	u:object_r:otp_server_exec:s0
 /system/bin/vcsFPService	u:object_r:vcsFPService_exec:s0
 /system/bin/vfmService		u:object_r:vcsFPService_exec:s0
 /system/bin/vpnclientd          u:object_r:vpnclientd_exec:s0
+/system/bin/vaultkeeperd	u:object_r:vaultkeeperd_exec:s0
 # conflict with Qcom BSP, /system/bin/wcnss_service	u:object_r:wcnss_service_exec:s0
 /system/bin/wldu                                u:object_r:wldu_exec:s0
 /system/bin/wpa_supplicant_real u:object_r:wpa_exec:s0
@@ -1557,6 +1663,7 @@
 /data/app-lib(/.*)? 	u:object_r:app_library_file:s0
 /data/app/rpmbd                                       u:object_r:rpmbd_socket:s0
 /data/bcmnfc(/.*)?	u:object_r:nfc_data_file:s0
+/data/bio/ir(/.*)?	                              u:object_r:iris_data_file:s0
 /data/biometrics(/.*)?	                              u:object_r:biometrics_data_file:s0
 #changeBySEA : /data/data/.*		u:object_r:app_data_file:s0
 #/data/data/\.drm(/.*)?	u:object_r:drm_data_file:s0
@@ -1573,6 +1680,7 @@
 /data/fota(/.*)?		                      u:object_r:fota_data_file:s0
 /data/fpSnrTest(/.*)?		                      u:object_r:shared_data_file:s0
 /data/KEqvTaYEYkuJr1Mn+t-SwFvbgYo_(/.*)?  u:object_r:tima_keystore_file:s0
+/data/knox_tima(/.*)?				u:object_r:tima_keystore_file:s0
 /data/log(/.*)?	u:object_r:dumplog_data_file:s0
 /data/media\.tmp(/.*)?	u:object_r:media_rw_data_file:s0
 /data/media/obb(/.*)?	u:object_r:obb_apk_file:s0
@@ -1701,6 +1809,8 @@
 # EFS file of sec_common
 #
 /cpefs(/.*)?                                     u:object_r:sec_efs_file:s0
+# Add labelling code for /efs/apn-changes.xml it using only for M upgrade model & first released version is Kitkat. ( From L OS using /efs/sec_efs/apn-changes.xml)
+/efs/apn-changes\.xml                            u:object_r:sec_efs_file:s0
 /efs/bluetooth(/.*)?	u:object_r:bluetooth_efs_file:s0
 /efs/carrier(/.*)?	u:object_r:carrier_efs_file:s0
 /efs/cirrus(/.*)?                                u:object_r:sec_efs_file:s0
@@ -1728,6 +1838,7 @@
 /efs/SMS(/.*)?                                   u:object_r:sec_efs_file:s0
 /efs/SlideCount                                  u:object_r:app_efs_file:s0
 /efs/TEE(/.*)?                                   u:object_r:prov_efs_file:s0
+/efs/vk(/.*)?                                   u:object_r:vaultkeeper_efs_file:s0
 /efs/wifi(/.*)?	u:object_r:wifi_efs_file:s0
 /efs_gsm(/.*)?            u:object_r:efs_gsm_file:s0
 
@@ -1748,7 +1859,8 @@
 # EFS file of slsi_common
 #
 /efs/nv_data\.bin(.*)	u:object_r:bin_nv_data_efs_file:s0
-/efs/nv.log                     u:object_r:cbd_log_data:s0
+/efs/nv_fsm_data\.bin           u:object_r:bin_nv_data_efs_file:s0
+/efs/nv\.log                     u:object_r:cbd_log_data:s0
 
 ############################# 
 # MISC partition file of sec_common
@@ -1787,6 +1899,9 @@
 # carrier folder for Sprint(Qualcomm and SLSI)
 /carrier(/.*)?	u:object_r:carrier_file:s0
 
+# OMC_v3(Open Mobile Customization)
+/omr(/.*)?	u:object_r:omr_file:s0
+
 #############################
 # PROC INFO / LOCK FILE
 # for preventing migration issue, this files were created by type_transition rules.
@@ -1816,6 +1931,7 @@
 #line 1 "vendor/samsung/common/sepolicy/carrier/carrier_kor/file_contexts"
 /system/bin/dmbserver   u:object_r:dmb_exec:s0
 /dev/tdmb               u:object_r:tdmb_device:s0
+/data/\.dmbca(/.*)?   u:object_r:dmb_data_file:s0
 /data/playready(/.*)?   u:object_r:playready_file:s0
 
 

BIN
recovery/root/sbin/keystore


BIN
recovery/root/sbin/libbinder.so


BIN
recovery/root/sbin/libcc_manager.so


BIN
recovery/root/sbin/libkeymaster1.so


BIN
recovery/root/sbin/libkeymaster_helper.so


BIN
recovery/root/sbin/libkeymaster_mdfpp.so


BIN
recovery/root/sbin/libkeymaster_messages.so


BIN
recovery/root/sbin/libkeystore_binder.so


BIN
recovery/root/sbin/libsec_km.so


BIN
recovery/root/sbin/libskmm.so


BIN
recovery/root/sbin/libsoftkeymasterdevice.so


BIN
recovery/root/ueventd.samsungexynos8890.rc


BIN
recovery/root/vendor/lib64/hw/keystore.mdfpp.so


+ 11 - 17
system.prop

@@ -1,24 +1,18 @@
+# Universal8890
 ro.hardware=samsungexynos8890
 ro.chipname=exynos8890
 ro.arch=exynos8890
 ro.boot.bootdevice=155a0000.ufs
 ro.lcd_min_brightness=0
 ro.lcd_brightness=162
-ro.sf.lcd_density=640
+ro.sf.lcd_density=560
 persist.sys.usb.config=mtp,adb
-#
-# HWUI_BUILD_PROPERTIES
-#
-ro.hwui.texture_cache_size=88
-ro.hwui.layer_cache_size=58
-ro.hwui.path_cache_size=16
-ro.hwui.texture_cache_flushrate=0.4
-ro.hwui.shape_cache_size=4
-ro.hwui.gradient_cache_size=2
-ro.hwui.drop_shadow_cache_size=6
-ro.hwui.r_buffer_cache_size=8
-ro.hwui.text_small_cache_width=1024
-ro.hwui.text_small_cache_height=1024
-ro.hwui.text_large_cache_width=4096
-ro.hwui.text_large_cache_height=2048
-ro.hwui.fbo_cache_size=16
+
+# Encryption
+ro.sec.fle.encryption=true
+security.mdpp=None
+security.mdpp.mass=skmm
+security.mdpp.result=None
+ro.security.mdpp.ver=2.0
+ro.security.mdpp.release=8
+ro.hardware.keystore=mdfpp

+ 0 - 1
vendorsetup.sh

@@ -1,2 +1 @@
 add_lunch_combo omni_hero2lte-eng
-add_lunch_combo omni_hero2lte-userdebug