[gs101] Use common settings for Contexthub HAL

The change also labeled files under /data/vendor/chre/ to grant
required access.

Test: compilation
Bug: 248615564
Change-Id: I4db158853764987cf04dc7963ff79c680613f028
This commit is contained in:
Lei Ju 2024-02-17 09:46:51 -08:00
parent 3a53df7d7a
commit 40465c1988
2 changed files with 2 additions and 1 deletions

View file

@ -49,6 +49,7 @@ type sysfs_nanoapp_cmd, sysfs_type, fs_type;
type sysfs_fingerprint, sysfs_type, fs_type;
# CHRE
type chre_data_file, file_type, data_file_type;
type chre_socket, file_type;
# BT

View file

@ -235,9 +235,9 @@
/data/vendor/sensor(/.*)? u:object_r:sensor_vendor_data_file:s0
# Contexthub
/vendor/bin/hw/android\.hardware\.contexthub-service\.generic u:object_r:hal_contexthub_default_exec:s0
/(vendor|system/vendor)/bin/chre u:object_r:chre_exec:s0
/dev/socket/chre u:object_r:chre_socket:s0
/data/vendor/chre(/.*)? u:object_r:chre_data_file:s0
# Modem logging
/vendor/bin/modem_logging_control u:object_r:modem_logging_control_exec:s0