android-permissions

Use custom RenderScript in system signed application

泪湿孤枕 提交于 2019-12-10 23:29:26
问题 How to use custom RenderScript script in an application which is signed by system certificate? LogCat output: E/RenderScript: Failed loading RS driver: dlopen failed: cannot locate symbol "_ZN7android12renderscript15RsdCpuReference6createEPNS0_7ContextEjjPFPKNS1_9CpuSymbolES3_PKcEPFPNS1_9CpuScriptES3_PKNS0_6ScriptEEPFPN4llvm6ModuleEPN3bcc8RSScriptESK_SK_EPFS8_S8_jES8_" referenced by "/system/vendor/lib/libRSDriver_adreno.so"... E/RenderScript: Failed to load runtime libRSDriver_adreno.so,

Application restart is required when user accepts READ_EXTERNAL_STORAGE permission

余生颓废 提交于 2019-12-10 23:23:27
问题 When user accepts READ_EXTERNAL_STORAGE permission, the permission is granted successfully (it can be seen in debug). But the directory can't be read ( dir.canRead() is false in debug) until the app is restarted. minSdkVersion 24 targetSdkVersion 28 What is wrong with Android Pie? P.S. I'm absolutely sure that my code is written right (this part of asking for permission etc.) 回答1: I had the same problem, but with the official release on Pixels it has been solved, so the bug was happening only

SCREEN_BRIGHTNESS_MODE does not work with permission

情到浓时终转凉″ 提交于 2019-12-10 22:19:56
问题 In my app I want to change the SCREEN_BRIGHTNESS_MODE (and set another value). I added the permission in the AndroidManifest.xml (double checked with other parameters in the file). The value of the mode should be changed, when a button was pressed. @Override public void onClick(View v) { if(on) { ContentResolver cResolver = getContentResolver(); Settings.System.putInt(cResolver, Settings.System.SCREEN_BRIGHTNESS_MODE, Settings.System.SCREEN_BRIGHTNESS_MODE_MANUAL); Settings.System.putInt

Location Permissions on Android 5.1

孤街醉人 提交于 2019-12-10 20:44:58
问题 We have built and deployed a location-based shopping app that worked perfectly. That is until we discovered that our app does not work on Android 5.1.1 devices due to a Security Exception thrown. After a little research I discovered that Google has created a new method of asking for permissions at runtime but did not see any clear ways of doing that. Can anyone give clear guidelines/lines of code of requesting permission from the user at runtime. Will the app also have to do this every time

requestPermissions NameNotFoundException android M

给你一囗甜甜゛ 提交于 2019-12-10 19:44:24
问题 I have the following code: public static void requestPermissions(final Activity activity){ System.out.println("Permission 0 : " + activity.getPackageName()); int permission = activity.getPackageManager().checkPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE, activity.getPackageName()); if(permission != PackageManager.PERMISSION_GRANTED){ PackageManager pm = activity.getPackageManager(); try { PackageInfo pi = pm.getPackageInfo(activity.getPackageName(), PackageManager.GET_ACTIVITIES);

Unknown permission com.android.vending.BILLING

試著忘記壹切 提交于 2019-12-10 18:33:58
问题 I'm trying to set-up the In-App billing feature in my application. So far I followed this guide: http://developer.android.com/training/in-app-billing/preparing-iab-app.html However when I'm specifying the Billing permission <uses-permission android:name="com.android.vending.BILLING" /> the following message is appearing in LogCat: Unknown permission com.android.vending.BILLING in package org.noi.activity every time I start my application. As I mentioned above I registered the Billing

Can I get access to NFC without manifest permission in android?

我只是一个虾纸丫 提交于 2019-12-10 18:14:53
问题 I need to create app with optional NFC functionality. Can I get access to NFC without manifest permission (Android)? Or should I create two apps: an NFC version and one without it. 回答1: Updated as per finding of thorbear The uses-feature element so that your application shows up in Google Play only for devices that have NFC hardware: <uses-feature android:name="android.hardware.nfc" android:required="true" /> If your application uses NFC functionality, but that functionality is not crucial to

DeviceId and app permissions

☆樱花仙子☆ 提交于 2019-12-10 16:52:03
问题 My app (S Educate) requires me to get the DeviceId (for Analytics/Recommendations) and hence I added the permission, READ_PHONE_STATE and although the documentation is harmless, when the user installs, the app permissions window shows, "Phone Calls - Monitor, record, and process phone calls" which obviously prevents user from installing and users have informed that they are not installing simply because of this permission. Screenshot (click for larger variant) Here are my options: I state

FingerprintManager.isHardwareDetected() throwing java.lang.SecurityException?

冷暖自知 提交于 2019-12-10 16:19:59
问题 I have an App that offers the usage of fingerprints for authentication. Before asking if the user wants to enable it, I verify if it is available at all and it is done via: FingerprintManager fingerprintManager = context.getSystemService(FingerprintManager.class); return fingerprintManager.isHardwareDetected() && fingerprintManager.hasEnrolledFingerprints(); Both FingerprintManager 's methods are annotated with: @RequiresPermission(USE_FINGERPRINT) But, the USE_FINGERPRINT permission is a

Android “Permission Denial: can't use the camera”

余生颓废 提交于 2019-12-10 16:19:13
问题 I'm following a tutorial on utilizing the camera in an Android app. I am getting the error "Permission Denial: can't use the camera" when running debug, both on emulator and physical device. I have tried a variety of permissions in my manifest file. It seems most people who have had this error have had a typo, a missing permission, or the permissions not in the right place in their manifest. Here's my manifest file: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http:/