Questions tagged [android-permissions]

1

votes
3

answer
95

Views

My Application not having Internet access on One plus devices only

I am getting a weird issue while testing on multiple devices. I am currently working on a application which uses internet connection for Api calls. Application tested on 15 different devices & in 12 devices it works perfectly fine. Only 3 devices its not working are the One plus devices. I tried to...
Mayur
1

votes
1

answer
213

Views

java.lang.IllegalArgumentException occurs upon retrieving external storage path android

I have implemented an android application which uses device camera to take images. I want to save the images to the external storage directory of device. I have been following the instructions given here in android documentation to achieve this. Here is my code: I have added the provider in manifest...
bhavana
1

votes
1

answer
188

Views

Use the same App-Signature-Certificate with different apps using Google Play App Signing

I have two different apps, and I want them to be able to communicate together. For security reasons, I would like to restrict the communication with protectionLevel:signature, so I don't have to worry about other apps possibly messing with my apps. The problem is, I use Google Play Signing for the...
knaecke
1

votes
1

answer
232

Views

I am using for android SDK target version is 22 for READ_CONTACTS

I am used for the permission for read a contact for assign a permission in manifest. my question is that I am not go to the increase the sdk version to 23 to show a permission dialog (given by default by android)to the user and take a permission and go through it.in the android sdk version 22. mi...
Ashwani kumar
1

votes
3

answer
136

Views

How Does Permission get asked Again?

I am seeking to copy my SQLite database to 'external' storage as a means of backing up my database file. From there the user can grab the .db file and move to a place deemed safe. In following the Android Developer documentation on getting permission to WRITE_EXTERNAL_STORAGE, I have entered the co...
CS Student
1

votes
0

answer
101

Views

FileObserver on system files

For a survey I want to monitor user-compelled changes in the Android M application permission settings. I decided to create a FileObserver watching /data/system/users/0/runtime-permissions.xml. This file holds all information but only has read/write access for the system -rw-------. chmod won't wor...
phoeller
1

votes
0

answer
70

Views

Your device isn't compatible with this version - No Carrier

My app is not shown on GooglePlay store search for some devices (e.g Intel JM1011, Lenovo TB2-X30F), and when I tried to access it through the browser I found it is not compatible with these devices as they have 'No Carrier', although I mentioned all of the carrier required permissions in my app man...
Muhammed Refaat
1

votes
0

answer
769

Views

java.lang.SecurityException: Permission Denial: opening provider when get data from content provider of another app

I have two apps from which i want to share data between the apps using content provider.What i do, i have create Content Provider in app A. Below is Manifest.xml file of app A. Now in App B I am trying to access content provider on App A. Below in Manifest.xml file of app B. Now from app B i am tryi...
amit semwal
1

votes
2

answer
188

Views

Display request permission dialog only when fragment is visible in ViewPager

I have a ViewPager with 3 tabs, in each of these tab I can have 2-3 or 4 sub tabs. When opening the activity, all the tabs (all the fragments) are loaded. Some of the fragments are asking some permissions (can be same permission for different fragment). My main problem is all the request permission...
Chol
1

votes
0

answer
2.8k

Views

Permission dialog for “Modify System Settings”

Application requires the following permissions 1- Camera 2- Allow modify system settings User easily allow and deny the camera permission via permission dialog. User gets confused on 'Allow modify system settings' because instead of a permission dialog a screen is appeared (Image Attached Below)....
MGD
1

votes
0

answer
29

Views

In Android, can the user grant an app permission to view their current webpage?

I'm hoping to write an app that is overlayed on the user's web browser (ideally I want the app to work on all web browsers - but if not, just working on the major web browsers: firefox, chrome, and the default browser is fine), so they can access the app's functionality whenever they are browsing (s...
Roymunson
1

votes
0

answer
14

Views

Programatically trigger Dialpad buttons during call

Is it possible to programatically trigger dialpad buttons during running calls? This functionality will be running (of course) on the devices, which will be allowed to do this function. Do I need some permissions (not just for opening dialpad)? Or If I'll create my own dialpad small app, will this b...
jantursky
1

votes
2

answer
249

Views

Application crashes on launch because of missing location permission

My application crashes on launch because of missing permissions. I already added these missing permissions in manifest.xml and also implemented run time permissions inside the class. This my logcat. It was just working when I opened it last time and I didn't change anything. What can be the prob...
Escaper
1

votes
2

answer
207

Views

java.lang.SecurityException: [INSERT] User permission to WRITE is not acquired in Samsung Health

I am getting below error in Samsung Health: 04-23 11:42:08.700 15067-15067/com.demo.samsunghealthdemo E/AndroidRuntime: FATAL EXCEPTION: main Process: com.demo.samsunghealthdemo, PID: 15067 java.lang.SecurityException: [INSERT] User permission to WRITE is not acquired at android.os.Parcel.readExcept...
Vishal Bhadani
1

votes
0

answer
189

Views

Unable to test code requiring CHANGE_NETWORK_STATE / WRITE_SETTINGS permission on Marshmallow

I am trying to upgrade my app's targetSDK to above 23 and I've run into a small problem. I have an activity that binds traffic to Wifi (to measure the network speed to the router, even if the router is not connected to the internet). In order for that to happen my app needs the CHANGE_NETWORK_STATE...
Emil S.
1

votes
0

answer
60

Views

Neither User 10060 nor current process has android.permission.serial_port

I am trying to access a barcode reader connected to an android device using serial port. I'm using android.app.smdt.SmdtManager to access the device. But whenever I try to access the serial port, it throws an exception Neither User 10060 nor current process has android.permission.serial_port I have...
Vijeesh
1

votes
0

answer
42

Views

Permission not available in App settings

I have declared storage permission in the manifest and try to seek user permission for SDK 23 and above. But, I found an issue, I cannot see the added permission in the app settings. I have never come across such situation. Let me know where am I doing wrong. Here are the screen shots. Manifest File...
1

votes
2

answer
298

Views

How to avoid requestPermission() if the user has checked “Never ask again”?

I'm dealing with on demand permissions in Android and I found a confussing situation. My objective is to display a dialog with a 'go to app settings' button if the user has selected 'Never ask again' in a permission. OK, if the user selects 'Never ask again' then, next time you request the permissio...
1

votes
0

answer
66

Views

How to get MODIFY_PHONE_STATE on rooted device

I have rooted phone where i am running my application which need to answer a incoming phone call. Currently getting an exception like this: java.lang.SecurityException: Neither user 10174 nor current process has android.permission.MODIFY_PHONE_STATE. As i have a rooted phone and it is require a runt...
user565
1

votes
1

answer
220

Views

react-native RECEIVE_SMS android permission always results 'never_ask_again'

I am requesting multiple permissions. All are working fine except receive sms where the result is always 'never_ask_again'. The following is the code I am trying: _getPermissions = async () => { try { const resuts = await PermissionsAndroid.requestMultiple([ PermissionsAndroid.PERMISSIONS.ACCESS_FI...
noshusan
1

votes
1

answer
63

Views

Android N, O App Overlay stays after Permission request declined

I have an app that needs access to the users accounts. As the user declines the Contact Permission Dialog, the odd behaviour begins. As usual the dialog appears and the app in background gets an overlay to darken content. If the user declines the permission now, the dialog disappears, but the dark...
Rustyhamsterr
1

votes
1

answer
88

Views

Checking Permissions on Android Location Manager

here is my code package com.example.decimateglitchlocation; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.os.Bundle; import android.app.Activity; import android.content.Context; import android.location.Location; import android.location.LocationListener; im...
1

votes
0

answer
41

Views

How to answer a call in Android starting API 24 and above?

I can answer calls up to API Lollipop using this code. For Marshmallow, I just add a permission request for the user then the same code works as well. However, starting API 24 it doesn't work! How can I answer a call starting API 24 and above?
Mena
1

votes
0

answer
152

Views

Dialogue box for permission not appearing. using PermissionsAndroid React-Native

const granted = await PermissionsAndroid.request( PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION, { title: 'Cool Photo App Camera Permission', message: 'Cool Photo App needs access to your camera ' + 'so you can take awesome pictures.' } ) if (granted === PermissionsAndroid.RESULTS.GRANTED || g...
Wick Tutorails
1

votes
1

answer
1.1k

Views

Android android.permission.INTERACT_ACROSS_USERS warning when finishing activity

My app's service starts activity in LockScreen(android:showOnLockScreen='true' option in Manifests.xml). The LockScreen activity sets onTouch listener. In onTouch, it calls finish() to close activity This finish() function incurs warning message 'requires android.permission.INTERACT_ACROSS_USERS' Ho...
SJ.Je
1

votes
0

answer
22

Views

Ionic Cordova PhotoGallery SaveImage can't get permission

I'm building an app with ionic & cordova and I have to display some images and let the user decide which to download to its device. The code I use to save the image is the following: this.pl.requestAuthorization().then(()=>{ this.pl.saveImage(path+'&ext=.jpg','ALBUM').then(()=>{ this.showAlert('SUCC...
ZioCain
1

votes
2

answer
259

Views

runtime error: No static method checkSelfPermission

I am getting this error (obviously I am not the only one) at runtime: 6-25 14:30:00.016 28669-28669/com.augview.augviewdev E/AndroidRuntime: FATAL EXCEPTION: main Process: com.augview.augviewdev, PID: 28669 java.lang.NoSuchMethodError: No static method checkSelfPermission(Landroid/content/Context;...
guillaume
1

votes
0

answer
48

Views

Android : Is there a way to detect a change in brightness of an android device.

I am designing a game in which the player has to change the brightness of his phone in order to pass to the next level. The idea I have is that there might be an android-permission to allow detect a change in the brightness level. So my question is that how do I use it in my app. Thanks in advance.
Bucky Roberts
1

votes
2

answer
282

Views

java.lang.StackOverflowError in onRequestPermissionsResult (Android)

In my code, I request: int permissionCheck = ContextCompat.checkSelfPermission(this, android.Manifest.permission.READ_PHONE_STATE); int permissionCheck1 = ContextCompat.checkSelfPermission(this, Manifest.permission.READ_CONTACTS); int permissionCheck2 = ContextCompat.checkSelfPermission(this, Manife...
Ron Arel
1

votes
3

answer
56

Views

How to make compatibility in android app

I'm beginner Android Developer. I have built simple android app which use flash from camera. I have built this app for API less then 23 and it was working, but then I change camera library to camera2 and rebuilt app. But my issue - my app is compatible just for about 5k devices. Old version is compa...
VSirchenko
1

votes
0

answer
206

Views

Running script from android get java.io.IOException: Permission denied

public void dumpTrace() { try{ int number1 = 10; int number2 = 32; ProcessBuilder pb = new ProcessBuilder('python', '/home/cpu10475-local/Downloads/BlockTest/test1.py', ''+number1, ''+number2); Process p = pb.start(); BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));...
Quang Nhat
1

votes
0

answer
21

Views

When can CONTEXT_INCLUDE_CODE throw SecurityException?

According to Android docs, createPackageContext() throws SecurityException if the Context requested cannot be loaded into the caller's process for security reasons (see CONTEXT_INCLUDE_CODE for more information}. What permission does prevent an app's be loaded in another, thereby throwing SecurityEx...
Holmes.Sherlock
1

votes
1

answer
188

Views

How to find source of a permission in an Android app?

My users are complaining that my app now requires 'run at startup' permission according the listing on Google Play. I have no need for this permission so would like to remove it from my app. I assume it must be from a library that I use but which one? In the 'Merged Manifest' there is nothing about...
theJosh
1

votes
1

answer
56

Views

Android onRequestPermissionsResult utility of super

When I'm using onRequestPermissionsResultiis it is usefull to keep the super ? @Override public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) { super.onRequestPermissionsResult(requestCode, permissions, grantResults); } If we look at the super method @Ove...
Robert Tripoux
1

votes
1

answer
273

Views

Writing to the external storage is not working anymore on Nougat

I wrote a little app to learn how to write and read files. It worked, but now I can't write files any more.. 1.I added to Manifest: 2.In MainActivity // permissions array: final String[] permissions = new String[]{Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.WRITE_EXTERNAL_STORAGE,...
Marco
1

votes
0

answer
55

Views

Setting up permissions for “Permissions denied for this window type” error

I need my application to enter in kiosk mode (disable all buttons). This application will be installed with all the phones (we work with the cellphone manufacturer). WHAT I NEED: I need to disable the top bar drag, I am looking tho capture all inputs and do nothing with them as suggestion in variou...
Tope Lourenco
1

votes
0

answer
87

Views

EasyPermissions on Android does't grant permissions

I am using EasyPermissions library to grant some permissions in my app. This is the scenario: This is logcat initializing my app and pressing the button. D/HomeActivity: He pulsado ringtoneMenuOpen D/HomeActivity: onPermissionsDenied D/HomeActivity: Hemos llegado aquí con permisos denegados y 'No v...
Genaut
1

votes
1

answer
29

Views

Getting a null array when getting permissions in my App

I just added to my app Report A bug, and I wanted to save Permissions. When I put code to get all permissions in array (info.permissions(PackageInfo info = manager.getPackageInfo(context.getPackageName(), 0);)) and When I get each permission for (PermissionInfo perm_info : info.permissions) { errorR...
Developer From Jokela
1

votes
1

answer
93

Views

Warning to check permission still shown if checkSelfPermission() extracted to a method

I get why Android Studio shows the MissingPermission warning. Call requires permission which may be rejected by user: code should explicitly check to see if permission is available (with checkPermission) or explicitly handle a potential SecurityException less... (⌘F1) If there is an @RequiresPer...
Marcel Bro
1

votes
1

answer
97

Views

Catching onRequestPermissionsResult() from outside the activity

I'm currently trying to learn android and how to make android applications. After many researchs I can't find a good way to handle permissions properly. What I would like is to be able to ask permissions from any activity and detect if the user has accepted it or refused it. Here's where I am: I hav...
toto1911

View additional questions