From 33c386dda3e6ccdc9c92fc7a2b144cf2b6c0294c Mon Sep 17 00:00:00 2001 From: Siarhei Vishniakou Date: Mon, 21 Mar 2022 10:15:30 -0700 Subject: Remove VelocityTracker strategy sysprop This will now be controller via device config. So the new sysprop name will be: persist.device_config.input_native_boot.velocitytracker_strategy Bug: 134179997 Test: none Change-Id: I685b09458d613fe0c078cf5386211655b6ee1a1e --- srcs/android/sysprop/InputProperties.sysprop | 9 --------- 1 file changed, 9 deletions(-) diff --git a/srcs/android/sysprop/InputProperties.sysprop b/srcs/android/sysprop/InputProperties.sysprop index 7de5061..a01121a 100644 --- a/srcs/android/sysprop/InputProperties.sysprop +++ b/srcs/android/sysprop/InputProperties.sysprop @@ -15,15 +15,6 @@ module: "android.sysprop.InputProperties" owner: Platform -# The default VelocityTracker strategy. -prop { - api_name: "velocitytracker_strategy" - type: String - scope: Internal - access: ReadWrite - prop_name: "persist.input.velocitytracker.strategy" -} - # A debug flag that converts all touch pointers to stylus pointers. # Requires a reboot to take effect. prop { -- cgit v1.2.3 From 0b04a5ed393900a6b0cdd0969da174591c8b4798 Mon Sep 17 00:00:00 2001 From: Vaibhav Devmurari Date: Wed, 20 Apr 2022 13:48:38 +0000 Subject: Add sysprop to enable/disable Global drag and drop DD: go/global_drag_and_drop Using this sysprop to use as an internal flag to flag guard implementation for global drag and drop. Will use this flag to guard implementation in DragDropController and InputDispatcher to enable the global drag feature. Bug: 220109830 Test: manually by setting the property using cmd 'adb shell setprop persist.input.globaldraganddrop ' and testing if the value is refected in the code when accessed. Change-Id: I8ef16fc4d5a89669fa0d03c5633191793e153f51 --- srcs/android/sysprop/InputProperties.sysprop | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/srcs/android/sysprop/InputProperties.sysprop b/srcs/android/sysprop/InputProperties.sysprop index a01121a..ee9d368 100644 --- a/srcs/android/sysprop/InputProperties.sysprop +++ b/srcs/android/sysprop/InputProperties.sysprop @@ -24,3 +24,11 @@ prop { access: Readonly prop_name: "persist.debug.input.simulate_stylus_with_touch" } +# A flag to enable global drag and drop feature. +prop { + api_name: "enable_global_drag_and_drop" + type: Boolean + scope: Internal + access: Readonly + prop_name: "persist.input.globaldraganddrop" +} -- cgit v1.2.3 From 11d5668e989666e3975da931198db9b4dfd198f1 Mon Sep 17 00:00:00 2001 From: Sal Savage Date: Thu, 7 Apr 2022 11:20:10 -0700 Subject: Update LE Audio profile names to be in line with spec and implementation Bug: 217448211 Test: atest BluetoothInstrumentationTests Merged-In: I9c90b56527e9cf4d6ac1669d389823d17214c32e Change-Id: I9c90b56527e9cf4d6ac1669d389823d17214c32e --- srcs/android/sysprop/BluetoothProperties.sysprop | 18 +++++++++--------- srcs/api/PlatformProperties-current.txt | 16 ++++++++-------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/srcs/android/sysprop/BluetoothProperties.sysprop b/srcs/android/sysprop/BluetoothProperties.sysprop index b82dfb8..8bc8bb8 100644 --- a/srcs/android/sysprop/BluetoothProperties.sysprop +++ b/srcs/android/sysprop/BluetoothProperties.sysprop @@ -203,14 +203,14 @@ prop { prop_name: "bluetooth.profile.bap.broadcast.source.enabled" } -# Whether the Basic Audio Profile (BAP) unicast server role is enabled on this device. +# Whether the Basic Audio Profile (BAP) unicast client role is enabled on this device. # Set by vendors overlay, read at Bluetooth initialization prop { - api_name: "isProfileBapUnicastServerEnabled" + api_name: "isProfileBapUnicastClientEnabled" type: Boolean scope: Public access: Readonly - prop_name: "bluetooth.profile.bap.unicast.server.enabled" + prop_name: "bluetooth.profile.bap.unicast.client.enabled" } # Whether the Battery Service profile (BAS) client role is enabled on this device. @@ -393,22 +393,22 @@ prop { prop_name: "bluetooth.profile.sap.server.enabled" } -# Whether the Telephone Bearer Service (TBS) server role is enabled on this device. +# Whether the Call Control Profile (CCP) server role is enabled on this device. # Set by vendors overlay, read at Bluetooth initialization prop { - api_name: "isProfileTbsServerEnabled" + api_name: "isProfileCcpServerEnabled" type: Boolean scope: Public access: Readonly - prop_name: "bluetooth.profile.tbs.server.enabled" + prop_name: "bluetooth.profile.ccp.server.enabled" } -# Whether the Volume Control Profile (VCP) server role is enabled on this device. +# Whether the Volume Control Profile (VCP) controller role is enabled on this device. # Set by vendors overlay, read at Bluetooth initialization prop { - api_name: "isProfileVcServerEnabled" + api_name: "isProfileVcpControllerEnabled" type: Boolean scope: Public access: Readonly - prop_name: "bluetooth.profile.vc.server.enabled" + prop_name: "bluetooth.profile.vcp.controller.enabled" } diff --git a/srcs/api/PlatformProperties-current.txt b/srcs/api/PlatformProperties-current.txt index ebcd387..0bb7d72 100644 --- a/srcs/api/PlatformProperties-current.txt +++ b/srcs/api/PlatformProperties-current.txt @@ -81,8 +81,8 @@ props { prop_name: "bluetooth.profile.bap.broadcast.source.enabled" } prop { - api_name: "isProfileBapUnicastServerEnabled" - prop_name: "bluetooth.profile.bap.unicast.server.enabled" + api_name: "isProfileBapUnicastClientEnabled" + prop_name: "bluetooth.profile.bap.unicast.client.enabled" } prop { api_name: "isProfileBasClientEnabled" @@ -92,6 +92,10 @@ props { api_name: "isProfileBassClientEnabled" prop_name: "bluetooth.profile.bass.client.enabled" } + prop { + api_name: "isProfileCcpServerEnabled" + prop_name: "bluetooth.profile.ccp.server.enabled" + } prop { api_name: "isProfileCsipSetCoordinatorEnabled" prop_name: "bluetooth.profile.csip.set_coordinator.enabled" @@ -157,12 +161,8 @@ props { prop_name: "bluetooth.profile.sap.server.enabled" } prop { - api_name: "isProfileTbsServerEnabled" - prop_name: "bluetooth.profile.tbs.server.enabled" - } - prop { - api_name: "isProfileVcServerEnabled" - prop_name: "bluetooth.profile.vc.server.enabled" + api_name: "isProfileVcpControllerEnabled" + prop_name: "bluetooth.profile.vcp.controller.enabled" } prop { api_name: "isSupportPersistedStateEnabled" -- cgit v1.2.3 From b6d5a2ddc81451295978219e10b3464629701261 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Thu, 5 May 2022 00:26:14 +0000 Subject: Remove VoldProperties None of these system properties are used anymore. Bug: 208476087 Change-Id: I3937f602105dee55921d248ddb4b7eced402fb7f --- srcs/android/sysprop/VoldProperties.sysprop | 37 ----------------------------- srcs/api/PlatformProperties-latest.txt | 24 ------------------- 2 files changed, 61 deletions(-) delete mode 100644 srcs/android/sysprop/VoldProperties.sysprop diff --git a/srcs/android/sysprop/VoldProperties.sysprop b/srcs/android/sysprop/VoldProperties.sysprop deleted file mode 100644 index a2b7fda..0000000 --- a/srcs/android/sysprop/VoldProperties.sysprop +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright (C) 2018 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.VoldProperties" -owner: Platform -prop { - api_name: "decrypt" - type: String - scope: Internal - access: ReadWrite - prop_name: "vold.decrypt" -} -prop { - api_name: "encrypt_progress" - type: String - scope: Internal - access: ReadWrite - prop_name: "vold.encrypt_progress" -} -prop { - api_name: "encrypt_time_remaining" - type: Integer - scope: Internal - access: ReadWrite - prop_name: "vold.encrypt_time_remaining" -} diff --git a/srcs/api/PlatformProperties-latest.txt b/srcs/api/PlatformProperties-latest.txt index 2e4b0ca..2440f4b 100644 --- a/srcs/api/PlatformProperties-latest.txt +++ b/srcs/api/PlatformProperties-latest.txt @@ -513,30 +513,6 @@ props { prop_name: "ro.vndk.version" } } -props { - module: "android.sysprop.VoldProperties" - prop { - api_name: "decrypt" - type: String - access: ReadWrite - scope: Internal - prop_name: "vold.decrypt" - } - prop { - api_name: "encrypt_progress" - type: String - access: ReadWrite - scope: Internal - prop_name: "vold.encrypt_progress" - } - prop { - api_name: "encrypt_time_remaining" - type: Integer - access: ReadWrite - scope: Internal - prop_name: "vold.encrypt_time_remaining" - } -} props { module: "android.sysprop.WifiProperties" prop { -- cgit v1.2.3 From 334e9d111740516ed94662c52bf7224cce6dad6c Mon Sep 17 00:00:00 2001 From: Philip Junker Date: Thu, 23 Jun 2022 15:38:47 +0200 Subject: Add permissionless_turn_screen_on PowerProperties sysprop. This is added for debugging only and will be removed again. Bug: 219568783 Bug: 237045954 Test: atest PowerManagerServiceTest Test: manually changed sysprop through command line Change-Id: Ice67e90349b60d02c87a64d2b87e9c73a6e3b00c --- srcs/android/sysprop/PowerProperties.sysprop | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/srcs/android/sysprop/PowerProperties.sysprop b/srcs/android/sysprop/PowerProperties.sysprop index a1d5636..ddb72b6 100644 --- a/srcs/android/sysprop/PowerProperties.sysprop +++ b/srcs/android/sysprop/PowerProperties.sysprop @@ -34,3 +34,13 @@ prop { access: ReadWrite prop_name: "power.battery_input.suspended" } + +# Allows apps to turn the screen on with android.os.PowerManager#ACQUIRE_CAUSES_WAKEUP +# without being granted android.app.AppOpsManager#OP_TURN_SCREEN_ON. +prop { + api_name: "permissionless_turn_screen_on" + type: Boolean + scope: Internal + access: ReadWrite + prop_name: "debug.power.permissionless_turn_screen_on" +} -- cgit v1.2.3 From 447212fd7cde6d4f3d1710ce9082b60d831dd5d5 Mon Sep 17 00:00:00 2001 From: Vaibhav Devmurari Date: Mon, 27 Jun 2022 15:31:20 +0000 Subject: Revert "Add sysprop to enable/disable Global drag and drop" This reverts commit 0b04a5ed393900a6b0cdd0969da174591c8b4798. Reason for revert: This sysprop is unused. D&D is directly implemented in framework native side without flag guarding Change-Id: I6c764aaf2c610c853cdb74c76f6083402c6db52d --- srcs/android/sysprop/InputProperties.sysprop | 8 -------- 1 file changed, 8 deletions(-) diff --git a/srcs/android/sysprop/InputProperties.sysprop b/srcs/android/sysprop/InputProperties.sysprop index ee9d368..a01121a 100644 --- a/srcs/android/sysprop/InputProperties.sysprop +++ b/srcs/android/sysprop/InputProperties.sysprop @@ -24,11 +24,3 @@ prop { access: Readonly prop_name: "persist.debug.input.simulate_stylus_with_touch" } -# A flag to enable global drag and drop feature. -prop { - api_name: "enable_global_drag_and_drop" - type: Boolean - scope: Internal - access: Readonly - prop_name: "persist.input.globaldraganddrop" -} -- cgit v1.2.3 From 0fa7e5abe0009667ab448d9034f2166a290b3a3a Mon Sep 17 00:00:00 2001 From: Katherine Lai Date: Thu, 14 Jul 2022 23:04:21 +0000 Subject: Add bluetooth classic sysprops Added new sysprops to configure classic link supervision timeout, page/inquiry scan activity, and page timeout Bug: 233119719 Tag: #floss Tag: #feature Test: Manual Change-Id: I657c4c2453881ff5c18173bad875b1c43414fb70 --- srcs/android/sysprop/BluetoothProperties.sysprop | 68 ++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/srcs/android/sysprop/BluetoothProperties.sysprop b/srcs/android/sysprop/BluetoothProperties.sysprop index 8bc8bb8..3df9166 100644 --- a/srcs/android/sysprop/BluetoothProperties.sysprop +++ b/srcs/android/sysprop/BluetoothProperties.sysprop @@ -412,3 +412,71 @@ prop { access: Readonly prop_name: "bluetooth.profile.vcp.controller.enabled" } + +# ACL Link supervision timeout +prop { + api_name: "getLinkSupervisionTimeout" + type: UInt + scope: Internal + access: Readonly + prop_name: "bluetooth.core.acl.link_supervision_timeout" +} + +# The following values are used to load default adapter parameters for BR/EDR. +# The Bluetooth Core Specification should be consulted for the meaning and valid +# domain of each of these values. + +# BR/EDR Page scan activity configuration +prop { + api_name: "getClassicPageScanType" + type: UInt + scope: Internal + access: Readonly + prop_name: "bluetooth.core.classic.page_scan_type" +} +prop { + api_name: "getClassicPageScanInterval" + type: UInt + scope: Internal + access: Readonly + prop_name: "bluetooth.core.classic.page_scan_interval" +} +prop { + api_name: "getClassicPageScanWindow" + type: UInt + scope: Internal + access: Readonly + prop_name: "bluetooth.core.classic.page_scan_window" +} + +# BR/EDR Inquiry scan activity configuration +prop { + api_name: "getClassicInquiryScanType" + type: UInt + scope: Internal + access: Readonly + prop_name: "bluetooth.core.classic.inq_scan_type" +} +prop { + api_name: "getClassicInquiryScanInterval" + type: UInt + scope: Internal + access: Readonly + prop_name: "bluetooth.core.classic.inq_scan_interval" +} +prop { + api_name: "getClassicInquiryScanWindow" + type: UInt + scope: Internal + access: Readonly + prop_name: "bluetooth.core.classic.inq_scan_window" +} + +# BR/EDR Page Timeout +prop { + api_name: "getClassicPageTimeout" + type: UInt + scope: Internal + access: Readonly + prop_name: "bluetooth.core.classic.page_timeout" +} \ No newline at end of file -- cgit v1.2.3 From df859bba55af03f983bece6bf49075b43ce308a9 Mon Sep 17 00:00:00 2001 From: Dorin Drimus Date: Fri, 29 Jul 2022 18:41:43 +0000 Subject: Add bluetooth.core.gap.le.conn.min.limit sysprop as API Bug: 240709612 Change-Id: Ia5654558b7b3c634d8e2fab18f8aab97f1da7abf Test: N/A, CL only adds the sysprop API --- srcs/android/sysprop/BluetoothProperties.sysprop | 10 ++++++++++ srcs/api/PlatformProperties-current.txt | 5 +++++ 2 files changed, 15 insertions(+) diff --git a/srcs/android/sysprop/BluetoothProperties.sysprop b/srcs/android/sysprop/BluetoothProperties.sysprop index 3df9166..9749273 100644 --- a/srcs/android/sysprop/BluetoothProperties.sysprop +++ b/srcs/android/sysprop/BluetoothProperties.sysprop @@ -53,6 +53,16 @@ prop { prop_name: "bluetooth.core.gap.le.privacy.enabled" } +# Minimum limit for GAP LE connection update time. +# Set by vendors overlay, read at Bluetooth initialization +prop { + api_name: "getGapLeConnMinLimit" + type: Integer + scope: Public + access: Readonly + prop_name: "bluetooth.core.gap.le.conn.min.limit" +} + # The default name of the device. # Set by vendors overlay, read at Bluetooth initialization prop { diff --git a/srcs/api/PlatformProperties-current.txt b/srcs/api/PlatformProperties-current.txt index 0bb7d72..9790663 100644 --- a/srcs/api/PlatformProperties-current.txt +++ b/srcs/api/PlatformProperties-current.txt @@ -24,6 +24,11 @@ props { type: String prop_name: "bluetooth.device.default_name" } + prop { + api_name: "getGapLeConnMinLimit" + type: Integer + prop_name: "bluetooth.core.gap.le.conn.min.limit" + } prop { api_name: "getHardwareIdleCurrentMa" type: Integer -- cgit v1.2.3 From d9727d5c945e6099395240f764e6a60daa34b3a8 Mon Sep 17 00:00:00 2001 From: Katherine Lai Date: Tue, 9 Aug 2022 22:42:15 +0000 Subject: Add bluetooth sniff and LE connection sysprops Added new sysprops to configure sniff parameters (max interval, min interval, attempt, timeout) and LE connection parameters (min/max connection interval, latency, supervision timeout, direct connection timeout, scan interval/window) Bug: 233119719 Bug: 233119457 Tag: #floss Test: Manual Change-Id: I75867f9eeb5b72a05a783860837df6a2a4c7513a --- srcs/android/sysprop/BluetoothProperties.sysprop | 122 +++++++++++++++++++++++ 1 file changed, 122 insertions(+) diff --git a/srcs/android/sysprop/BluetoothProperties.sysprop b/srcs/android/sysprop/BluetoothProperties.sysprop index 9749273..b250621 100644 --- a/srcs/android/sysprop/BluetoothProperties.sysprop +++ b/srcs/android/sysprop/BluetoothProperties.sysprop @@ -489,4 +489,126 @@ prop { scope: Internal access: Readonly prop_name: "bluetooth.core.classic.page_timeout" +} + +# BR/EDR Sniff Parameters +# Please refer to BTA_DM_PM_PARK_IDX in bta_api.h to determine how many +# entries are currently being supported. +# The SNIFF table entries must be in the order from highest latency (biggest +# interval) to lowest latency. If there's a conflict among the connected +# services, the setting with lowest latency wins. +prop { + api_name: "getClassicSniffMaxIntervals" + type: UIntList + scope: Internal + access: Readonly + prop_name: "bluetooth.core.classic.sniff_max_intervals" +} +prop { + api_name: "getClassicSniffMinIntervals" + type: UIntList + scope: Internal + access: Readonly + prop_name: "bluetooth.core.classic.sniff_min_intervals" +} +prop { + api_name: "getClassicSniffAttempts" + type: UIntList + scope: Internal + access: Readonly + prop_name: "bluetooth.core.classic.sniff_attempts" +} +prop { + api_name: "getClassicSniffTimeouts" + type: UIntList + scope: Internal + access: Readonly + prop_name: "bluetooth.core.classic.sniff_timeouts" +} + +# The following values are used to load default adapter parameters for LE. +# The Bluetooth Core Specification should be consulted for the meaning and valid +# domain of each of these values. + +# LE connection parameters. +prop { + api_name: "getLeMinConnectionInterval" + type: UInt + scope: Internal + access: Readonly + prop_name: "bluetooth.core.le.min_connection_interval" +} +prop { + api_name: "getLeMaxConnectionInterval" + type: UInt + scope: Internal + access: Readonly + prop_name: "bluetooth.core.le.max_connection_interval" +} +prop { + api_name: "getLeConnectionLatency" + type: UInt + scope: Internal + access: Readonly + prop_name: "bluetooth.core.le.connection_latency" +} +prop { + api_name: "getLeConnectionSupervisionTimeout" + type: UInt + scope: Internal + access: Readonly + prop_name: "bluetooth.core.le.connection_supervision_timeout" +} + +# Direct connection timeout in ms +prop { + api_name: "getLeDirectConnectionTimeout" + type: UInt + scope: Internal + access: Readonly + prop_name: "bluetooth.core.le.direct_connection_timeout" +} + +# LE connection scan interval/window +prop { + api_name: "getLeConnectionScanIntervalFast" + type: UInt + scope: Internal + access: Readonly + prop_name: "bluetooth.core.le.connection_scan_interval_fast" +} +prop { + api_name: "getLeConnectionScanWindowFast" + type: UInt + scope: Internal + access: Readonly + prop_name: "bluetooth.core.le.connection_scan_window_fast" +} +prop { + api_name: "getLeConnectionScanWindow2mFast" + type: UInt + scope: Internal + access: Readonly + prop_name: "bluetooth.core.le.connection_scan_window_2m_fast" +} +prop { + api_name: "getLeConnectionScanWindowCodedFast" + type: UInt + scope: Internal + access: Readonly + prop_name: "bluetooth.core.le.connection_scan_window_coded_fast" +} +prop { + api_name: "getLeConnectionScanIntervalSlow" + type: UInt + scope: Internal + access: Readonly + prop_name: "bluetooth.core.le.connection_scan_interval_slow" +} +prop { + api_name: "getLeConnectionScanWindowSlow" + type: UInt + scope: Internal + access: Readonly + prop_name: "bluetooth.core.le.connection_scan_window_slow" } \ No newline at end of file -- cgit v1.2.3 From 54f80ef03ee79faec8435f4e72c08e08fe1692f0 Mon Sep 17 00:00:00 2001 From: Juan Yescas Date: Thu, 28 Jul 2022 20:06:45 +0000 Subject: Add memory properties to libsysprop This API will provide vendors access to the real ddr size in the device. The real ddr size is usually different from MemTotal in /proc/meminfo. Bug: 231718727 Test: compiles Change-Id: I8867e4f01d9d97dc7b85ddcb7485ac5513215549 --- srcs/android/sysprop/MemoryProperties.sysprop | 29 +++++++++++++++++++++++++++ srcs/api/PlatformProperties-current.txt | 8 ++++++++ 2 files changed, 37 insertions(+) create mode 100644 srcs/android/sysprop/MemoryProperties.sysprop diff --git a/srcs/android/sysprop/MemoryProperties.sysprop b/srcs/android/sysprop/MemoryProperties.sysprop new file mode 100644 index 0000000..d252f3c --- /dev/null +++ b/srcs/android/sysprop/MemoryProperties.sysprop @@ -0,0 +1,29 @@ +# Copyright (C) 2022 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. + +owner: Platform +module: "android.sysprop.MemoryProperties" + +# Provides the hardware memory ddr size. This property is populated by +# the property service from the kernel command line parameter +# androidboot.ddr_size=XXXX. Vendors can set this command line option +# from the bootloader. +# This value is usually different from MemTotal in /proc/meminfo. +prop { + api_name: "memory_ddr_size" + type: String + scope: Public + access: Readonly + prop_name: "ro.boot.ddr_size" +} diff --git a/srcs/api/PlatformProperties-current.txt b/srcs/api/PlatformProperties-current.txt index 9790663..b2db698 100644 --- a/srcs/api/PlatformProperties-current.txt +++ b/srcs/api/PlatformProperties-current.txt @@ -241,6 +241,14 @@ props { prop_name: "ro.com.android.media.swcodec.ion.heapmask" } } +props { + module: "android.sysprop.MemoryProperties" + prop { + api_name: "memory_ddr_size" + type: String + prop_name: "ro.boot.ddr_size" + } +} props { module: "android.sysprop.NetworkProperties" prop { -- cgit v1.2.3 From f658672bfc75f2802a73b87c18bdaa8ebc860ecd Mon Sep 17 00:00:00 2001 From: William Escande Date: Mon, 22 Aug 2022 11:28:03 -0700 Subject: [Bluetooth apex] Use new apex name The Bluetooth apex name is now called com.android.btservices Bug: 243054261 Test: Build Change-Id: Ica696e9d054deb99b55a0e6d5ab30b55ff9a4788 --- srcs/Android.bp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcs/Android.bp b/srcs/Android.bp index fc74882..4f4ab0e 100644 --- a/srcs/Android.bp +++ b/srcs/Android.bp @@ -27,7 +27,7 @@ sysprop_library { "//apex_available:platform", "com.android.art", "com.android.art.debug", - "com.android.bluetooth", + "com.android.btservices", "com.android.tethering", ], cpp: { -- cgit v1.2.3 From de814795a38b788db98743840f34b3c464536ef3 Mon Sep 17 00:00:00 2001 From: Alan Stokes Date: Tue, 23 Aug 2022 11:26:03 +0100 Subject: Allow com.android.virt APEX to access sysprops This is needed to allow us to access HypervisorProperties to determine the VM capabilities of a device. Test: Builds Bug: 242828259 Change-Id: I173c29bbf34cd8035bc408dc4ad8b98f58dbe7be --- srcs/Android.bp | 1 + 1 file changed, 1 insertion(+) diff --git a/srcs/Android.bp b/srcs/Android.bp index 4f4ab0e..e76158b 100644 --- a/srcs/Android.bp +++ b/srcs/Android.bp @@ -29,6 +29,7 @@ sysprop_library { "com.android.art.debug", "com.android.btservices", "com.android.tethering", + "com.android.virt", ], cpp: { min_sdk_version: "S", -- cgit v1.2.3 From 43ef650131b82cc5ccc9b27d33566429ee2a19ae Mon Sep 17 00:00:00 2001 From: Katherine Lai Date: Fri, 9 Sep 2022 20:41:14 +0000 Subject: Add bluetooth LE inquiry scan parameters Bug: 233119457 Tag: #floss Test: Manual Change-Id: I4d0b505b761ad49832ef1d5e5097f6aad7a472e7 --- srcs/android/sysprop/BluetoothProperties.sysprop | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/srcs/android/sysprop/BluetoothProperties.sysprop b/srcs/android/sysprop/BluetoothProperties.sysprop index b250621..465b93e 100644 --- a/srcs/android/sysprop/BluetoothProperties.sysprop +++ b/srcs/android/sysprop/BluetoothProperties.sysprop @@ -611,4 +611,20 @@ prop { scope: Internal access: Readonly prop_name: "bluetooth.core.le.connection_scan_window_slow" +} + +# LE scanning parameters used during BTM inquiry +prop { + api_name: "getLeInquiryScanInterval" + type: UInt + scope: Internal + access: Readonly + prop_name: "bluetooth.core.le.inquiry_scan_interval" +} +prop { + api_name: "getLeInquiryScanWindow" + type: UInt + scope: Internal + access: Readonly + prop_name: "bluetooth.core.le.inquiry_scan_window" } \ No newline at end of file -- cgit v1.2.3 From c989286b833dd9e510a71009e585f654f8640b1e Mon Sep 17 00:00:00 2001 From: Ady Abraham Date: Mon, 10 Oct 2022 14:49:27 -0700 Subject: add a debug display sysprop for render frame rate Bug: 241460058 Test: `adb shell setprop debug.display.render_frame_rate_is_physical_refresh_rate` and observe the log Change-Id: I002335983f1fa917f6364e448d7e899cb629773d --- srcs/android/sysprop/DisplayProperties.sysprop | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/srcs/android/sysprop/DisplayProperties.sysprop b/srcs/android/sysprop/DisplayProperties.sysprop index 67498e2..08b33d5 100644 --- a/srcs/android/sysprop/DisplayProperties.sysprop +++ b/srcs/android/sysprop/DisplayProperties.sysprop @@ -56,4 +56,14 @@ prop { scope: Internal access: Readonly prop_name: "debug.display.allow_non_native_refresh_rate_override" -} \ No newline at end of file +} + +# When set to true, the render frame rate is considered the physical refresh rate +prop { + api_name: "debug_render_frame_rate_is_physical_refresh_rate" + type: Boolean + scope: Internal + access: Readonly + prop_name: "debug.display.render_frame_rate_is_physical_refresh_rate" +} + -- cgit v1.2.3 From e40940a6699429693e79d5adf0483d392ad019ba Mon Sep 17 00:00:00 2001 From: Katherine Lai Date: Mon, 31 Oct 2022 17:55:30 +0000 Subject: Add bluetooth disable enhanced SCO connection Bug: 255202220 Tag: #floss Test: Manual Change-Id: Id3eaf0efc6c2edb9045330ce65557ea30eff949b --- srcs/android/sysprop/BluetoothProperties.sysprop | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/srcs/android/sysprop/BluetoothProperties.sysprop b/srcs/android/sysprop/BluetoothProperties.sysprop index 465b93e..e0d63f8 100644 --- a/srcs/android/sysprop/BluetoothProperties.sysprop +++ b/srcs/android/sysprop/BluetoothProperties.sysprop @@ -627,4 +627,13 @@ prop { scope: Internal access: Readonly prop_name: "bluetooth.core.le.inquiry_scan_window" +} + +# Used to disable enhanced SCO connection +prop { + api_name: "getDisableEnchancedConnection" + type: Boolean + scope: Internal + access: Readonly + prop_name: "bluetooth.sco.disable_enhanced_connection" } \ No newline at end of file -- cgit v1.2.3 From 5b258d21a27f72e02f4568c4cd814a6c9ea8088a Mon Sep 17 00:00:00 2001 From: Ady Abraham Date: Mon, 28 Nov 2022 15:17:53 -0800 Subject: Cleanup debug_allow_non_native_refresh_rate_override This sysprop is defaulted to true, and there is no reason to keep the behavior for the false case. Bug: 251493618 Test: atest DisplayManagerServiceTest Change-Id: I75965eca5b127bc8aa9f7b77ab5fdee458bf0b47 --- srcs/android/sysprop/DisplayProperties.sysprop | 9 --------- 1 file changed, 9 deletions(-) diff --git a/srcs/android/sysprop/DisplayProperties.sysprop b/srcs/android/sysprop/DisplayProperties.sysprop index 08b33d5..5ae19cb 100644 --- a/srcs/android/sysprop/DisplayProperties.sysprop +++ b/srcs/android/sysprop/DisplayProperties.sysprop @@ -49,15 +49,6 @@ prop { prop_name: "debug.layout" } -# When set to true, apps frame rate can be overridden with a non natively-supported refresh rate -prop { - api_name: "debug_allow_non_native_refresh_rate_override" - type: Boolean - scope: Internal - access: Readonly - prop_name: "debug.display.allow_non_native_refresh_rate_override" -} - # When set to true, the render frame rate is considered the physical refresh rate prop { api_name: "debug_render_frame_rate_is_physical_refresh_rate" -- cgit v1.2.3 From b34e944f427f9c8345ccb82173bfd7068b0fc627 Mon Sep 17 00:00:00 2001 From: Ady Abraham Date: Mon, 28 Nov 2022 15:55:04 -0800 Subject: Remove debug.display.render_frame_rate_is_physical_refresh_rate There are other sysprops in SurfaceFlingerProperties that can be used instead of this one: * SurfaceFlingerProperties.enable_frame_rate_override * SurfaceFlingerProperties.frame_rate_override_for_native_rates * SurfaceFlingerProperties.frame_rate_override_global Bug: 241447632 Test: atest DisplayModeDirectorTest Change-Id: Icc7c5b0d4e0014feefcda48640c3b4784db2542f --- srcs/android/sysprop/DisplayProperties.sysprop | 9 --------- 1 file changed, 9 deletions(-) diff --git a/srcs/android/sysprop/DisplayProperties.sysprop b/srcs/android/sysprop/DisplayProperties.sysprop index 5ae19cb..1d04723 100644 --- a/srcs/android/sysprop/DisplayProperties.sysprop +++ b/srcs/android/sysprop/DisplayProperties.sysprop @@ -49,12 +49,3 @@ prop { prop_name: "debug.layout" } -# When set to true, the render frame rate is considered the physical refresh rate -prop { - api_name: "debug_render_frame_rate_is_physical_refresh_rate" - type: Boolean - scope: Internal - access: Readonly - prop_name: "debug.display.render_frame_rate_is_physical_refresh_rate" -} - -- cgit v1.2.3 From 208c17a094c433a1b2926377a1c74322df7f7a20 Mon Sep 17 00:00:00 2001 From: Harry Cutts Date: Fri, 2 Dec 2022 14:59:07 +0000 Subject: Add flag to enable new touchpad input mapper This flag will be used to enable or disable the new touchpad handling code. Bug: 251196347 Test: set with setprop, check the gestures library logs appear Change-Id: I674fac5c08a2d7eb923fef2632697393a9161642 --- srcs/android/sysprop/InputProperties.sysprop | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/srcs/android/sysprop/InputProperties.sysprop b/srcs/android/sysprop/InputProperties.sysprop index a01121a..1fa47af 100644 --- a/srcs/android/sysprop/InputProperties.sysprop +++ b/srcs/android/sysprop/InputProperties.sysprop @@ -24,3 +24,13 @@ prop { access: Readonly prop_name: "persist.debug.input.simulate_stylus_with_touch" } + +# A flag to enable the new touchpad input mapper introduced in Android U, based around the ChromeOS +# gestures library. +prop { + api_name: "enable_touchpad_gestures_library" + type: Boolean + scope: Internal + access: Readonly + prop_name: "persist.input.touchpad.gestures_library.enabled" +} -- cgit v1.2.3 From 57b6e0cd9e6aad3672bd85ee784551d93557ca72 Mon Sep 17 00:00:00 2001 From: Siarhei Vishniakou Date: Tue, 6 Dec 2022 18:55:52 +0000 Subject: Build PlatformProperties for host This will allow the users of PlatformProperties to also build for host, without having to use #ifdef statements. Bug: 261586828 Change-Id: I06a0de482dfd3dcbf9600f19b2c0de67914f85fa Test: m --- srcs/Android.bp | 1 + 1 file changed, 1 insertion(+) diff --git a/srcs/Android.bp b/srcs/Android.bp index e76158b..114b944 100644 --- a/srcs/Android.bp +++ b/srcs/Android.bp @@ -35,4 +35,5 @@ sysprop_library { min_sdk_version: "S", }, vendor_available: true, + host_supported: true, } -- cgit v1.2.3 From 699246b4272a6bd65c1f9302c186a59d44785db0 Mon Sep 17 00:00:00 2001 From: Siarhei Vishniakou Date: Wed, 16 Nov 2022 10:35:35 -0800 Subject: Add flag to control motion prediction This flag will be used as a global override for system predictions. Even if a device specifies that it supports predictions, this flag can be used to disable them. Bug: 210158587 Test: adb shell setprop persist.input.enable_motion_prediction true Test: tested with MotionPrediction app Change-Id: If901387aa01ac8704d8ee22c26978a16577ee0aa --- srcs/android/sysprop/InputProperties.sysprop | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/srcs/android/sysprop/InputProperties.sysprop b/srcs/android/sysprop/InputProperties.sysprop index 1fa47af..cbb2de8 100644 --- a/srcs/android/sysprop/InputProperties.sysprop +++ b/srcs/android/sysprop/InputProperties.sysprop @@ -34,3 +34,12 @@ prop { access: Readonly prop_name: "persist.input.touchpad.gestures_library.enabled" } + +# A flag to enable or disable system motion prediction. +prop { + api_name: "enable_motion_prediction" + type: Boolean + scope: Internal + access: Readonly + prop_name: "persist.input.enable_motion_prediction" +} -- cgit v1.2.3 From 9e3eb9a7017fd6e4e5821a35e91594ca1a881d86 Mon Sep 17 00:00:00 2001 From: Ying Hsu Date: Thu, 8 Dec 2022 09:40:46 +0000 Subject: Add a sysprop for initiating PHYs in LE create ext connection This patch adds a sysprop to configure whether LE 1M PHY is the only one used as initiating PHY in a LE Extended Create Connection request. Bug: 260677740 Tag: #floss Test: Manual test - pairing with BLE mouse Change-Id: Id5119f2e840e9395c9036561b2053d30613cf6f8 --- srcs/android/sysprop/BluetoothProperties.sysprop | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/srcs/android/sysprop/BluetoothProperties.sysprop b/srcs/android/sysprop/BluetoothProperties.sysprop index e0d63f8..1931cfd 100644 --- a/srcs/android/sysprop/BluetoothProperties.sysprop +++ b/srcs/android/sysprop/BluetoothProperties.sysprop @@ -63,6 +63,16 @@ prop { prop_name: "bluetooth.core.gap.le.conn.min.limit" } +# Whether LE Connection with initiating with only LE 1M PHY. +# Set by vendors overlay, read at Bluetooth initialization +prop { + api_name: "isGapLeConnOnlyInit1mPhyEnabled" + type: Boolean + scope: Internal + access: Readonly + prop_name: "bluetooth.core.gap.le.conn.only_init_1m_phy.enabled" +} + # The default name of the device. # Set by vendors overlay, read at Bluetooth initialization prop { @@ -636,4 +646,4 @@ prop { scope: Internal access: Readonly prop_name: "bluetooth.sco.disable_enhanced_connection" -} \ No newline at end of file +} -- cgit v1.2.3 From 150b5412569f9ac54dada046ba4dd356e606be7e Mon Sep 17 00:00:00 2001 From: Vaibhav Devmurari Date: Wed, 11 Jan 2023 18:50:12 +0000 Subject: Add new System property to enable keyboard backlight control. Test: manual Bug: 245506418 Change-Id: I9beed3dc915d1262b1b4ccd1b5444aba5ee640f7 --- srcs/android/sysprop/InputProperties.sysprop | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/srcs/android/sysprop/InputProperties.sysprop b/srcs/android/sysprop/InputProperties.sysprop index cbb2de8..06ceb1d 100644 --- a/srcs/android/sysprop/InputProperties.sysprop +++ b/srcs/android/sysprop/InputProperties.sysprop @@ -43,3 +43,14 @@ prop { access: Readonly prop_name: "persist.input.enable_motion_prediction" } + +# A flag to enable the new Keyboard backlight controller introduced in Android U, that allows +# Framework to control keyboard backlight on supported devices. +prop { + api_name: "enable_keyboard_backlight_control" + type: Boolean + scope: Internal + access: Readonly + prop_name: "persist.input.keyboard.backlight_control.enabled" +} + -- cgit v1.2.3 From 091c41ff90cc67ba85c7400abf24041e4191be61 Mon Sep 17 00:00:00 2001 From: Rahul Sabnis Date: Tue, 17 Jan 2023 10:56:36 -0800 Subject: Adds sysprops for default audio profiles Bug: 265077414 Test: Manual Change-Id: I35321d861deeaa019698e959a55e2c4e27003a7f --- srcs/android/sysprop/BluetoothProperties.sysprop | 25 ++++++++++++++++++++++++ srcs/api/PlatformProperties-current.txt | 10 ++++++++++ 2 files changed, 35 insertions(+) diff --git a/srcs/android/sysprop/BluetoothProperties.sysprop b/srcs/android/sysprop/BluetoothProperties.sysprop index 1931cfd..6527988 100644 --- a/srcs/android/sysprop/BluetoothProperties.sysprop +++ b/srcs/android/sysprop/BluetoothProperties.sysprop @@ -93,6 +93,31 @@ prop { prop_name: "bluetooth.device.class_of_device" } +# The default audio profile for dual mode audio devices for output only audio. The value should be +# the integer value of BluetoothProfile#A2DP (2) or BluetoothProfile#LE_AUDIO (22). If the value is +# set to anything else, LE Audio will be the default. +# Set by vendors overlay, read at Bluetooth initialization +prop { + api_name: "getDefaultOutputOnlyAudioProfile" + type: Integer + scope: Public + access: Readonly + prop_name: "bluetooth.device.default_output_only_audio_profile" +} + +# The default audio profile for dual mode audio devices for duplex (output + input) audio. The +# value should be the integer value of BluetoothProfile#HEADSET (1) or +# BluetoothProfile#LE_AUDIO (22). If the value is set to anything else, LE Audio will be the +# default. +# Set by vendors overlay, read at Bluetooth initialization +prop { + api_name: "getDefaultDuplexAudioProfile" + type: Integer + scope: Public + access: Readonly + prop_name: "bluetooth.device.default_duplex_audio_profile" +} + # Bluetooth operating voltage in millivolts available for vendors overlay. # Used to calculate Bluetooth power consumption for a specific hardware. prop { diff --git a/srcs/api/PlatformProperties-current.txt b/srcs/api/PlatformProperties-current.txt index b2db698..a3c532a 100644 --- a/srcs/api/PlatformProperties-current.txt +++ b/srcs/api/PlatformProperties-current.txt @@ -24,6 +24,16 @@ props { type: String prop_name: "bluetooth.device.default_name" } + prop { + api_name: "getDefaultDuplexAudioProfile" + type: Integer + prop_name: "bluetooth.device.default_duplex_audio_profile" + } + prop { + api_name: "getDefaultOutputOnlyAudioProfile" + type: Integer + prop_name: "bluetooth.device.default_output_only_audio_profile" + } prop { api_name: "getGapLeConnMinLimit" type: Integer -- cgit v1.2.3 From f809e44127e44f486017ac931d26d52bfa2843d8 Mon Sep 17 00:00:00 2001 From: Abhishek Pandit-Subedi Date: Thu, 26 Jan 2023 16:13:24 -0800 Subject: Add sysprop for LeGetVendorCapabilities Added new sysprop to configure getting vendor capabilities. Bug: 257423916 Tag: #floss Test: Manual Change-Id: I57cdd6d422bf14acb8f78e02af1a3eac4eb5177e --- srcs/android/sysprop/BluetoothProperties.sysprop | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/srcs/android/sysprop/BluetoothProperties.sysprop b/srcs/android/sysprop/BluetoothProperties.sysprop index 6527988..d9222cb 100644 --- a/srcs/android/sysprop/BluetoothProperties.sysprop +++ b/srcs/android/sysprop/BluetoothProperties.sysprop @@ -664,6 +664,15 @@ prop { prop_name: "bluetooth.core.le.inquiry_scan_window" } +# Used to disable LeGetVendorCapabilities. +prop { + api_name: "getLeVendorCapabilitiesEnabled" + type: Boolean + scope: Internal + access: Readonly + prop_name: "bluetooth.core.le.vendor_capabilities.enabled" +} + # Used to disable enhanced SCO connection prop { api_name: "getDisableEnchancedConnection" -- cgit v1.2.3 From 4b6585b47bcc0db453b70f95d2b7ba198b47d4c9 Mon Sep 17 00:00:00 2001 From: Jakub Date: Wed, 2 Nov 2022 09:28:16 +0000 Subject: Bluetooth: Added sysprops for Snoop Logger filtering Bug: 247859568 Tag: #feature Test: atest BluetoothInstrumentationTests Test: atest bluetooth_test_gd_unit Change-Id: I0de5584c8cd59072127e950929be7b1de2171117 --- srcs/android/sysprop/BluetoothProperties.sysprop | 56 ++++++++++++++++++++++++ srcs/api/PlatformProperties-current.txt | 29 ++++++++++++ 2 files changed, 85 insertions(+) diff --git a/srcs/android/sysprop/BluetoothProperties.sysprop b/srcs/android/sysprop/BluetoothProperties.sysprop index 6527988..73528c4 100644 --- a/srcs/android/sysprop/BluetoothProperties.sysprop +++ b/srcs/android/sysprop/BluetoothProperties.sysprop @@ -33,6 +33,62 @@ prop { prop_name: "persist.bluetooth.btsnooplogmode" } +# When snoop_log_mode is set as filtered, this filter truncates ACL packets (non-fragment) +# to fixed (MAX_HCI_ACL_LEN) number of bytes +prop { + api_name: "snoop_log_filter_snoop_headers_enabled" + type: Boolean + scope: Public + access: ReadWrite + prop_name: "persist.bluetooth.snooplogfilter.headers.enabled" +} + +# When snoop_log_mode is set as filtered, this filter discards A2DP media packets (non-split mode) +prop { + api_name: "snoop_log_filter_profile_a2dp_enabled" + type: Boolean + scope: Public + access: ReadWrite + prop_name: "persist.bluetooth.snooplogfilter.profiles.a2dp.enabled" +} + +# When snoop_log_mode is set as filtered, this filters MAP packets based on the filter mode: +# fullfilter - discard whole packet +# header - truncate to fixed length +# magic - fill with a magic string, such as: "PROHIBITED" +prop { + api_name: "snoop_log_filter_profile_map" + type: Enum + scope: Public + access: ReadWrite + enum_values: "empty|disabled|fullfilter|header|magic" + prop_name: "persist.bluetooth.snooplogfilter.profiles.map" +} + +# When snoop_log_mode is set as filtered, this filters PBAP and HFP packets (CPBR, CLCC) +# based on the filter mode: +# fullfilter - discard whole packet +# header - truncate to fixed length +# magic - fill with a magic string, such as: "PROHIBITED" +prop { + api_name: "snoop_log_filter_profile_pbap" + type: Enum + scope: Public + access: ReadWrite + enum_values: "empty|disabled|fullfilter|header|magic" + prop_name: "persist.bluetooth.snooplogfilter.profiles.pbap" +} + +# When snoop_log_mode is set as filtered, this filter truncates RFCOMM UIH packet +# to fixed (L2CAP_HEADER_SIZE) number of bytes +prop { + api_name: "snoop_log_filter_profile_rfcomm_enabled" + type: Boolean + scope: Public + access: ReadWrite + prop_name: "persist.bluetooth.snooplogfilter.profiles.rfcomm.enabled" +} + prop { api_name: "factory_reset" type: Boolean diff --git a/srcs/api/PlatformProperties-current.txt b/srcs/api/PlatformProperties-current.txt index a3c532a..6d478f0 100644 --- a/srcs/api/PlatformProperties-current.txt +++ b/srcs/api/PlatformProperties-current.txt @@ -190,6 +190,35 @@ props { prop_name: "persist.bluetooth.btsnoopdefaultmode" enum_values: "empty|disabled|filtered|full" } + prop { + api_name: "snoop_log_filter_profile_a2dp_enabled" + access: ReadWrite + prop_name: "persist.bluetooth.snooplogfilter.profiles.a2dp.enabled" + } + prop { + api_name: "snoop_log_filter_profile_map" + type: Enum + access: ReadWrite + prop_name: "persist.bluetooth.snooplogfilter.profiles.map" + enum_values: "empty|disabled|fullfilter|header|magic" + } + prop { + api_name: "snoop_log_filter_profile_pbap" + type: Enum + access: ReadWrite + prop_name: "persist.bluetooth.snooplogfilter.profiles.pbap" + enum_values: "empty|disabled|fullfilter|header|magic" + } + prop { + api_name: "snoop_log_filter_profile_rfcomm_enabled" + access: ReadWrite + prop_name: "persist.bluetooth.snooplogfilter.profiles.rfcomm.enabled" + } + prop { + api_name: "snoop_log_filter_snoop_headers_enabled" + access: ReadWrite + prop_name: "persist.bluetooth.snooplogfilter.headers.enabled" + } prop { api_name: "snoop_log_mode" type: Enum -- cgit v1.2.3 From 01c289c31f065192b204e77fe207419290edc224 Mon Sep 17 00:00:00 2001 From: Henri Chataing Date: Fri, 13 Jan 2023 08:33:00 +0000 Subject: Declare the Nfc properties Test: m PlatformProperties Bug: 268219397 Ignore-AOSP-First: Properties added to internal first Change-Id: I0a20b9d8187a4daa8495fccd777d52c6a638f040 --- srcs/android/sysprop/NfcProperties.sysprop | 50 ++++++++++++++++++++++++++++++ srcs/api/PlatformProperties-current.txt | 25 +++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 srcs/android/sysprop/NfcProperties.sysprop diff --git a/srcs/android/sysprop/NfcProperties.sysprop b/srcs/android/sysprop/NfcProperties.sysprop new file mode 100644 index 0000000..910cb99 --- /dev/null +++ b/srcs/android/sysprop/NfcProperties.sysprop @@ -0,0 +1,50 @@ +# 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.NfcProperties" +owner: Platform + +prop { + api_name: "debug_enabled" + type: Boolean + scope: Public + access: ReadWrite + prop_name: "persist.nfc.debug_enabled" +} + +prop { + api_name: "snoop_log_mode" + type: Enum + enum_values: "full|filtered" + scope: Public + access: ReadWrite + prop_name: "persist.nfc.snoop_log_mode" +} + +prop { + api_name: "vendor_debug_enabled" + type: Boolean + scope: Public + access: ReadWrite + prop_name: "persist.nfc.vendor_debug_enabled" +} + +prop { + api_name: "skipNdefRead" + type: Boolean + scope: Public + access: Readonly + prop_name: "nfc.dta.skip_ndef_read" + legacy_prop_name: "nfc.dta.skipNdefRead" +} diff --git a/srcs/api/PlatformProperties-current.txt b/srcs/api/PlatformProperties-current.txt index 6d478f0..5754389 100644 --- a/srcs/api/PlatformProperties-current.txt +++ b/srcs/api/PlatformProperties-current.txt @@ -301,6 +301,31 @@ props { prop_name: "net.tcp_def_init_rwnd" } } +props { + module: "android.sysprop.NfcProperties" + prop { + api_name: "debug_enabled" + access: ReadWrite + prop_name: "persist.nfc.debug_enabled" + } + prop { + api_name: "skipNdefRead" + prop_name: "nfc.dta.skip_ndef_read" + legacy_prop_name: "nfc.dta.skipNdefRead" + } + prop { + api_name: "snoop_log_mode" + type: Enum + access: ReadWrite + prop_name: "persist.nfc.snoop_log_mode" + enum_values: "full|filtered" + } + prop { + api_name: "vendor_debug_enabled" + access: ReadWrite + prop_name: "persist.nfc.vendor_debug_enabled" + } +} props { module: "android.sysprop.OtaProperties" prop { -- cgit v1.2.3 From 77f1aa0374d42fcbe54094d340f9712181337e27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Rymanowski?= Date: Mon, 6 Feb 2023 09:04:05 +0000 Subject: Add sysprop for LeAudio inband ringtone support Bug: 242685105 Test: manual Change-Id: I36e0debdd9b991e92176ebf3a7e0d5bc5a247df6 --- srcs/android/sysprop/BluetoothProperties.sysprop | 10 ++++++++++ srcs/api/PlatformProperties-current.txt | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/srcs/android/sysprop/BluetoothProperties.sysprop b/srcs/android/sysprop/BluetoothProperties.sysprop index d9222cb..046f83d 100644 --- a/srcs/android/sysprop/BluetoothProperties.sysprop +++ b/srcs/android/sysprop/BluetoothProperties.sysprop @@ -73,6 +73,16 @@ prop { prop_name: "bluetooth.core.gap.le.conn.only_init_1m_phy.enabled" } +# Whether Inband ringtone for LeAudio is supported. +# Set by vendors overlay, read at Bluetooth initialization +prop { + api_name: "isLeAudioInbandRingtoneSupported" + type: Boolean + scope: Public + access: Readonly + prop_name: "bluetooth.core.le_audio.inband_ringtone.supported" +} + # The default name of the device. # Set by vendors overlay, read at Bluetooth initialization prop { diff --git a/srcs/api/PlatformProperties-current.txt b/srcs/api/PlatformProperties-current.txt index a3c532a..946be8b 100644 --- a/srcs/api/PlatformProperties-current.txt +++ b/srcs/api/PlatformProperties-current.txt @@ -67,6 +67,10 @@ props { api_name: "isGapLePrivacyEnabled" prop_name: "bluetooth.core.gap.le.privacy.enabled" } + prop { + api_name: "isLeAudioInbandRingtoneSupported" + prop_name: "bluetooth.core.le_audio.inband_ringtone.supported" + } prop { api_name: "isProfileA2dpSinkEnabled" prop_name: "bluetooth.profile.a2dp.sink.enabled" -- cgit v1.2.3 From c7d6377230cba2ec873c27ae68da09b82b31baa9 Mon Sep 17 00:00:00 2001 From: Patty Huang Date: Wed, 4 Jan 2023 00:12:28 +0800 Subject: Add system property for le_audio_allow_list Bug: 239768625 Test: Manual Tag: #feature Change-Id: I81d708a915f39a5e3dbb1e08b17043601e371bfc --- srcs/android/sysprop/BluetoothProperties.sysprop | 8 ++++++++ srcs/api/PlatformProperties-current.txt | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/srcs/android/sysprop/BluetoothProperties.sysprop b/srcs/android/sysprop/BluetoothProperties.sysprop index c2e0f80..3d972fb 100644 --- a/srcs/android/sysprop/BluetoothProperties.sysprop +++ b/srcs/android/sysprop/BluetoothProperties.sysprop @@ -97,6 +97,14 @@ prop { prop_name: "persist.bluetooth.factoryreset" } +prop { + api_name: "le_audio_allow_list" + type: StringList + scope: Public + access: ReadWrite + prop_name: "persist.bluetooth.leaudio.allow_list" +} + ######## Bluetooth configurations # Whether GAP BLE Privacy (RPA) is enabled on this device. diff --git a/srcs/api/PlatformProperties-current.txt b/srcs/api/PlatformProperties-current.txt index 6d478f0..8d32e0c 100644 --- a/srcs/api/PlatformProperties-current.txt +++ b/srcs/api/PlatformProperties-current.txt @@ -183,6 +183,12 @@ props { api_name: "isSupportPersistedStateEnabled" prop_name: "bluetooth.framework.support_persisted_state" } + prop { + api_name: "le_audio_allow_list" + type: StringList + access: ReadWrite + prop_name: "persist.bluetooth.leaudio.allow_list" + } prop { api_name: "snoop_default_mode" type: Enum -- cgit v1.2.3 From 0e83e23e735fa58bc343144e71426c45a4b986e9 Mon Sep 17 00:00:00 2001 From: Henri Chataing Date: Fri, 13 Jan 2023 08:33:00 +0000 Subject: Declare the Nfc properties Test: m PlatformProperties Bug: 268219397 Merged-In: I0a20b9d8187a4daa8495fccd777d52c6a638f040 Change-Id: I0a20b9d8187a4daa8495fccd777d52c6a638f040 (cherry picked from commit 01c289c31f065192b204e77fe207419290edc224) --- srcs/android/sysprop/NfcProperties.sysprop | 50 ++++++++++++++++++++++++++++++ srcs/api/PlatformProperties-current.txt | 25 +++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 srcs/android/sysprop/NfcProperties.sysprop diff --git a/srcs/android/sysprop/NfcProperties.sysprop b/srcs/android/sysprop/NfcProperties.sysprop new file mode 100644 index 0000000..910cb99 --- /dev/null +++ b/srcs/android/sysprop/NfcProperties.sysprop @@ -0,0 +1,50 @@ +# 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.NfcProperties" +owner: Platform + +prop { + api_name: "debug_enabled" + type: Boolean + scope: Public + access: ReadWrite + prop_name: "persist.nfc.debug_enabled" +} + +prop { + api_name: "snoop_log_mode" + type: Enum + enum_values: "full|filtered" + scope: Public + access: ReadWrite + prop_name: "persist.nfc.snoop_log_mode" +} + +prop { + api_name: "vendor_debug_enabled" + type: Boolean + scope: Public + access: ReadWrite + prop_name: "persist.nfc.vendor_debug_enabled" +} + +prop { + api_name: "skipNdefRead" + type: Boolean + scope: Public + access: Readonly + prop_name: "nfc.dta.skip_ndef_read" + legacy_prop_name: "nfc.dta.skipNdefRead" +} diff --git a/srcs/api/PlatformProperties-current.txt b/srcs/api/PlatformProperties-current.txt index eef0214..4ad20f1 100644 --- a/srcs/api/PlatformProperties-current.txt +++ b/srcs/api/PlatformProperties-current.txt @@ -311,6 +311,31 @@ props { prop_name: "net.tcp_def_init_rwnd" } } +props { + module: "android.sysprop.NfcProperties" + prop { + api_name: "debug_enabled" + access: ReadWrite + prop_name: "persist.nfc.debug_enabled" + } + prop { + api_name: "skipNdefRead" + prop_name: "nfc.dta.skip_ndef_read" + legacy_prop_name: "nfc.dta.skipNdefRead" + } + prop { + api_name: "snoop_log_mode" + type: Enum + access: ReadWrite + prop_name: "persist.nfc.snoop_log_mode" + enum_values: "full|filtered" + } + prop { + api_name: "vendor_debug_enabled" + access: ReadWrite + prop_name: "persist.nfc.vendor_debug_enabled" + } +} props { module: "android.sysprop.OtaProperties" prop { -- cgit v1.2.3 From 56f0d631d5c4f7e2d7ff3b6ff2c036d4be25bbfd Mon Sep 17 00:00:00 2001 From: Prabir Pradhan Date: Mon, 27 Mar 2023 22:31:29 +0000 Subject: Add sysprop to force enabling stylus pointer icon for debugging This will make developing and testing the stylus pointer icon pipeline easier. Bug: 274664001 Test: adb shell setprop persist.debug.input.force_enable_stylus_pointer_icon 1 Change-Id: I446e73c4468cffe4b2f472fd07668add5326352c --- srcs/android/sysprop/InputProperties.sysprop | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/srcs/android/sysprop/InputProperties.sysprop b/srcs/android/sysprop/InputProperties.sysprop index 06ceb1d..926278c 100644 --- a/srcs/android/sysprop/InputProperties.sysprop +++ b/srcs/android/sysprop/InputProperties.sysprop @@ -54,3 +54,13 @@ prop { prop_name: "persist.input.keyboard.backlight_control.enabled" } +# A flag to force showing a pointer icon for stylus pointers, even when the device is not +# configured for it. Used for debugging stylus pointer icons. Requires restart. +prop { + api_name: "force_enable_stylus_pointer_icon" + type: Boolean + scope: Internal + access: Readonly + prop_name: "persist.debug.input.force_enable_stylus_pointer_icon" +} + -- cgit v1.2.3 From 704523af421574467ff7b9f63b057da78d31c8fe Mon Sep 17 00:00:00 2001 From: bkchoi Date: Thu, 27 Apr 2023 13:57:40 -0700 Subject: Remove pre-created user properties. This change will not affect the behavior because the property is already being ignored in the code. Bug: 253528462 Test: manual build of md emulator Change-Id: I2733c23068fddd8959403bca8f2e11b0b703afd6 --- srcs/api/PlatformProperties-latest.txt | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/srcs/api/PlatformProperties-latest.txt b/srcs/api/PlatformProperties-latest.txt index 2440f4b..7ecf960 100644 --- a/srcs/api/PlatformProperties-latest.txt +++ b/srcs/api/PlatformProperties-latest.txt @@ -25,20 +25,6 @@ props { scope: Internal prop_name: "android.car.systemuser.bootuseroverrideid" } - prop { - api_name: "number_pre_created_guests" - type: Integer - access: ReadWrite - scope: Internal - prop_name: "android.car.number_pre_created_guests" - } - prop { - api_name: "number_pre_created_users" - type: Integer - access: ReadWrite - scope: Internal - prop_name: "android.car.number_pre_created_users" - } prop { api_name: "trusted_device_device_name_prefix" type: String -- cgit v1.2.3 From 9a2f7628c4b92ff57413bdf03c3ebb27a8812cc0 Mon Sep 17 00:00:00 2001 From: Philip Junker Date: Fri, 5 May 2023 15:59:03 +0200 Subject: Add waive_target_sdk_check_for_turn_screen_on PowerProperties sysprop. This is added to allow for more strict enforcement of android.permission.TURN_SCREEN_ON on TV. Bug: 281825732 Test: manually installed app with targetSdk T and verified that it can turn the screen on Test: set waive_target_sdk_check_for_turn_screen_on to true and verified that app with targetSdk T cannot turn the screen on Change-Id: I307a36e26331c2cb5d988ccb70665964c3344665 --- srcs/android/sysprop/PowerProperties.sysprop | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/srcs/android/sysprop/PowerProperties.sysprop b/srcs/android/sysprop/PowerProperties.sysprop index ddb72b6..c53d6ae 100644 --- a/srcs/android/sysprop/PowerProperties.sysprop +++ b/srcs/android/sysprop/PowerProperties.sysprop @@ -44,3 +44,13 @@ prop { access: ReadWrite prop_name: "debug.power.permissionless_turn_screen_on" } + +# Waives the minimum target-sdk check for android.os.PowerManager#ACQUIRE_CAUSES_WAKEUP +# and only allows the flag for apps holding android.permission.TURN_SCREEN_ON +prop { + api_name: "waive_target_sdk_check_for_turn_screen_on" + type: Boolean + scope: Internal + access: Readonly + prop_name: "ro.power.waive_target_sdk_check_for_turn_screen_on" +} \ No newline at end of file -- cgit v1.2.3