android-permissions

This app is incompatible with your device in play store(Galaxy S5, Only READ_PHONE_STATE Permission)

无人久伴 提交于 2019-12-13 02:05:49
问题 I just developed a simple widget "SIM Info Widget", which shows very basic information like SIM State, Serial Number, Operator Name etc. For any of the information just I need an Instance of TelephonyManager and "android.permission.READ_PHONE_STATE" permission. When I directly run the app in my Phone(Samsung Galaxy S5/G900I) through Eclipse, it got installed and running perfectly.(Screenshot is attached) But when I published it in Google Play, It says This app is incompatible with your device

android file provider: Example to access files in a folder of app private directory(/data/data/<pkg_name>)

孤街醉人 提交于 2019-12-13 01:30:01
问题 I am running android test using Cucumber.The reports of the test are being stored in /data/data/pkg_name/cucumber-reports.Now I need that content inside "cucumber-reports" folder.I used copy command to copy the cucumber reports folder from internal storage to Public External Directory(PICTURES) which is working in Marshmallow.But when I ran in Nougat,I am unable to copy that folder to External Directory.I am unable to access the folder on Android 7+ version device as due to the introduction

Android App is not visible on Google Play store for tablets

天大地大妈咪最大 提交于 2019-12-13 00:09:26
问题 Can anyone suggest me why this app is not visible for tablets on google play store. I am using GCM, Gmap, Camera and storing files on sdcard. It is not visible for major tablets on google play store, sim and simless. I do know that google play store mask app from device which not match with manifest permissions however I believe that there no any permission which is not exist on major samsung devices. Please find below manifest. <manifest xmlns:android="http://schemas.android.com/apk/res

Android 6 (23) - no permission requested

ぐ巨炮叔叔 提交于 2019-12-12 20:15:35
问题 I stucked on new permission model in the Android 6. I defined following permissions in the manifest: <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.VIBRATE"/> <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> <application... But if i launched the app in the emulator and opened the app detail i saw the following : It says that app

Is it possible to check if another app has been granted a permission on Android 6.0+?

醉酒当歌 提交于 2019-12-12 20:14:29
问题 I want to check if another app has been granted a "dangerous" or "system" level permission. I have tried loading another app's context and calling packageContext.checkCallingPermission(permission). However, the documentation says it returns PERMISSION_GRANTED if the calling pid/uid is allowed that permission, or PERMISSION_DENIED if it is not. Is it possible to check if another app has been granted a permission? Here is my attempt (I wrote it before realizing it checks the calling pid/uid and

AndroidTest Manifest permission not detected

佐手、 提交于 2019-12-12 19:16:41
问题 I have androidTest Manifest that has this permission: <uses-permission android:name="android.permission.SET_ANIMATION_SCALE" /> However, when I run the test, this permission is not set in my devDebug build. It only works when I add it to main/AndroidManifest.xml. Full androidTest/AndroidManifest.xml, <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com.test.mobile"> <uses-sdk android:minSdkVersion="15" android

When asking for runtime permission for location

雨燕双飞 提交于 2019-12-12 14:23:32
问题 Currently when asking for run time permission when launching my app for the very first time it prompts the user to use their location. And if you click yes it doesn't enable location like it should. But if I relaunch the app it enables the location. Any suggestions as to where I can get it to have location enabled on first launch ? The first part of the code is called in OnCreate. if (ContextCompat.checkSelfPermission(MapsActivity.this, Manifest.permission.ACCESS_FINE_LOCATION) !=

Android Do not Disturb (DnD) permission in managed profile

和自甴很熟 提交于 2019-12-12 12:56:42
问题 I have the following problem: My app is distributed over an MDM system and runs in Android for Work. In certain situation, the app must temporarily terminate the DnD mode. To achieve this, the user must grant the DnD permission when the app is started. So far so good. If I install the app in the unmanaged area, the app shows up in the list and the permission can be granted without any problems. As soon as the app is distributed via an MDM system, the app no longer appears in the list and the

Not allowed to start service Intent without permission - sender does not get permissions

[亡魂溺海] 提交于 2019-12-12 11:45:09
问题 I'm working with Mark Murphy's excellent Commonsware books - but it's a lot to digest. I built the 'FakePlayer' app (pretends to be an mp3 player). It contains a service. As a learning experience I tried to write a trivial app (has only a button) whose click handler does: Intent i = new Intent(); i.setAction("com.example.cwfakeplayer.MyPlayerService"); Context context = getApplicationContext(); context.startService(i); It worked fine - the service start ok. I noticed Eclipse complaining about

Android permisson BIND_NOTIFICATION_LISTENER_SERVICE is not working

大兔子大兔子 提交于 2019-12-12 11:40:28
问题 I'm working in React Native Application. I'm trying hard in Android to make use of Notification Services & BIND_NOTIFICATION_LISTENER_SERVICE . I'm trying to read the incoming notifications using NotificationListenerService . I'm using One Plus 5T (Android Oreo) for debugging. I've seen lots of duplicate questions and I've tried the following solutions which I got from those questions. 1.Restarting the phone (Sounds silly and it doesn't work) 2.Re-install/Re-build the application Renaming the