Questions tagged [android-permissions]

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

3946 questions
28
votes
2 answers

Provide custom text for Android M permission dialog

Is it possible to provide a custom text for the system dialog which is displayed when the user is asked to grant permission?
rfsk2010
  • 8,571
  • 4
  • 32
  • 46
28
votes
3 answers

Android location permissions

In my Android application I'm willing to use GPS locations. What are the main permissions that I should included in android manifest file in order to use GPS locations. In case of lost the GPS signal strength, is there any way to triangulate the…
Samantha Withanage
  • 3,811
  • 10
  • 30
  • 59
27
votes
5 answers

Microphone permission

When installing the app I programmed, it requires the permission "to use the microphone". I don't however specifically ask for it in the manifest, what I have is the camera permission. Is that where the microphone-permission is coming from?
deimos1988
  • 5,896
  • 7
  • 41
  • 57
26
votes
4 answers

Displaying popup windows while running in the background?

I am trying to open an activity from a class that extends Service. I am performing this task when the app is not in foreground/not being used. I can see in the logs that my service class triggered start activity with Intent.FLAG_ACTIVITY_NEW_TASK…
Sidharth MA
  • 241
  • 1
  • 3
  • 9
26
votes
1 answer

signature protection level - clarifying

As I am new to Android, I wanted to ask something which is not clear enough to me. I read the API guide about the permissions as a lot more Q&A considering this topic, still, I am not sure if I understand it correctly. So, signature protection level…
NValchev
  • 2,855
  • 2
  • 15
  • 17
25
votes
6 answers

Least invasive way to uniquely identify Android user

How can you uniquely identify a user who has installed your app so that: You will know it is them if they delete and reinstall your app; You will know it is them if they install your app on a second device they intend to use simultaneously? Just…
Andrew
  • 14,204
  • 15
  • 60
  • 104
25
votes
11 answers

java.io.filenotfoundexception open failed eacces (permission denied) on device

The following code which consists of downloading a file from a server and save it in the storage works fine when the device has an internal storage. But when I tried it with a device with no internal storage, only with external storage I get the…
Lazy Ninja
  • 22,342
  • 9
  • 83
  • 103
24
votes
2 answers

ActivityResultLauncher with RequestMultiplePermissions contract doesn't show permissions UI on launch

I am trying to request permissions using ActivityResultLauncher with ActivityResultsContract.RequestMultiplePermissions. import android.content.pm.PackageManager; import android.os.Bundle; import android.util.Log; import android.Manifest; import…
24
votes
4 answers

why flutter has android.permission.REQUEST_INSTALL_PACKAGES

i upload my bundle to google play and show me this permissions which contain android.permission.REQUEST_INSTALL_PACKAGES and this is my AndroidManifest file content:
Amir
  • 2,225
  • 2
  • 18
  • 27
24
votes
1 answer

Is READ_LOGS a normal or dangerous Android permission?

I am getting very conflicting information regarding the use of android.permission.READ_LOGS Android permission. Firstly, the Android Documentation website does not specify the protection level of this permission. It is neither classified as normal,…
lite-whowantstoknow
  • 799
  • 3
  • 9
  • 18
24
votes
1 answer

FileNotFoundException (permission denied) when trying to write file to sdcard in Android

As you can notice from title, I have a problem with writing file to sdcard in Android. I've checked this question but it didn't help me. I want to write file that will be in public space on sdcard so that any other app could read it. First, I check…
Drag0
  • 8,438
  • 9
  • 40
  • 52
24
votes
3 answers

Does checking the Never ask again box when asking for a runtime permission disable future dialogs?

If a user denies a runtime permission with Never ask again checked, does this disable any future ability to ask for the same permission? Does the user have to go through settings to enable that permission? In my application, when I call…
James McCracken
  • 15,488
  • 5
  • 54
  • 62
24
votes
4 answers

crash before app starts : SecurityException: Permission Denial: INTERACT_ACROSS_USERS_FULL

Background I have a rooted device, which is Galaxy S3 I9300 , with Samsung stock based ROM, based on Android 4.3. I never had any problems running an app i'm working on with this device. The problem ever since yesterday (and I didn't change anything…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
23
votes
2 answers

Accessing external storage in Android API 29

I'm trying to achieve some clean up tools. More and more manufacturers have forbidden rooting devices due to some "security reason", it's forbidden NOT to request for unlock. After API 28, This code will make…
23
votes
4 answers

Permission denied for window type 2002 in Android Studio

Today I installed latest version of Android Studio I am learning Floating Widgets in Android I started with applying this example https://www.spaceotechnologies.com/android-floating-widget-tutorial/ it compiles ok but when I run it in the emulator…
asmgx
  • 7,328
  • 15
  • 82
  • 143