From 1e588b02bc658627dc797bf93d69b4bafa23bb52 Mon Sep 17 00:00:00 2001
From: Myles Watson <mylesgw@google.com>
Date: Fri, 13 Jan 2017 11:29:04 -0800
Subject: [PATCH] Allow the Bluetooth HAL to log firmware versions

Give the default implementation access to /data/misc/blue* for
backward compatibility.

Future Bluetooth HAL implementations should use the system log.

Test: VTS tests pass, Bluetooth starts/stops
Change-Id: Ia67896b46e3e9ce3421bbb0c8a8542f290b39083
---
 private/hal_bluetooth_default.te | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/private/hal_bluetooth_default.te b/private/hal_bluetooth_default.te
index b8fce63e1..88fd42bda 100644
--- a/private/hal_bluetooth_default.te
+++ b/private/hal_bluetooth_default.te
@@ -8,3 +8,7 @@ init_daemon_domain(hal_bluetooth_default)
 userdebug_or_eng(`
   allow hal_bluetooth_default self:capability net_admin;
 ')
+
+# Logging for backward compatibility
+allow hal_bluetooth_default bluetooth_data_file:dir ra_dir_perms;
+allow hal_bluetooth_default bluetooth_data_file:file create_file_perms;
-- 
GitLab