[TIMOB-28481] Android: Update "appcelerator.bluetooth" module for Android 12
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2021-10-05T18:51:07.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 10.1.0 |
Components | Android |
Labels | android, bluetooth, module |
Reporter | Joshua Quick |
Assignee | Joshua Quick |
Created | 2021-06-08T04:12:36.000+0000 |
Updated | 2021-10-05T18:51:07.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...
* [BluetoothModule.java](https://github.com/appcelerator-modules/appcelerator.bluetooth/blob/master/android/src/appcelerator/bluetooth/BluetoothModule.java)
* [README.md](https://github.com/appcelerator-modules/appcelerator.bluetooth/blob/master/README.md)
* [Bluetooth.yml](https://github.com/appcelerator-modules/appcelerator.bluetooth/blob/master/apidoc/Bluetooth.yml)
* [karma.unit.config.js](https://github.com/appcelerator-modules/appcelerator.bluetooth/blob/master/test/unit/karma.unit.config.js)
PR (appcelerator.bluetooth): https://github.com/appcelerator-modules/appcelerator.bluetooth/pull/113