sdm660-common: Create root folders outside of vendor init script

* The core SELinux policies for vendor_init are being restricted as to
   comply with Treble. Simply adding a local rule to allow creating
   folders under rootfs would be enough, but at the same time defining
   the extra root folders and making use of AID/fs configuration file
   to set perms is more neat and clean.
 * Furthermore, with System As Root / is a read-only filesystem
   so we can't create our mountpoints from init script anymore

Change-Id: Idabd7ae72e4c4fd9daac5ba3be3e6236f79f251b
This commit is contained in:
Bruno Martins 2018-10-08 00:25:18 +01:00 committed by Max Weffers
parent 9c25ae1771
commit 80aa3de90e
No known key found for this signature in database
GPG key ID: 795F73D22FB93FAE

View file

@ -236,6 +236,8 @@ BOARD_ROOT_EXTRA_SYMLINKS := \
/vendor/firmware_mnt:/firmware \
/vendor/bt_firmware:/bt_firmware
BOARD_ROOT_EXTRA_FOLDERS := persist
TARGET_COPY_OUT_VENDOR := vendor
TARGET_USERIMAGES_USE_EXT4 := true
TARGET_USERIMAGES_USE_F2FS := true