Commit 22b8895
SBALAVIGNESH123
Fix: Add runtime permission checks for BLUETOOTH_CONNECT
Added explicit permission checks before calling Bluetooth APIs that require
BLUETOOTH_CONNECT permission on Android 12+:
- WearableImpl.java: Check permission before getBondedDevices()
- WearableSettingsActivity.java: Check permission before getBondedDevices()
- Added SuppressLint for device.getName() since permission already checked
Fixes all MissingPermission lint errors. Build verified with lintDebug.1 parent 9440651 commit 22b8895
File tree
2 files changed
+20
-0
lines changed- play-services-wearable/core/src/main/java/org/microg/gms/wearable
2 files changed
+20
-0
lines changedLines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
725 | 725 | | |
726 | 726 | | |
727 | 727 | | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
728 | 738 | | |
729 | 739 | | |
730 | 740 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
49 | 58 | | |
50 | 59 | | |
51 | 60 | | |
| |||
133 | 142 | | |
134 | 143 | | |
135 | 144 | | |
| 145 | + | |
136 | 146 | | |
137 | 147 | | |
138 | 148 | | |
| |||
0 commit comments