Android Question Error PrintBluetooth...Permission Denial: Enable com.mediatek.permission.CTA_ENABLE_BT

scsjc

Well-Known Member
Licensed User
Longtime User
I receive this error in Firebase:
Permission Denial: Enable bluetooth requires com.mediatek.permission.CTA_ENABLE_BT

(i put on manifest android.hardware.bluetooth required="false" because I want it to also be installed on android that doesn't have bluetooth)

manifest:
B4X:
AddManifestText(
  <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="29"/>
  <uses-feature android:name="android.hardware.bluetooth" android:required="false"/>
   ....
/>



firebase crashlytics:
upload_2019-9-19_19-35-13.png
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Don't set targetSdkVersion to 29. Use 28 instead.

Permission Denial: Enable bluetooth requires com.mediatek.permission.CTA_ENABLE_BT
This is not a standard Android permission. It looks like a custom permission added by the manufacturer.

Try to add:
B4X:
AddPermission(com.mediatek.permission.CTA_ENABLE_BT)
 
Upvote 0

scsjc

Well-Known Member
Licensed User
Longtime User
Don't set targetSdkVersion to 29. Use 28 instead.


This is not a standard Android permission. It looks like a custom permission added by the manufacturer.

Try to add:
B4X:
AddPermission(com.mediatek.permission.CTA_ENABLE_BT)
thanks...i try
 
Upvote 0
Top