Fitbit / bitgatt

The FitbitGatt API is designed to provide a strong state machine around all Android gatt operations with the aim of making Android BLE development across Android vendors as straightforward and side-effect free as possible.
Mozilla Public License 2.0
57 stars 17 forks source link

Remove location permission requirement for PI broadcast receiver and fix PendingIntent flag bug #68

Closed khanmurtuza closed 2 years ago

khanmurtuza commented 2 years ago

This change contains following changes/fixes

  1. To support Android S, FLAG_IMMUTABLE flag was added. But to receive result for PI scanner you need to pass FLAG_MUTABLE flag
  2. If client is targeting Android S+ and relying on Nearby permissions PendingIntent broadcast receiver need to remove the location permission requirement on manifest receiver declaration
  3. Same permission removal for for ACL connect receiver and removing ACTION_FOUND filter since it was a no-op

Testing: Verified from Fitbit app on Android 12 and 9