question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing permission request

See original GitHub issue

Hi, i just run project on Android 7 and it didn’t work( didn’t show any ~BLE devices during scan) because of Binder exception: W/Binder: Caught a RuntimeException from the binder stub implementation. java.lang.SecurityException: Need ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission to get scan results at android.os.Parcel.readException(Parcel.java:1620) at android.os.Parcel.readException(Parcel.java:1573) at android.bluetooth.IBluetoothGatt$Stub$Proxy.startScan(IBluetoothGatt.java:883) at android.bluetooth.le.BluetoothLeScanner$BleScanCallbackWrapper.onClientRegistered(BluetoothLeScanner.java:375) at android.bluetooth.IBluetoothGattCallback$Stub.onTransact(IBluetoothGattCallback.java:56) at android.os.Binder.execTransact(Binder.java:453)

After manually adding of : <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> and manually turning on location permission thru app settings, application started to work and show BLE devices around.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:5
  • Comments:7

github_iconTop GitHub Comments

3reactions
gmelcercommented, Apr 14, 2018

Here is the source code with the manifest file fixed and the request to access permissions in the onCreate(). android-BluetoothLeGatt-master 2.zip

2reactions
stuartsoftcommented, Feb 26, 2019

GOOGLE. My dude. Please freaking fix your project and add: <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>

Read more comments on GitHub >

github_iconTop Results From Across the Web

MissingPermission: Missing Permissions - Google Samples
This check scans through your code and libraries and looks at the APIs being used, and checks this against the set of permissions...
Read more >
Android Studio projects are having an error "Missing ...
I can't find the answer to why it was happening but it was the reason why the permission inside the AndroidManifest.xml was not...
Read more >
Request app permissions - Android Developers
Overview · Standalone apps · Authentication · Request permissions · Detect location · Playing audio on ... Request permission to access nearby Wi-Fi...
Read more >
Why do I get this error: Missing Permission authorization ...
If you see this message, it is likely that a group has trusted status but your user account is not a member of...
Read more >
Add missing permission by XSAM · Pull Request #355 - GitHub
See https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found