hikey960: Add /metadata support (reusing cache partition)
With dynamic partitions we need /metadata mounted to properly
make 'adb remount' work.
So this makes use of the unused cache partition to mount it as
metadata (along with the needed build env values).
With this patch 'adb remount' works.
Signed-off-by: John Stultz <john.stultz@linaro.org>
Change-Id: I33da79ec15b453dbdc3b8a3180863abeb67d4cb6
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index 6a1f8d3..1e71211 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -35,7 +35,7 @@
/dev/block/platform/soc/f723d000\.dwmmc0/by-name/userdata u:object_r:userdata_block_device:s0
# for HiKey960 Board
-/dev/block/platform/soc/ff3b0000\.ufs/by-name/cache u:object_r:cache_block_device:s0
+/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