From 0b23d3ed89c7c35a020fa14c07cc1b97d3fe6e19 Mon Sep 17 00:00:00 2001
From: Steven Moreland <smoreland@google.com>
Date: Mon, 27 Feb 2017 08:59:39 -0800
Subject: [PATCH] Bluetooth hal: move to vendor partition.

Bug: 35328775
Test: works in both binderized and passthrough modes
Change-Id: I1f827b4983e5e67c516e4488ad3497dd62db7e20
---
 private/file_contexts                        | 1 -
 vendor/file_contexts                         | 1 +
 {private => vendor}/hal_bluetooth_default.te | 0
 3 files changed, 1 insertion(+), 1 deletion(-)
 rename {private => vendor}/hal_bluetooth_default.te (100%)

diff --git a/private/file_contexts b/private/file_contexts
index b95a758a8..1cc9b0967 100644
--- a/private/file_contexts
+++ b/private/file_contexts
@@ -246,7 +246,6 @@
 /system/bin/webview_zygote64     u:object_r:webview_zygote_exec:s0
 /system/bin/virtual_touchpad     u:object_r:virtual_touchpad_exec:s0
 /system/bin/vr_wm                u:object_r:vr_wm_exec:s0
-/system/bin/hw/android\.hardware\.bluetooth@1\.0-service      u:object_r:hal_bluetooth_default_exec:s0
 /system/bin/hw/android\.hidl\.allocator@1\.0-service          u:object_r:hal_allocator_exec:s0
 
 #############################
diff --git a/vendor/file_contexts b/vendor/file_contexts
index bce40df89..f51c5b53d 100644
--- a/vendor/file_contexts
+++ b/vendor/file_contexts
@@ -2,6 +2,7 @@
 # Default HALs
 #
 /(vendor|system/vendor)/bin/hw/android\.hardware\.audio@2\.0-service          u:object_r:hal_audio_default_exec:s0
+/(vendor|system/vendor)/bin/hw/android\.hardware\.bluetooth@1\.0-service      u:object_r:hal_bluetooth_default_exec:s0
 /(vendor|system/vendor)/bin/hw/android\.hardware\.biometrics\.fingerprint@2\.1-service u:object_r:hal_fingerprint_default_exec:s0
 /(vendor|system/vendor)/bin/hw/android\.hardware\.boot@1\.0-service           u:object_r:hal_boot_exec:s0
 /(vendor|system/vendor)/bin/hw/android\.hardware\.camera\.provider@2\.4-service          u:object_r:hal_camera_default_exec:s0
diff --git a/private/hal_bluetooth_default.te b/vendor/hal_bluetooth_default.te
similarity index 100%
rename from private/hal_bluetooth_default.te
rename to vendor/hal_bluetooth_default.te
-- 
GitLab