Questions tagged [android-permissions]

Permissions in the AndroidManifest.xml that allows an app to perform certain actions that are disallowed by default

3946 questions
31
votes
5 answers

Call requires API level 23 (current min is 14): android.app.Activity#requestPermissions,checkSelfPermission

I am trying add run time permissions android(6.0.1) API 23,If I use SDK version(min and target version both 23) it woks fine, like below, If I…
31
votes
2 answers

Why are permissions being automatically added to my AndroidManifest when including Google Play Services library

I noticed that the following permissions were automatically added when i use the following in my build.gradle file compile 'com.google.android.gms:play-services:7.5.0' This did not occur with the earlier versions of the play-services. does anyone…
30
votes
1 answer

How Can We Determine If We Can Request Location Permission Upgrade in Android 12?

In Android 12, if an app requests fine location permission via ACCESS_FINE_LOCATION, the user might elect to only grant coarse location permission. Unfortunately, not all APIs work with coarse location permission — in particular, AFAICT, to look up…
CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
30
votes
5 answers

Revoked permission android.permission.CALL_PHONE

I'm trying to programmatically call to a number with following code: String number = ("tel:" + numTxt.getText()); Intent intent = new Intent(Intent.ACTION_CALL); intent.setData(Uri.parse(number)); startActivity(intent); I've set the permission…
Evgeniy Mishustin
  • 3,343
  • 3
  • 42
  • 81
29
votes
2 answers

Android Deep Links and App Links Confused

Can anyone explain in real life example what is the difference between App Links - https://developer.android.com/training/app-links/deep-linking.html Deep links - https://developer.android.com/training/app-links/index.html App Indexing -…
user8558623
29
votes
3 answers

Android studio - how to find which library is using dangerous permission?

I am trying to upload a apk to the google play store but its saying to my surprise that i am using the following permission: Your APK is using permissions that require a privacy policy: (android.permission.RECORD_AUDIO). so i searched the entire…
j2emanue
  • 60,549
  • 65
  • 286
  • 456
29
votes
5 answers

Force application to restart from first Activity (when a permission is denied)

It is known that when we deny permissions at runtime in Android 6.0 and resume the app from the recent menu, the app process is killed and the app is forcibly restarted. This is allegedly in order to prevent any security snafus: It is remarkable…
29
votes
2 answers

Android marshmallow dynamic permission change kills all application processes

Observation: Manually changing permission of Android application killed all processes for this application. Procedure: Go to Settings->Apps Select application and Permissions. Disable one of the permissions. Device: Nexus 6 device running Android…
user802467
  • 951
  • 2
  • 14
  • 22
29
votes
3 answers

How to deal with removal of a permission for a broadcast receiver in Android M?

I've got some legacy code which I am making permission safe for Marshmallow. There is a broadcast using the PHONE_STATE permission as follows:
Gruntcakes
  • 37,738
  • 44
  • 184
  • 378
29
votes
5 answers

Android M: Programmatically revoke permissions

I am currently playing around with android m's new permission system. What i am planning is to add a screen to my in-app settings where the user can grant or revoke permissions. The screen would look like the regular system settings screen, but…
W3hri
  • 1,563
  • 2
  • 18
  • 31
29
votes
3 answers

What kind of Android application will require android.permission.READ_PHONE_STATE permission?

I have seen some Android apps on my phone require this android.permission.READ_PHONE_STATE permission. I don't know if I could trust them. I know this permission will give the app access to many information. I'm particularly interested in what…
Wei Yang
  • 895
  • 3
  • 15
  • 26
28
votes
5 answers

Flutter : PlatformException(no_available_camera, No cameras available for taking pictures., null, null)

guys! I am facing this camera version. It happened after I merged my projects. It says there is no camera available but back then it was running fine. Please have a look! E/flutter: [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception:…
Punreach Rany
  • 2,560
  • 7
  • 23
  • 56
28
votes
1 answer

Turn off app permissions programmatically

How can I deny certain app permissions programatically or deny all app permissions at once in marshmallow? I do not want to revoke them, I just want to turn them off from my app, not through app settings. I know I can use Intent to open app settings…
28
votes
1 answer

How to debug/reset Android 6.0 permissions?

While migrating one of my apps to use the Android 6.0 permissions system, I found it very hard to debug permissions using the emulator. Findings: Disabling a permission in the app info screen doesn't re-show the grant permission dialog when using…
28
votes
5 answers

Can not find Symbol Manifest.permission.WRITE_EXTERNAL_STORAGE on v23

I am compile code with following build.gradle file android { compileSdkVersion 23 buildToolsVersion "23.0.1" defaultConfig { applicationId "com.example" minSdkVersion 15 targetSdkVersion 23 versionCode…
Siddhpura Amit
  • 14,534
  • 16
  • 91
  • 150