android-permissions

Permission Denial while sharing file with FileProvider

元气小坏坏 提交于 2020-06-11 04:04:26
问题 I am trying to share file with FileProvider. I checked that file is shared properly with apps like gmail, google drive etc. Even though following exception is thrown: 2019-08-28 11:43:03.169 12573-12595/com.example.name E/DatabaseUtils: Writing exception to parcel java.lang.SecurityException: Permission Denial: reading androidx.core.content.FileProvider uri content://com.example.name.provider/external_files/Android/data/com.example.name/files/allergy_report.pdf from pid=6005, uid=1000

USE_FINGERPRINT is deprecated in API level 28

六眼飞鱼酱① 提交于 2020-05-10 03:40:55
问题 Constant USE_FINGERPRINT was deprecated in API level 28 and we should use more generic USE_BIOMETRIC which has been added in same API level. I swap these constants in my Manifest and I'm getting error when calling FingerprintManagerCompat.from(context).isHardwareDetected() . Error is: Missing required permission - USE_FINGERPRINT This happens because of @RequiresPermission("android.permission.USE_FINGERPRINT") annotation in FingerprintManagerCompat in 28.0.0-rc3 support v4 lib. Is this

How to revoke Google Nearby permissions for an app?

喜你入骨 提交于 2020-03-05 03:55:27
问题 The first time I tried to test the Google Nearby API, I saw an "Allow to use Nearby" dialog which prompted for permission and this dialog mentioned that this setting could be changed later from Settings > Google > Nearby . However this location does not seem to exist on the app. I do see Settings > Google but there is no Nearby under the Google settings (tried on both device and emulator). I also found the same information online at https://support.google.com/accounts/answer/6260286?hl=en but

How to revoke Google Nearby permissions for an app?

筅森魡賤 提交于 2020-03-05 03:55:09
问题 The first time I tried to test the Google Nearby API, I saw an "Allow to use Nearby" dialog which prompted for permission and this dialog mentioned that this setting could be changed later from Settings > Google > Nearby . However this location does not seem to exist on the app. I do see Settings > Google but there is no Nearby under the Google settings (tried on both device and emulator). I also found the same information online at https://support.google.com/accounts/answer/6260286?hl=en but

Unable to access storage in Android Q

风格不统一 提交于 2020-03-03 05:47:04
问题 Although having read and write permissions I am unable to access sdcard in Android 10. This was my approach to list all directory. File root = new File("/mnt/sdcard/"); File[] subFiles = root.listFiles(); for(File file : subFiles) { if(file.isDirectory()) { String str = text.getText().toString() + "\n"; str+=file.getAbsolutePath(); text.setText(str); } } If I use /mnt/ instead of /mnt/sdcard/ I can see sdcard directory is listed in there but when I use /mnt/sdcard/ , subFiles is null . I don

Since Android 6.0 listening to the PhoneStateListener.LISTEN_DATA_CONNECTION_STATE changes seems to no longer require READ_PHONE_STATE permission

亡梦爱人 提交于 2020-02-26 14:41:29
问题 I'm applying Android 6.0 runtime permissions into an app which listens to carrier data connection state changes. I first tried to just remove the READ_PHONE_STATE from the manifest to check where the app requires the permission. To my surprise the app didn't crash at all. After this I've tried the same installation on two pre 6.0 devices which did actually crash on it. To me it seems like Android 6.0 does no longer require the permission. Is there any way to confirm this? The line below is

Since Android 6.0 listening to the PhoneStateListener.LISTEN_DATA_CONNECTION_STATE changes seems to no longer require READ_PHONE_STATE permission

点点圈 提交于 2020-02-26 14:37:42
问题 I'm applying Android 6.0 runtime permissions into an app which listens to carrier data connection state changes. I first tried to just remove the READ_PHONE_STATE from the manifest to check where the app requires the permission. To my surprise the app didn't crash at all. After this I've tried the same installation on two pre 6.0 devices which did actually crash on it. To me it seems like Android 6.0 does no longer require the permission. Is there any way to confirm this? The line below is

Android System Overlay window not working

旧城冷巷雨未停 提交于 2020-02-25 07:13:50
问题 I am building and Android app and trying to learn all I can in the process. As a test I wanted to add a "chat heads" style overlay to the system. So, I looked around and found some good tutorials, and some really good answers on here, but it is still not working. In my android manifest I have the uses-permission declaration.. <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> Then in my Preference page, when the user clicks on a SwitchPreference to activate the popup

Android System Overlay window not working

谁都会走 提交于 2020-02-25 07:12:30
问题 I am building and Android app and trying to learn all I can in the process. As a test I wanted to add a "chat heads" style overlay to the system. So, I looked around and found some good tutorials, and some really good answers on here, but it is still not working. In my android manifest I have the uses-permission declaration.. <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> Then in my Preference page, when the user clicks on a SwitchPreference to activate the popup

Permission Denial with File Provider through intent

泪湿孤枕 提交于 2020-02-24 07:49:37
问题 I am attempting send a bitmap from the cache directory of my app to the text messaging app. I am using file provider to grant temporary permission to the application that handles the intent. When I try to send the intent and I select the default android text messaging app from the intent chooser my message app crashes and I get this error. I tried selecting other applications from the intent chooser such as email and other messaging apps and it seemed to work fine, only crashes with the