android-permissions

How to programmatically enable auto start and floating window permissions

雨燕双飞 提交于 2019-12-27 11:59:12
问题 How can I enable auto start permission programmatically ? How to find which phone need to do auto-start code ? How to Check Auto start permission is enable or disable ? I am able to find only about display popup permission with canDrawOverlay() permission`. please help I have searched a lot ,I want to enable auto-start for device if it is not enabled.Some solutions I have found as below I have found code for xiaomi,honor and letv but I want same thing for Lenovo if(Build.BRAND

Why are permissions being automatically added to my AndroidManifest when including Google Play Services library

扶醉桌前 提交于 2019-12-27 11:08:07
问题 I noticed that the following permissions were automatically added when i use the following in my build.gradle file compile 'com.google.android.gms:play-services:7.5.0' This did not occur with the earlier versions of the play-services. does anyone have a solution to remove these unwanted permissions? I am only using the ads function (INTERNET and ACCESSNETWORK_STATE). I got no need for the LOCATION and USE_CREDENTIALS permissions. How do you remove these unwanted permissions? I noticed that

Why are permissions being automatically added to my AndroidManifest when including Google Play Services library

二次信任 提交于 2019-12-27 11:05:25
问题 I noticed that the following permissions were automatically added when i use the following in my build.gradle file compile 'com.google.android.gms:play-services:7.5.0' This did not occur with the earlier versions of the play-services. does anyone have a solution to remove these unwanted permissions? I am only using the ads function (INTERNET and ACCESSNETWORK_STATE). I got no need for the LOCATION and USE_CREDENTIALS permissions. How do you remove these unwanted permissions? I noticed that

How to run root commands from Android application?

情到浓时终转凉″ 提交于 2019-12-25 19:06:26
问题 I want to write an application which roots the device on which it is installed, I mean by installing this app you will be able to root your device without a computer, just like the app in the following link, http://www.kingoapp.com/root-tutorials/how-to-root-android-without-computer.htm I've searched a lot on how to do that using Java code for Android devices, but there was no clear solution to me. Based on my research, I think we need the following steps: 1- Being able to use shell commands

When exactly to ask for Runtime Permission?

核能气质少年 提交于 2019-12-25 07:59:12
问题 Since Runtime Permissions were introduced in Android Marshmallow, I've been meaning to apply the new way for requesting permissions and I've read and understood the dangerous permissions and how to check for them and request them. The question is, If I have an Activity that contains a Button for opening Camera. Do I check and request the permission when the Activity is opened? Or when the button is clicked? Please explain why your suggested way is preferred. 回答1: Do I check and request the

No internet access in signed APK

杀马特。学长 韩版系。学妹 提交于 2019-12-25 04:45:42
问题 I was working on an app that was working fine in the Debug build version and then I created a signed APK using keystore , and then with Android Studio --> Generate SIgned APK. When I install the signed APK manually by downloading on to my phone, it asks for all permissions including internet access. However post installation, app starts but none of the server calls / API calls are working. The phone has internet connection though (webpages open up in browser) My android manifest is : <?xml

Custom uses-permission with ionic 3

半城伤御伤魂 提交于 2019-12-25 01:01:25
问题 On app builds with Ionic3 (cordova 7.0.0 | android@6.2.3), I need to use microphone, SIP and internet access (WI-FI). So I try edit config.xml with edit-config in this way: <edit-config file="AndroidManifest.xml" mode="merge" targe="/manifest”> <uses-permission android:name="android.permission.USE_SIP" /> <uses-permission android:name="android.permission.RECORD_AUDIO" /> <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> <uses-permission android:name="android.webkit

Android Permission Denial starting Intent for Wallpaper Settings

一笑奈何 提交于 2019-12-24 15:03:22
问题 Unfortunately when I try to run my wallpaper I get an error message saying Permission Denial starting Intent and requires android.permission.BIND_WALLPAPER but I can't seem to figure out why. My manifest looks like the following: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.package"> <uses-feature android:name="android.software.live_wallpaper" /> <uses-permission android:name="android.permission.SET_WALLPAPER" />

My Android application requires permissions I didn't request

北城余情 提交于 2019-12-24 13:19:21
问题 I've just created a very simple Android application that captures an Intent, manipulates it a bit, and sends out a new Intent. I transferred the app to my phone with adb install , and now looking at the app's requested permissions, I'm seeing that it requires permissions I never asked for: read phone status and identity modify or delete the contents of your USB storage test access to protected storage There's nothing in my manifest file requesting permissions, and the app itself is dead

Android Integration test application permissions

馋奶兔 提交于 2019-12-24 10:45:31
问题 I'm looking a way to get current device's serial number in my integration tests. Now, when calling TelephonyManager manager = (TelephonyManager) getActivity().getSystemService(Context.TELEPHONY_SERVICE); String deviceId = manager.getDeviceId(); in my test method, I get java.lang.SecurityException: Requires READ_PHONE_STATE: Neither user 10227 nor current process has android.permission.READ_PHONE_STATE. I added <uses-permission android:name="android.permission.READ_PHONE_STATE"/> in my test