Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get device Wifi MAC and Bluetooth MAC address #10

Closed
nisrulz opened this issue May 18, 2016 · 2 comments
Closed

Cannot get device Wifi MAC and Bluetooth MAC address #10

nisrulz opened this issue May 18, 2016 · 2 comments

Comments

@nisrulz
Copy link
Owner

nisrulz commented May 18, 2016

The WifiInfo.getMacAddress() and the BluetoothAdapter.getAddress() methods return a constant value of 02:00:00:00:00:00.

@nisrulz
Copy link
Owner Author

nisrulz commented May 18, 2016

From the Android 6.0 Changelog

To provide users with greater data protection, starting in this release, Android removes programmatic access to the device’s local hardware identifier for apps using the Wi-Fi and Bluetooth APIs. The WifiInfo.getMacAddress() and the BluetoothAdapter.getAddress() methods now return a constant value of 02:00:00:00:00:00.To access the hardware identifiers of nearby external devices via Bluetooth and Wi-Fi scans, your app must now have the ACCESS_FINE_LOCATION or ACCESS_COARSE_LOCATION permissions.

nisrulz added a commit that referenced this issue Jul 12, 2016
@nisrulz
Copy link
Owner Author

nisrulz commented Jul 12, 2016

Closing as fixed for now.

@nisrulz nisrulz closed this as completed Jul 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant