diff --git a/BoardConfig.mk b/BoardConfig.mk index 52735e20..8d3d1c7d 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -66,7 +66,7 @@ TARGET_COPY_OUT_VENDOR := vendor # Install odex files into the other system image BOARD_USES_SYSTEM_OTHER_ODEX := true -BOARD_ROOT_EXTRA_FOLDERS := persist firmware +BOARD_ROOT_EXTRA_FOLDERS := persist firmware metadata BOARD_SEPOLICY_DIRS += device/google/wahoo/sepolicy diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index ff9a93b0..448deacc 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -274,3 +274,7 @@ /persist/data(/.*)? u:object_r:persist_data_file:s0 /persist/display(/.*)? u:object_r:persist_display_file:s0 /persist/sensors(/.*)? u:object_r:persist_sensors_file:s0 + +/metadata u:object_r:rootfs:s0 +/metadata/.* u:object_r:vold_data_file:s0 +