diff --git a/BoardConfig.mk b/BoardConfig.mk index 43ac162..e284f75 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -278,3 +278,6 @@ WPA_SUPPLICANT_VERSION := VER_0_8_X # Security patch level VENDOR_SECURITY_PATCH := 2019-04-01 + +BOARD_ROOT_EXTRA_SYMLINKS := \ + /vendor/firmware_mnt/image:firmware/image diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 8b286e9..267c86d 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -39,6 +39,7 @@ on early-init # create symlink for vendor mount points symlink /vendor/firmware_mnt /firmware symlink /vendor/dsp /dsp + symlink /vendor/firmware_mnt /firmware/image chown root system /dev/kmsg chmod 0620 /dev/kmsg diff --git a/sepolicy/vendor/file.te b/sepolicy/vendor/file.te index d700d28..54ddd9f 100644 --- a/sepolicy/vendor/file.te +++ b/sepolicy/vendor/file.te @@ -31,6 +31,9 @@ type wapi_supplicant_data_file, file_type, data_file_type, core_data_file_type; # RIL type netmgr_data_file, file_type, data_file_type, core_data_file_type; +#test firmware +type firmware_file, file_type; + # sysfs #type sysfs_adsp, fs_type, sysfs_type; type sysfs_homebutton, fs_type, sysfs_type, mlstrustedobject; diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index b71ade4..9219d3e 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -135,3 +135,6 @@ /(vendor|system/vendor)/bin/hw/android\.hardware\.light@2\.0-service.sanders u:object_r:hal_light_default_exec:s0 /sys/devices/soc/1a00000.qcom,mdss_mdp/1a00000.qcom,mdss_mdp:qcom,mdss_fb_primary/leds/lcd-backlight/brightness u:object_r:sysfs_leds:s0 /sys/devices/soc/leds-atc-20/leds/charging/brightness u:object_r:sysfs_leds:s0 + +# files in firmware +/firmware(/.*)? u:object_r:firmware_file:s0