Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28481] Android: Update "appcelerator.bluetooth" module for Android 12

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2021-10-05T18:51:07.000+0000
Affected Version/sn/a
Fix Version/sRelease 10.1.0
ComponentsAndroid
Labelsandroid, bluetooth, module
ReporterJoshua Quick
AssigneeJoshua Quick
Created2021-06-08T04:12:36.000+0000
Updated2021-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)

Comments

  1. Joshua Quick 2021-07-27

    PR (appcelerator.bluetooth): https://github.com/appcelerator-modules/appcelerator.bluetooth/pull/113

JSON Source