Add persist.bluetooth.finder.supported property

Bug: 365462615
Test: Covered by existing tests

Change-Id: I4389295c8b43d70356582388f5a6bf82bb3e47b2
This commit is contained in:
Yahav Nussbaum 2024-09-23 09:35:02 +00:00
commit 95d26ae188

View file

@ -123,9 +123,12 @@ public class NearbyManager {
private static final int POWERED_OFF_FINDING_EID_LENGTH = 20;
private static final String POWER_OFF_FINDING_SUPPORTED_PROPERTY =
private static final String POWER_OFF_FINDING_SUPPORTED_PROPERTY_RO =
"ro.bluetooth.finder.supported";
private static final String POWER_OFF_FINDING_SUPPORTED_PROPERTY_PERSIST =
"persist.bluetooth.finder.supported";
/**
* TODO(b/286137024): Remove this when CTS R5 is rolled out.
* Whether allows Fast Pair to scan.
@ -618,7 +621,9 @@ public class NearbyManager {
}
private boolean isPoweredOffFindingSupported() {
return Boolean.parseBoolean(SystemProperties.get(POWER_OFF_FINDING_SUPPORTED_PROPERTY));
return Boolean.parseBoolean(SystemProperties.get(POWER_OFF_FINDING_SUPPORTED_PROPERTY_RO))
|| Boolean.parseBoolean(SystemProperties.get(
POWER_OFF_FINDING_SUPPORTED_PROPERTY_PERSIST));
}
private boolean areLocationAndBluetoothEnabled() {