From 89f857815d14f2047f2eca9ab5b2c11b0017bb56 Mon Sep 17 00:00:00 2001 From: Tim Zimmermann Date: Mon, 15 Feb 2021 08:58:04 +0100 Subject: [PATCH] common: label partitions for older models * On devices launched with Oreo and older these partitions have uppercase names Change-Id: Ife35b17c32201f85a840e95491941e78427c813b --- common/vendor/device.te | 1 + common/vendor/file_contexts | 35 ++++++++++++++++++----------------- 2 files changed, 19 insertions(+), 17 deletions(-) diff --git a/common/vendor/device.te b/common/vendor/device.te index 47639b2..fb19d65 100644 --- a/common/vendor/device.te +++ b/common/vendor/device.te @@ -1,4 +1,5 @@ # device.te +type cpefs_block_device, dev_type; type efs_block_device, dev_type; type dqmdbg_block_device, dev_type; type dtbo_block_device, dev_type; diff --git a/common/vendor/file_contexts b/common/vendor/file_contexts index 91ae1e5..2978c16 100644 --- a/common/vendor/file_contexts +++ b/common/vendor/file_contexts @@ -10,23 +10,24 @@ /data/vendor/secradio(/.*)? u:object_r:radio_vendor_data_file:s0 ### DEV -/dev/block/platform/.+/by-name/boot u:object_r:boot_block_device:s0 -/dev/block/platform/.+/by-name/cache u:object_r:cache_block_device:s0 -/dev/block/platform/.+/by-name/efs u:object_r:efs_block_device:s0 -/dev/block/platform/.+/by-name/dqmdbg u:object_r:dqmdbg_block_device:s0 -/dev/block/platform/.+/by-name/dtbo u:object_r:dtbo_block_device:s0 -/dev/block/platform/.+/by-name/keydata u:object_r:keydata_block_device:s0 -/dev/block/platform/.+/by-name/keyrefuge u:object_r:keyrefuge_block_device:s0 -/dev/block/platform/.+/by-name/metadata u:object_r:metadata_block_device:s0 -/dev/block/platform/.+/by-name/misc u:object_r:misc_block_device:s0 -/dev/block/platform/.+/by-name/modem u:object_r:modem_block_device:s0 -/dev/block/platform/.+/by-name/omr u:object_r:omr_block_device:s0 -/dev/block/platform/.+/by-name/persistent u:object_r:frp_block_device:s0 -/dev/block/platform/.+/by-name/radio u:object_r:radio_block_device:s0 -/dev/block/platform/.+/by-name/recovery u:object_r:recovery_block_device:s0 -/dev/block/platform/.+/by-name/sec_efs u:object_r:sec_efs_block_device:s0 -/dev/block/platform/.+/by-name/super u:object_r:super_block_device:s0 -/dev/block/platform/.+/by-name/userdata u:object_r:userdata_block_device:s0 +/dev/block/platform/.+/by-name/(boot|BOOT) u:object_r:boot_block_device:s0 +/dev/block/platform/.+/by-name/(cache|CACHE) u:object_r:cache_block_device:s0 +/dev/block/platform/.+/by-name/(cpefs|CPEFS) u:object_r:cpefs_block_device:s0 +/dev/block/platform/.+/by-name/(efs|EFS) u:object_r:efs_block_device:s0 +/dev/block/platform/.+/by-name/(dqmdbg|DQMDBG) u:object_r:dqmdbg_block_device:s0 +/dev/block/platform/.+/by-name/dtbo u:object_r:dtbo_block_device:s0 +/dev/block/platform/.+/by-name/keydata u:object_r:keydata_block_device:s0 +/dev/block/platform/.+/by-name/keyrefuge u:object_r:keyrefuge_block_device:s0 +/dev/block/platform/.+/by-name/metadata u:object_r:metadata_block_device:s0 +/dev/block/platform/.+/by-name/(misc|MISC) u:object_r:misc_block_device:s0 +/dev/block/platform/.+/by-name/modem u:object_r:modem_block_device:s0 +/dev/block/platform/.+/by-name/(omr|OMR) u:object_r:omr_block_device:s0 +/dev/block/platform/.+/by-name/(persistent|PERSISTENT) u:object_r:frp_block_device:s0 +/dev/block/platform/.+/by-name/(radio|RADIO) u:object_r:radio_block_device:s0 +/dev/block/platform/.+/by-name/(recovery|RECOVERY) u:object_r:recovery_block_device:s0 +/dev/block/platform/.+/by-name/sec_efs u:object_r:sec_efs_block_device:s0 +/dev/block/platform/.+/by-name/super u:object_r:super_block_device:s0 +/dev/block/platform/.+/by-name/(userdata|USERDATA) u:object_r:userdata_block_device:s0 /dev/esfp[0-9] u:object_r:fp_sensor_device:s0 /dev/batch_io u:object_r:io_device:s0 -- 2.20.1