Permissions in the AndroidManifest.xml that allows an app to perform certain actions that are disallowed by default
Questions tagged [android-permissions]
3946 questions
23
votes
2 answers
API 26+: WRITE_EXTERNAL_STORAGE permission is always denied
I have switched my app to target API 27 and now it can't be granted WRITE_EXTERNAL_STORAGE permission -- grantResult is always -1.
My app needs this permission since it doesn't use apps private external storage space (which doesn't require…

Denys Kniazhev-Support Ukraine
- 8,862
- 7
- 47
- 63
23
votes
3 answers
What's the best way to check for permissions at runtime using MVP architecture?
I'm developing an android app in which I have to ask for permissions at runtime. I'm wondering about the best way to implement that using Model-View-Presenter architecture.
My initial thought was to have the presenter call a component responsible…

Mateus Gondim
- 5,362
- 6
- 31
- 51
23
votes
3 answers
Android App not asking for permissions when installing
I work in the IT department of my university and we work on an app that installs the correct setup for the eduroam WiFi (maybe you have heard of it).
However I have a problem running it on my own LG G4 with Android 6.0. When installing the compiled…

der_eismann
- 355
- 1
- 3
- 8
23
votes
1 answer
Writing external storage doesn't work until I restart the application on Android M
I am having an issue with the new permission system. I modified my code to ask permission for WRITE_EXTERNAL_STORAGE. But my app cannot write to (or read from) the sd card until I restart application (of course I allowed it in the dialog). After…

Szörényi Ádám
- 1,223
- 13
- 17
23
votes
4 answers
Android studio adds unwanted permission after running application on real device
After running application on device application required unwanted location permission that is not mention in manifest file. While when I am running same code from my friend Android studio than its run normal without extra permission…

Nikhil
- 1,023
- 17
- 35
22
votes
3 answers
Android mute/unmute phone
My goal is to support 2 operations:
mute phone (possibly with vibrations enabled/disabled), so when a call or sms is received it won't make noise
unmute phone and restore the volume to the state before muting phone
How can I do this? What…

Sebastian Nowak
- 5,607
- 8
- 67
- 107
22
votes
1 answer
How to obtain MANAGE_EXTERNAL_STORAGE permission
I'm trying to get the MANAGE_EXTERNAL_STORAGE permission on my Android 10 (API 29) device.
https://developer.android.com/training/data-storage/manage-all-files
Manifest:

Serhii K.
- 639
- 1
- 8
- 17
22
votes
2 answers
Android 8 requires READ_PHONE_STATE when calling SmsManager.sendTextMessage()
My application can't send sms on new android 8 update.
I get error that I don't have READ_PHONE_STATE permission.
java.lang.SecurityException: Neither user 10179 nor current process has android.permission.READ_PHONE_STATE.
at…

somerandomusername
- 1,993
- 4
- 23
- 55
22
votes
3 answers
Android permissions: Perform task after user pressed "Allow"
I would like to know if there is a way we can identify the event when the user has pressed "Allow" button for contact details access/ calendar access etc.,
I know there is a way to ask for permissions with the ActivityCompat.requestPermissions but…

Katakam Nikhil
- 1,375
- 4
- 14
- 22
22
votes
1 answer
Putting permissions to manifest of Android .aar library project
I am developing an Android project which includes two modules where one is a library module for producing .aar files and another is a sample app utilising the produced .aar file.
Thus, there are two AndroidManifest.xml files in this project. Say I…

Maurice
- 416
- 1
- 5
- 15
22
votes
1 answer
No activity found to handle intent action.dial
I'm trying to make my app call a number from an EditText, but I get:
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.DIAL dat=Ring Tel nr. 123456789 }
I've searched a while for an answer,…

Sluggo
- 597
- 1
- 9
- 21
22
votes
5 answers
Share library project's manifest services and permissions
I want to develop a library project which consists of a GCMIntentService and it performs GCM registration process and receives messages sent over GCM.
I have used AIDL to expose my library project service to host application,but I need to declare…

Zeba
- 3,041
- 1
- 28
- 39
21
votes
7 answers
"Allow all the time" location prompt not coming in Android SDK 29
I can't get the "Allow all the time" prompt for location in SDK 29. I already set these permissions in the manifest:

Shailendra Madda
- 20,649
- 15
- 100
- 138
21
votes
3 answers
Signing my android application as system app
In my company, we would want total control for battery consumption in the field, using only 2g and gps could drain the battery awfully fast. What we decided is that we need to have root access to the mobile phone, So that when phone is idle, we…

david
- 2,900
- 5
- 28
- 48
21
votes
7 answers
Android 6.0 Permission Denial: requires permission android.permission.WRITE_SETTINGS
As you can see from my manifest below, I've added the permission,What am I missing?

Dobin
- 239
- 1
- 2
- 3