gps: maintain one solution

Move the rules from ag/26254728

Bug: 315915958
Test: build pass and GPS function works
Change-Id: I730a7af2b8456ae4a350dbd0d6bdbfe7d3484b18
This commit is contained in:
Wayne Lin 2024-02-17 11:03:52 +08:00 committed by Shinru Han
parent 85ff832530
commit 2ced5f6958
5 changed files with 9 additions and 3 deletions

View File

@ -0,0 +1 @@
type vendor_gnss_device, dev_type;

View File

@ -1 +1,5 @@
type vendor_gps_file, file_type, data_file_type; type vendor_gps_file, file_type, data_file_type;
type sysfs_gps, sysfs_type, fs_type;
userdebug_or_eng(`
typeattribute vendor_gps_file mlstrustedobject;
')

View File

@ -7,6 +7,4 @@
/vendor/bin/hw/swcnd u:object_r:swcnd_exec:s0 /vendor/bin/hw/swcnd u:object_r:swcnd_exec:s0
/vendor/bin/hw/spad u:object_r:spad_exec:s0 /vendor/bin/hw/spad u:object_r:spad_exec:s0
/vendor/bin/hw/android.hardware.gnss-service u:object_r:hal_gnss_default_exec:s0 /vendor/bin/hw/android.hardware.gnss-service u:object_r:hal_gnss_default_exec:s0
/vendor/bin/gnss_check\.sh u:object_r:gnss_check_exec:s0 /data/vendor/gps(/.*)? u:object_r:vendor_gps_file:s0
# keep only one rule and use eGNSS one
# /data/vendor/gps(/.*)? u:object_r:vendor_gps_file:s0

View File

@ -0,0 +1 @@
vendor_internal_prop(vendor_gps_prop)

View File

@ -0,0 +1,2 @@
vendor.gps. u:object_r:vendor_gps_prop:s0
persist.vendor.gps. u:object_r:vendor_gps_prop:s0