Permissions in the AndroidManifest.xml that allows an app to perform certain actions that are disallowed by default
Questions tagged [android-permissions]
3946 questions
1
vote
0 answers
Getting java.lang.RuntimeException: Unable to create application XXX: java.lang.SecurityException: Not allowed to bind to service Intent
I have two apps which should communicate between themselves using AIDL.
I have defined app permission in server app (which has service provided AIDL interface implementation) and use this permission in client app (which connects to the server…

Dmytro Batyuk
- 957
- 8
- 15
1
vote
1 answer
How to disable permission requests on Android 12?
I am developing an app for an Android platform (OS 12). This application will not have a screen, will not be deployed on the Google PlayStore and will have access to different media (camera, storage, ...).
Since I won't have a screen, I'd like to…

Martin Denion
- 352
- 1
- 3
- 22
1
vote
1 answer
Android studio getting error IOException: Operation not permitted while creating file for android sdk 31
I am trying to create a file on external storage but I am getting "IOException: Operation not permitted" error. Below is my code
File file = new File(Environment.getExternalStorageDirectory() + "/dummy.txt");
if (!file.exists()){
…

tushar
- 65
- 1
- 8
1
vote
1 answer
Authorize camera access in integration testing with flutter integration_test package
I want to test Add Picture (using camera) feature for my app using integration_test package for app. When app tries to open a camera it asks for camera permission and I could not find a way to tap allow permission as its a system dialog.
I am…

Jay Banker
- 11
- 1
1
vote
1 answer
Permissions on AAR Android 11 adding external library
I am developing an application that makes use of a third party SDK, this SDK comes in an example project.
I only copied the contents of the libs folder to a new project,
Add the library in the build.gradle and it loads without problems, since I can…
1
vote
2 answers
BLE Connection for HarmonyOS 2.0.0
I'm using Android Studio to create a BLE Scanner but I can't seem to request for permissions on my phone. I'm using a Huawei HarmonyOS 2.0.0 phone and my coworker is using a Samsung Android 11 phone and it works fine on his phone.
Is there a…

shiho
- 31
- 1
- 5
1
vote
0 answers
Android Studio Chipmunk 2021.2.1 - SMS Messages wont work 5/25/2022
I have been working to make a simple SMS app with Android Studio Chipmunk 2021.2.1, but none of my attempts to receive SMS have worked.
I am able to send messages from the emulator and on my devices. Although, I can't receive SMS messages with help…

0IcU812
- 11
- 1
1
vote
1 answer
Xamarin Forms, Android 11+, Access music folder in root
Hi i searched and searched.
How do i access the music folder in android? Not the music folder of the app.
Android.OS is not available.
I even tried System.IO.Directory.GetFiles("/"); no permissions.
I checked every permission in the manifest that…

Tis But a scratch
- 11
- 3
1
vote
1 answer
How to re-request BLUETOOTH_SCAN and BLUETOOTH_CONNECT permissions for Android 12 after a user denial?
I have a problem re-requesting the permissions required to scan and connect to bluetooth devices when targeting SDK 31 (Android 12).
I call this method inside my main activity's onCreate():
public void requestBluetoothPermissions() {
if…

matdev
- 4,115
- 6
- 35
- 56
1
vote
0 answers
React Native App Crash in Android 11 If Given One Time Permission To Access Camera
I have an app in react native for Android, when a user opens the camera it asks for Permission. In Android 11 user has two options in permission "ONLY THIS TIME" and "WHILE USING THE APP", to give access of the camera.
If the user selects the "ONLY…

Alex
- 41
- 4
1
vote
0 answers
Permissions needed for code downloaded after app install
Android's developer documentation requires listing the permissions needed for an app in the AndroidManifest.xml file. My question relates to the situation when I want provide an updated feature to the app, not via app store update, but via…

Jake
- 16,329
- 50
- 126
- 202
1
vote
1 answer
How can I sandbox a third-party library within my Android application?
I include an AAR in my app which comes from a third party. My app declares lots of permissions, and has access to APIs that could potentially be used to access sensitive info or perform malicious actions. As I understand it, this means that the…

duggulous
- 2,427
- 3
- 23
- 40
1
vote
1 answer
Android Bluetooth function permission problem
I'am trying to make bluetooth connection android App. There is a button click 'BluetoothSearchBtn' event handler. And I wanted to implement bluetooth searching function.
But there is a problem with permission, and shows me redlines under the…

tonykrjhc
- 129
- 6
1
vote
0 answers
Why does PermissionsAndroid doesn't ask for permission again after denying in react native?
I am using PermissionsAndroid for taking permission from my user but the request popup doesn't show up again if I deny permission once.PermissionsAndroid.RESULTS.GRANTED automatically becomes false. Is there a way to make sure the request popup…

Knevagi
- 157
- 1
- 1
- 13
1
vote
1 answer
QUERY_ALL_PACKAGES permission requirements?
What are the requirements of newly added QUERY_ALL_PACKAGES permission?
Like, is adding it to manifest enough (like with internet-permission), or do I need to show dialog for said permission, like we do for storage-permission (in newer…

Top-Master
- 7,611
- 5
- 39
- 71