Add persist.bluetooth.finder.supported property
Bug: 365462615 Test: Covered by existing tests Change-Id: I4389295c8b43d70356582388f5a6bf82bb3e47b2
This commit is contained in:
parent
9daf0afa3d
commit
95d26ae188
1 changed files with 7 additions and 2 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue