From ad04f387e5115860dafec085c9365bc48df78304 Mon Sep 17 00:00:00 2001 From: Robin Peng Date: Tue, 16 Nov 2021 22:06:17 +0800 Subject: [PATCH] Move bluejay source code into bluejay device folders from: 9419ce002ef9160ace967918f3568c88b5731d0f Bug: 206553389 Change-Id: If4e8b2b04ecc6804b20ef7eebadcea565eb7c3e2 --- OWNERS | 12 ++++++++++++ bluejay-sepolicy.mk | 2 ++ bluejay/file_contexts | 3 +++ bluejay/genfs_contexts | 2 ++ bluejay/hal_vibrator_default.te | 7 +++++++ 5 files changed, 26 insertions(+) create mode 100644 OWNERS create mode 100644 bluejay-sepolicy.mk create mode 100644 bluejay/file_contexts create mode 100644 bluejay/genfs_contexts create mode 100644 bluejay/hal_vibrator_default.te diff --git a/OWNERS b/OWNERS new file mode 100644 index 0000000..8306db7 --- /dev/null +++ b/OWNERS @@ -0,0 +1,12 @@ +adamshih@google.com +alanstokes@google.com +bowgotsai@google.com +cbrubaker@google.com +jbires@google.com +jeffv@google.com +jgalenson@google.com +jiyong@google.com +rurumihong@google.com +smoreland@google.com +sspatil@google.com +trong@google.com diff --git a/bluejay-sepolicy.mk b/bluejay-sepolicy.mk new file mode 100644 index 0000000..cb5229b --- /dev/null +++ b/bluejay-sepolicy.mk @@ -0,0 +1,2 @@ +BOARD_VENDOR_SEPOLICY_DIRS += device/google/bluejay-sepolicy/bluejay +BOARD_VENDOR_SEPOLICY_DIRS += device/google/bluejay-sepolicy/tracking_denials_bluejay diff --git a/bluejay/file_contexts b/bluejay/file_contexts new file mode 100644 index 0000000..751c7d2 --- /dev/null +++ b/bluejay/file_contexts @@ -0,0 +1,3 @@ +# Haptics +/dev/snd/pcmC0D24p u:object_r:vibrator_snd_device:s0 +/dev/snd/pcmC1D24p u:object_r:vibrator_snd_device:s0 diff --git a/bluejay/genfs_contexts b/bluejay/genfs_contexts new file mode 100644 index 0000000..f3bb0bd --- /dev/null +++ b/bluejay/genfs_contexts @@ -0,0 +1,2 @@ +# Haptics +genfscon sysfs /devices/platform/10970000.hsi2c/i2c-4/i2c-cs40l26a u:object_r:sysfs_vibrator:s0 diff --git a/bluejay/hal_vibrator_default.te b/bluejay/hal_vibrator_default.te new file mode 100644 index 0000000..b5db3f2 --- /dev/null +++ b/bluejay/hal_vibrator_default.te @@ -0,0 +1,7 @@ +# Haptics +allow hal_vibrator_default input_device:dir r_dir_perms; +allow hal_vibrator_default vibrator_snd_device:chr_file rw_file_perms; +allow hal_vibrator_default vibrator_snd_device:dir search; +allow hal_vibrator_default audio_device:dir search; +allow hal_vibrator_default proc_asound:dir search; +allow hal_vibrator_default proc_asound:file r_file_perms;