Deprecating BluetoothAdapter enable/disable
Starting from T, BluetoothAdapter enable/disable APIs
are limited to system apps or device owners.
Tag: #feature
Bug: 218493289
Test: manual
Ignore-AOSP-First: Merge conflict
Change-Id: I851830eae8a3a2bb4be4b2bcf6147fd81e092f2a
diff --git a/service/Android.bp b/service/Android.bp
index 7e63286..ee89b91 100644
--- a/service/Android.bp
+++ b/service/Android.bp
@@ -61,10 +61,12 @@
libs: [
"framework-annotations-lib",
"framework-bluetooth-pre-jarjar",
+ "app-compat-annotations",
],
static_libs: [
"androidx.annotation_annotation",
+ "androidx.appcompat_appcompat",
],
apex_available: [
@@ -78,10 +80,14 @@
name: "service-bluetooth",
defaults: ["service-bluetooth-common-defaults"],
installable: true,
- static_libs: ["service-bluetooth-pre-jarjar"],
+ static_libs: [
+ "service-bluetooth-pre-jarjar",
+ "androidx.appcompat_appcompat",
+ ],
libs: [
"framework-bluetooth.impl",
+ "app-compat-annotations",
],
sdk_version: "system_server_current",