15 ms·
> coming up with a mapping of "API call => required permission" Surely that must be part of the documentation of each API call, right? Like, "You must enable a
by justinpombrio 10y ago
> coming up with a mapping of "API call => required permission"
Surely that must be part of the documentation of each API call, right? Like, "You must enable android.permission.X or this call will fail"? If it is, why not just scrape the documentation, and if it's not, how does anyone develop for Android?
Disclaimer: I only read the abstract.
- yincrash 10y agoIt's rarely on a per method call basis. In the documentation, it's usually on a package or class basis such as https://developer.android.com/reference/android/bluetooth/package-summary.html https://developer.android.com/reference/android/bluetooth/pa...
- BoorishBears 10y agoThe linter will give you warnings on some permissions. But some of the permissions listed can't even be used without system permission, meaning your app has to be signed with the same keys the OS was (iirc more recently I've seen a device that didn't need this) and installed in a special system directory. Permissions like getting the users local MAC address...