Merge changes from topic "btaa" am: 5d876b6024
Original change: https://android-review.googlesource.com/c/platform/system/sepolicy/+/1463604
Change-Id: I3b103e503353d5e21a2d6e558693101f8561dbec
diff --git a/private/system_suspend.te b/private/system_suspend.te
index 4cd3ec9..7f343f2 100644
--- a/private/system_suspend.te
+++ b/private/system_suspend.te
@@ -10,12 +10,16 @@
# Access to /sys/power/{ wakeup_count, state } suspend interface.
allow system_suspend sysfs_power:file rw_file_perms;
-# Access to wakeup and suspend stats.
+# Access to wakeup, suspend stats, and wakeup reasons.
r_dir_file(system_suspend, sysfs_suspend_stats)
r_dir_file(system_suspend, sysfs_wakeup)
+r_dir_file(system_suspend, sysfs_wakeup_reasons)
# To resolve arbitrary sysfs paths from /sys/class/wakeup/* symlinks.
allow system_suspend sysfs_type:dir search;
+# To call BTAA registered callbacks
+allow system_suspend bluetooth:binder call;
+
neverallow {
domain
-atrace # tracing