Merge "[WIFI] Open up the getRandomizedMacAddress API"

This commit is contained in:
Etan Cohen
2019-01-19 17:39:41 +00:00
committed by Android (Google) Code Review
2 changed files with 5 additions and 1 deletions

View File

@@ -29743,6 +29743,7 @@ package android.net.wifi {
ctor public WifiConfiguration();
method public int describeContents();
method public android.net.ProxyInfo getHttpProxy();
method public android.net.MacAddress getRandomizedMacAddress();
method public boolean isPasspoint();
method public void setHttpProxy(android.net.ProxyInfo);
method public void writeToParcel(android.os.Parcel, int);

View File

@@ -955,9 +955,12 @@ public class WifiConfiguration implements Parcelable {
}
/**
* @hide
* Returns MAC address set to be the local randomized MAC address.
* Does not guarantee that the returned address is valid for use.
* <p>
* Information is restricted to Device Owner, Profile Owner, and Carrier apps
* (which will only obtain addresses for configurations which they create). Other callers
* will receive a default "02:00:00:00:00:00" MAC address.
*/
public @NonNull MacAddress getRandomizedMacAddress() {
return mRandomizedMacAddress;