hikey960: enable the bootcontrol hal for hikey960 build
so that it will be possible to work with the GSI image
Test: boot to homescreen
console:/ # getprop init.svc.vendor.boot-hal-1-1
running
console:/ #
VtsHalBootV1_0TargetTest and VtsHalBootV1_1TargetTest
boot with the system image from build#8690703[1]
Note:
As there is no misc partition with the current prm_ptable file
using the vendor partition for the /misc mountpoint
to work around temporarily
[1]: https://ci.android.com/builds/submitted/8690703/aosp_arm64-userdebug/latest
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Change-Id: Ie4672328fbdcb33f83f6a4b0995cc1a370cb9efa
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index 9592d82..0d147d5 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -36,9 +36,11 @@
/dev/block/platform/soc/f723d000\.dwmmc0/by-name/userdata u:object_r:userdata_block_device:s0
# for HiKey960 Board
+# temporary workaround for metadata encryption support
/dev/block/platform/soc/ff3b0000\.ufs/by-name/cache u:object_r:metadata_block_device:s0
/dev/block/platform/soc/ff3b0000\.ufs/by-name/userdata u:object_r:userdata_block_device:s0
-
+# temporary workaround for the bootcontrol hal support after the dynamic partititon support
+/dev/block/platform/soc/ff3b0000\.ufs/by-name/vendor u:object_r:misc_block_device:s0
/vendor/bin/hw/android\.hardware\.gatekeeper@1\.0-service\.software u:object_r:hal_gatekeeper_default_exec:s0
/vendor/bin/hw/android\.hardware\.power@1\.1-service\.hikey-common u:object_r:hal_power_default_exec:s0