[TIMOB-28482] Android: Update "appcelerator.ble" module for Android 12
| GitHub Issue | n/a |
|---|---|
| Type | Improvement |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2021-10-05T18:51:13.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 10.1.0 |
| Components | Android |
| Labels | android, ble, bluetooth, module, permission |
| Reporter | Joshua Quick |
| Assignee | Joshua Quick |
| Created | 2021-06-08T04:22:19.000+0000 |
| Updated | 2021-10-05T18:51:13.000+0000 |
Description
*Summary:*
Android 12 has introduced new bluetooth permissions which make the older permissions obsolete.
https://developer.android.com/about/versions/12/features/bluetooth-permissions
*New Permissions:*
* [android.permission.BLUETOOTH_ADVERTISE](https://developer.android.com/reference/android/Manifest.permission#BLUETOOTH_ADVERTISE)
* [android.permission.BLUETOOTH_CONNECT](https://developer.android.com/reference/android/Manifest.permission#BLUETOOTH_CONNECT)
* [android.permission.BLUETOOTH_SCAN](https://developer.android.com/reference/android/Manifest.permission#BLUETOOTH_SCAN)
*Obsolete Permissions:*
The following permissions are obsolete as of Android 12 and should have an
android:maxSdkVersion applied to them...
<uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" android:maxSdkVersion="30"/>
*To-Do:*
The following needs to be updated to use the bluetooth permissions...
* [AppceleratorBleModule.java](https://github.com/appcelerator-modules/appcelerator.ble/blob/master/android/src/appcelerator/ble/AppceleratorBleModule.java)
* [karma.unit.config.js](https://github.com/appcelerator-modules/appcelerator.ble/blob/master/test/unit/karma.unit.config.js)
* [Ble.yml](https://github.com/appcelerator-modules/appcelerator.ble/blob/master/apidoc/Ble.yml)
* [README.md](https://github.com/appcelerator-modules/appcelerator.ble/blob/master/README.md)
* [index.md](https://github.com/appcelerator-modules/appcelerator.ble/blob/master/documentation/index.md)
PR (appcelerator.ble): https://github.com/appcelerator-modules/appcelerator.ble/pull/185