Merge "Adding Bluetooth module sysprop"
diff --git a/srcs/android/sysprop/BluetoothProperties.sysprop b/srcs/android/sysprop/BluetoothProperties.sysprop
new file mode 100644
index 0000000..8b90122
--- /dev/null
+++ b/srcs/android/sysprop/BluetoothProperties.sysprop
@@ -0,0 +1,42 @@
+# Copyright (C) 2021 The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+module: "android.sysprop.BluetoothProperties"
+owner: Platform
+
+prop {
+ api_name: "snoop_default_mode"
+ type: Enum
+ scope: Public
+ access: ReadWrite
+ enum_values: "empty|disabled|filtered|full"
+ prop_name: "persist.bluetooth.btsnoopdefaultmode"
+}
+
+prop {
+ api_name: "snoop_log_mode"
+ type: Enum
+ scope: Public
+ access: ReadWrite
+ enum_values: "empty|disabled|filtered|full"
+ prop_name: "persist.bluetooth.btsnooplogmode"
+}
+
+prop {
+ api_name: "factory_reset"
+ type: Boolean
+ scope: Public
+ access: ReadWrite
+ prop_name: "persist.bluetooth.factoryreset"
+}
\ No newline at end of file
diff --git a/srcs/api/PlatformProperties-current.txt b/srcs/api/PlatformProperties-current.txt
index 8a82387..119d915 100644
--- a/srcs/api/PlatformProperties-current.txt
+++ b/srcs/api/PlatformProperties-current.txt
@@ -8,6 +8,28 @@
}
}
props {
+ module: "android.sysprop.BluetoothProperties"
+ prop {
+ api_name: "factory_reset"
+ access: ReadWrite
+ prop_name: "persist.bluetooth.factoryreset"
+ }
+ prop {
+ api_name: "snoop_default_mode"
+ type: Enum
+ access: ReadWrite
+ prop_name: "persist.bluetooth.btsnoopdefaultmode"
+ enum_values: "empty|disabled|filtered|full"
+ }
+ prop {
+ api_name: "snoop_log_mode"
+ type: Enum
+ access: ReadWrite
+ prop_name: "persist.bluetooth.btsnooplogmode"
+ enum_values: "empty|disabled|filtered|full"
+ }
+}
+props {
owner: Odm
module: "android.sysprop.DeviceProperties"
prop {