summaryrefslogtreecommitdiff
path: root/sysprop
diff options
context:
space:
mode:
author David Duarte <licorne@google.com> 2023-02-16 21:20:48 +0000
committer David Duarte <licorne@google.com> 2024-03-06 18:31:28 +0000
commit8a9a567f5bd0eb1ee66180ece9e55f83cd93a570 (patch)
tree0b13125b59396a7de0bbd31ba0c3b6a137506c92 /sysprop
parent93732559da4c636ea0f8909c2c4b12dea22212c6 (diff)
Replace bt_did.conf by sysprops
Bug: 270423435 Bug: 327667978 Test: m com.android.btservices Change-Id: I8dba4b547fab9b093814bb69d83ed6d2893baacb
Diffstat (limited to 'sysprop')
-rw-r--r--sysprop/Android.bp1
-rw-r--r--sysprop/device_id.sysprop26
-rw-r--r--sysprop/exported_include/android_bluetooth_sysprop.h1
3 files changed, 28 insertions, 0 deletions
diff --git a/sysprop/Android.bp b/sysprop/Android.bp
index b399a8d7b8..c2e71a97c8 100644
--- a/sysprop/Android.bp
+++ b/sysprop/Android.bp
@@ -10,6 +10,7 @@ sysprop_library {
"avrcp.sysprop",
"ble.sysprop",
"bta.sysprop",
+ "device_id.sysprop",
"hfp.sysprop",
],
property_owner: "Platform",
diff --git a/sysprop/device_id.sysprop b/sysprop/device_id.sysprop
new file mode 100644
index 0000000000..b220abbe01
--- /dev/null
+++ b/sysprop/device_id.sysprop
@@ -0,0 +1,26 @@
+module: "android.sysprop.bluetooth.DeviceIDProperties"
+owner: Platform
+
+prop {
+ api_name: "vendor_id"
+ type: Integer
+ scope: Internal
+ access: Readonly
+ prop_name: "bluetooth.device_id.vendor_id"
+}
+
+prop {
+ api_name: "vendor_id_source"
+ type: Integer
+ scope: Internal
+ access: Readonly
+ prop_name: "bluetooth.device_id.vendor_id_source"
+}
+
+prop {
+ api_name: "product_id"
+ type: Integer
+ scope: Internal
+ access: Readonly
+ prop_name: "bluetooth.device_id.product_id"
+}
diff --git a/sysprop/exported_include/android_bluetooth_sysprop.h b/sysprop/exported_include/android_bluetooth_sysprop.h
index 3e76262114..e76411ef95 100644
--- a/sysprop/exported_include/android_bluetooth_sysprop.h
+++ b/sysprop/exported_include/android_bluetooth_sysprop.h
@@ -22,6 +22,7 @@
#include <avrcp.sysprop.h>
#include <ble.sysprop.h>
#include <bta.sysprop.h>
+#include <device_id.sysprop.h>
#include <hfp.sysprop.h>
#define GET_SYSPROP(namespace, prop, default) \