sepolicy_vndr: legacy: Allow using logdump partition as metadata
* sdm845 and sdm710 didn't have a metadata partition, but we can repurpose logdump which is a 64MB partition used to store Android logcats Change-Id: I826571d4e31f2a3f03c1d3e6a0daab262a4ccd6b (cherry picked from commit 8a5eeb6a2bfb3f1a7232199d32c1e3c2bbc0ef55)
This commit is contained in:
parent
fdf18a4bde
commit
191a6ce91b
3 changed files with 8 additions and 3 deletions
|
@ -72,6 +72,12 @@ ifneq (,$(filter sdm845 sdm710, $(TARGET_BOARD_PLATFORM)))
|
||||||
$(SEPOLICY_PATH)/legacy/vendor/ssg \
|
$(SEPOLICY_PATH)/legacy/vendor/ssg \
|
||||||
$(SEPOLICY_PATH)/legacy/vendor/common
|
$(SEPOLICY_PATH)/legacy/vendor/common
|
||||||
|
|
||||||
|
ifeq ($(TARGET_USES_LOGDUMP_AS_METADATA),true)
|
||||||
|
BOARD_SEPOLICY_M4DEFS += logdump_partition=metadata_block_device
|
||||||
|
else
|
||||||
|
BOARD_VENDOR_SEPOLICY_DIRS += $(SEPOLICY_PATH)/legacy/vendor/common/logdump
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(TARGET_SEPOLICY_DIR),)
|
ifeq ($(TARGET_SEPOLICY_DIR),)
|
||||||
BOARD_VENDOR_SEPOLICY_DIRS += $(SEPOLICY_PATH)/legacy/vendor/$(TARGET_BOARD_PLATFORM)
|
BOARD_VENDOR_SEPOLICY_DIRS += $(SEPOLICY_PATH)/legacy/vendor/$(TARGET_BOARD_PLATFORM)
|
||||||
else
|
else
|
||||||
|
|
3
legacy/vendor/common/device.te
vendored
3
legacy/vendor/common/device.te
vendored
|
@ -98,9 +98,6 @@ type efs_boot_dev, dev_type;
|
||||||
#MBA debug image partition
|
#MBA debug image partition
|
||||||
type mba_debug_dev, dev_type;
|
type mba_debug_dev, dev_type;
|
||||||
|
|
||||||
#logdump partition
|
|
||||||
type logdump_partition, dev_type;
|
|
||||||
|
|
||||||
#Bootselect partition
|
#Bootselect partition
|
||||||
type bootselect_device, dev_type;
|
type bootselect_device, dev_type;
|
||||||
|
|
||||||
|
|
2
legacy/vendor/common/logdump/device.te
vendored
Normal file
2
legacy/vendor/common/logdump/device.te
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
#logdump partition
|
||||||
|
type logdump_partition, dev_type;
|
Loading…
Reference in a new issue