diff options
| author | LuK1337 <priv.luk@gmail.com> | 2018-12-15 21:05:44 +0100 |
|---|---|---|
| committer | LuK1337 <priv.luk@gmail.com> | 2018-12-15 21:05:44 +0100 |
| commit | dffbaefb6a3056852f416dc2ceb1a47889f6c02b (patch) | |
| tree | f816d0568caf3db57f53b3d4995d6dc00772870a | |
| parent | 2e0de0ad4d4d68f37507ddfbc1ba13a3355ee4e7 (diff) | |
kirin970-common: Add /hw_odm bind mount
* This should allow BKL-L04 users to load liboemcrypto.so,
letting them use widevine L1.
| -rw-r--r-- | BoardConfigCommon.mk | 1 | ||||
| -rw-r--r-- | rootdir/etc/init.kirin970.rc | 1 | ||||
| -rw-r--r-- | sepolicy/private/file_contexts | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 643420b..0684787 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -94,6 +94,7 @@ TARGET_RELEASETOOLS_EXTENSIONS := $(VENDOR_PATH)/releasetools # Root BOARD_ROOT_EXTRA_FOLDERS := \ cust \ + hw_odm \ modem_log \ preload \ sec_storage \ diff --git a/rootdir/etc/init.kirin970.rc b/rootdir/etc/init.kirin970.rc index e8f1cca..ab2e33b 100644 --- a/rootdir/etc/init.kirin970.rc +++ b/rootdir/etc/init.kirin970.rc @@ -11,6 +11,7 @@ on fs mount ext4 /dev/block/by-name/preload_a /preload wait ro mount ext4 /dev/block/by-name/product_a /product wait ro mount ext4 /dev/block/by-name/version_a /version wait ro + mount none /odm/hw_odm/${ro.boot.product.hardware.sku} /hw_odm bind mount none /product/lost+found /product/app bind on post-fs diff --git a/sepolicy/private/file_contexts b/sepolicy/private/file_contexts index 808cfec..35387e4 100644 --- a/sepolicy/private/file_contexts +++ b/sepolicy/private/file_contexts @@ -30,6 +30,7 @@ # Rootfs /cust(/.*)? u:object_r:system_file:s0 +/hw_odm(/.*)? u:object_r:rootfs:s0 /mnt/hisee_fs(/.*)? u:object_r:hisee_data_file:s0 /modem_log(/.*)? u:object_r:modem_log_file:s0 /preload(/.*)? u:object_r:system_file:s0 |
