android-permissions

Cordova camera plugin permission denial in android 6.0

喜夏-厌秋 提交于 2019-12-06 11:47:46
问题 I am using ionic to develop a mobile application. The application requires camera. I added Cordova camera plugin to my project. Also I am using ngCordova wrapper. The application was working fine. Last day I used one device with android version 6.0 (Marshmallow) to test my app. when I click on the button it directly triggers the error. I done USB debugging, I got the error that Camera Error "Permission Denial: starting Intent { act=android.media.action.IMAGE_CAPTURE flg=0x3 cmp=com.google

Ask for runtime permission only for Android Marshmallow?

随声附和 提交于 2019-12-06 11:36:13
问题 I want to add run time permission only for marshmallow because it crashes my application in Android marshmallow devices otherwise its working properly. Is it possible to add multiple permissions at a single time? I have written code for camera permission, but I have written code for single permission and that is working fine. private void requestpermissioncamera() { final List<String> permissionsList = new ArrayList<String>(); if (!addPermission(permissionsList, Manifest.permission.ACCESS

Unity Android - Remove Caller ID permission

落花浮王杯 提交于 2019-12-06 11:07:24
Recently I've added two services - Chartboost and UnityAds for advertising in my ready-to-launch game. However I've noticed that the app now asks for a permission to read Caller ID data. I've searched the plugins Android Manifest and found no line of requesting this permission - I'm wondering if it is automatically added when using some special function? I've already researched this topic and found I have no usage of SystemInfo.deviceUniqueIdentifier that would put this permission in the manifest. I would appreciate any help or ideas on how to remove this permission. 来源: https://stackoverflow

Check permissions READ_CONTACTS in MIUI

落爺英雄遲暮 提交于 2019-12-06 10:14:50
问题 I try to check permissions in my Manifest I set <uses-permission android:name="android.permission.READ_CONTACTS" /> Then in fragment I try to check int permissionCheck = ContextCompat.checkSelfPermission(getActivity(), Manifest.permission.READ_CONTACTS); But I get only 0 despite of any state of permission in application properties in OS. I checked in Android 4.4.4 MIUI 6.5.1 May be the reason in MIUI I have got -1 if I try check permission which there isn't in Manifest, but I wanna know the

Is the name of a permission in android manifest not case-sensitive?

旧巷老猫 提交于 2019-12-06 08:52:19
问题 I am working on a software that analyzes android apps. While reviewing the results I found that several devs had mixed case in their permissions e.g. ACCESS_iNTERNET Is the permission handling not case-senstive? 回答1: They are case sensitive. Not documented, but I tried it. Anyway, android.permission.ACCESS_INTERNET or android.permission.ACCESS_iNTERNET won't change anything because the correct name is android.permission.INTERNET . http://developer.android.com/reference/android/Manifest

Android M email completition

五迷三道 提交于 2019-12-06 07:33:06
问题 as you know the permission system on Android M has been updated. I currently use the permission GET_ACCOUNTS to autocomplete the user email when he sign in/sign up on my app. final ArrayList<String> emails = new ArrayList<String>(); for (Account account : AccountManager.get(this).getAccounts()) { emails.add(account.name); } email.setAdapter(new ArrayAdapter<>(this, android.R.layout.simple_dropdown_item_1line, emails)); The problem is that on Android M, to continue to use this feature, I'll

Requesting Runtime permissions on Xiaomi devices

自闭症网瘾萝莉.ら 提交于 2019-12-06 05:48:47
When requesting permissions on devices with API level 23+ the documentation states you need to request each permission you need, and in case you are requesting a permission from a permissions group that you already have access to the permission is granted by by the system. Handle the permissions request response However, while adjusting my app to target API level 23 I noted that it is sufficient to request permission for one representative of the group - and the following checks for other permissions from the same group get PackageManager.PERMISSION_GRANTED when checking if has permission. For

Redmi phones not asking SMS permissions and hence not reading sms

微笑、不失礼 提交于 2019-12-06 05:20:55
问题 Following is my code: <!-- Data SMS Receiver --> <receiver android:name=".otp.OTPReceiver" android:enabled="true" android:exported="true" > <intent-filter> <action android:name="android.intent.action.DATA_SMS_RECEIVED" /> <data android:scheme="sms" /> <data android:port="9027" /> </intent-filter> </receiver> otp.OTPReceiver is the associated BroadcastReceiver This works in all other phones except Redmi devices. In Redmi phones you have to manually switch on autostart & other permissions in

Application (WiFi connections) doesn't work anymore on Android 6.0 Marshmallow

余生长醉 提交于 2019-12-06 05:00:42
问题 My application stopped working once I upgraded to Marshmallow, it was supposed to be able to change the WiFi connection, but now it doesn't do anything at all. I've spent some time reading about the new permission model of the Android 6.0. Well awesome, but old apps should continue working... Anyway, I started trying to implement the granting of permission, but realized that this is a normal permission and there should be done no permission request for it if it's defined in android manifest:

Android 5.0 - Declaring custom permissions in a module

一曲冷凌霜 提交于 2019-12-06 04:31:18
问题 I have a module in Android Studio that I'm using across several apps (all signed with different keys) that handles GCM notifications. In the GCM Client documentation they say to define package namespaced custom permissions: <permission android:name="com.example.gcm.permission.C2D_MESSAGE" android:protectionLevel="signature" /> <uses-permission android:name="com.example.gcm.permission.C2D_MESSAGE" /> and then again with the GCM receiver the category is set to the package name: <receiver