Fix build break if BOARD_WITHOUT_RADIO

Fix ERROR 'unknown type radio_vendor_data_file'

Bug: 235907512
Change-Id: I55e88c9364b42db262c057a2aa85816944c1c761
This commit is contained in:
Roger Liao 2022-07-28 15:38:04 +08:00
parent c96220c282
commit 5ea60d6348
4 changed files with 8 additions and 7 deletions

View file

@ -1,5 +0,0 @@
# Radio
type radio_vendor_data_file, file_type, data_file_type;
userdebug_or_eng(`
typeattribute radio_vendor_data_file mlstrustedobject;
')

View file

@ -1,5 +1,3 @@
# ECC List # ECC List
/vendor/bin/init\.radio\.sh u:object_r:init_radio_exec:s0 /vendor/bin/init\.radio\.sh u:object_r:init_radio_exec:s0
# Radio files.
/data/vendor/radio(/.*)? u:object_r:radio_vendor_data_file:s0

View file

@ -212,3 +212,9 @@ type sysfs_trusty, sysfs_type, fs_type;
# BootControl # BootControl
type sysfs_bootctl, sysfs_type, fs_type; type sysfs_bootctl, sysfs_type, fs_type;
# Radio
type radio_vendor_data_file, file_type, data_file_type;
userdebug_or_eng(`
typeattribute radio_vendor_data_file mlstrustedobject;
')

View file

@ -434,3 +434,5 @@
# Raw HID device # Raw HID device
/dev/hidraw[0-9]* u:object_r:hidraw_device:s0 /dev/hidraw[0-9]* u:object_r:hidraw_device:s0
# Radio files.
/data/vendor/radio(/.*)? u:object_r:radio_vendor_data_file:s0