OSDN Git Service

Make location enabled check configurable when returning scan results.
authorSharvil Nanavati <sharvil@google.com>
Wed, 19 Aug 2015 18:17:31 +0000 (11:17 -0700)
committerSharvil Nanavati <sharvil@google.com>
Wed, 19 Aug 2015 18:36:47 +0000 (11:36 -0700)
commit72ecb4caa630b63f66505ccb202a807b1af4e294
tree05114fe8fec803bb3d9bbec196f247d22392d93e
parent312e10ad5bcbb1e3d021c4798d55c40f99c7a6ef
Make location enabled check configurable when returning scan results.

Some device classes (e.g. Wear) don't allow location to be enabled but
would still like to allow LE scanning to take place. This patch allows
the location enabled check to be bypassed if the platform is so configured.
Even if the location check is disabled, the calling app must still have
one of the location permissions.

Bug: 21852542
Change-Id: I206366ce262776d4668c0c42e066f0e20f5fdfeb
res/values/config.xml
src/com/android/bluetooth/gatt/GattService.java