Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28482] Android: Update "appcelerator.ble" module for Android 12

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

Comments

  1. Joshua Quick 2021-07-28

    PR (appcelerator.ble): https://github.com/appcelerator-modules/appcelerator.ble/pull/185

JSON Source