aboutsummaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothAdapter.java
diff options
context:
space:
mode:
authorSvet Ganov <svetoslavganov@google.com>2015-05-12 19:13:36 -0700
committerSvetoslav <svetoslavganov@google.com>2015-05-18 15:14:24 -0700
commit252a61970f78294b0d6d3d85c0dcdb9af7f588b4 (patch)
tree0b995b4d7f312464088dff09a567f94a2c3115dd /framework/java/android/bluetooth/BluetoothAdapter.java
parent27ce6cfbe105e5c36e19b1f76bc9b8f29710b331 (diff)
Do not report WiFi and Bluetooth MAC addresses - framework.
As a part of the new runtime permissions work we are limiting the PII apps can access. BT and WiFi MAC addresses are PII and based on our research there is no valid use case for app dev to get these addresses aside of user tracking which we are trying to limit. bug:21078858 Change-Id: Ib48223b272c0fd4f5c36acc889d4f44df204b309
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothAdapter.java')
-rw-r--r--framework/java/android/bluetooth/BluetoothAdapter.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/framework/java/android/bluetooth/BluetoothAdapter.java b/framework/java/android/bluetooth/BluetoothAdapter.java
index 8768f400b1..b22b914686 100644
--- a/framework/java/android/bluetooth/BluetoothAdapter.java
+++ b/framework/java/android/bluetooth/BluetoothAdapter.java
@@ -96,6 +96,14 @@ public final class BluetoothAdapter {
private static final boolean VDBG = false;
/**
+ * Default MAC address reported to a client that does not have the
+ * android.permission.LOCAL_MAC_ADDRESS permission.
+ *
+ * @hide
+ */
+ public static final String DEFAULT_MAC_ADDRESS = "02:00:00:00:00:00";
+
+ /**
* Sentinel error value for this class. Guaranteed to not equal any other
* integer constant in this class. Provided as a convenience for functions
* that require a sentinel error value, for example: