After changing my targetSdk
to 32, I get the following error:
Settings key: <bluetooth_address> is only readable to apps with targetSdkVersion lower than or equal to: 31
I think this is happening while checking permissions while loading my app.
Issue is due to few parameters are annotated with maxTargetSdk = Build.VERSION_CODES.S enter image description here
For bluetooth_name I found the alternative and reading device_name using below code:
Settings.Global.getString(application.contentResolver, Settings.Global.DEVICE_NAME)
?: "UNKNOWN"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With