Those BT and WiFi APIs are used to determine proximity between devices, i.e. 
location, so it's expected that they are also tied to location as a baseline.
JBQ
--
Jean-Baptiste M. "JBQ" QuéruMobile Excellence Architect, YahooSent from Yahoo 
Mail 

    On Saturday, April 23, 2016 5:10 PM, Nancy G <nancy.ga...@gmail.com> wrote:
 

 According to the 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 
theBluetoothAdapter.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 theACCESS_FINE_LOCATION or 
ACCESS_COARSE_LOCATION permissions:   
   - WifiManager.getScanResults()
   
   - BluetoothDevice.ACTION_FOUND
   
   - BluetoothLeScanner.startScan()
Note: When a device running Android 6.0 (API level 23) initiates a background 
Wi-Fi or Bluetooth scan, the operation is visible to external devices as 
originating from a randomized MAC address.

Am I correct in understanding that now every app that should be granted 
Bluetooth permission will now require location permission as well, defeating 
the purpose of granular permissions?
Is there some other way to allow Bluetooth permission without requiring a user 
to grant my app location permission? My app wouldn't require location 
permission if not for this change, so I would want to make sure if it ever does 
access location, that it can only do so when the app is active. Won't I still 
be able to access location info when the app isn't being used?-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/2e1b95df-25c8-4c01-970a-e8677c69bf8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


  

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/567078529.1415474.1461602720120.JavaMail.yahoo%40mail.yahoo.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to