summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Peng <robinpeng@google.com>2021-11-16 22:06:17 +0800
committerRobin Peng <robinpeng@google.com>2021-11-16 22:06:17 +0800
commitad04f387e5115860dafec085c9365bc48df78304 (patch)
tree278b47994a56146a6021f84e54e88606f02441b2
parent3e87f7351a032af0db19f07045ea23965355f738 (diff)
downloadbluejay-sepolicy-ad04f387e5115860dafec085c9365bc48df78304.tar.gz
Move bluejay source code into bluejay device folders
from: 9419ce002ef9160ace967918f3568c88b5731d0f Bug: 206553389 Change-Id: If4e8b2b04ecc6804b20ef7eebadcea565eb7c3e2
-rw-r--r--OWNERS12
-rw-r--r--bluejay-sepolicy.mk2
-rw-r--r--bluejay/file_contexts3
-rw-r--r--bluejay/genfs_contexts2
-rw-r--r--bluejay/hal_vibrator_default.te7
5 files changed, 26 insertions, 0 deletions
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;