AlexChumakou / dashclock

Automatically exported from code.google.com/p/dashclock
0 stars 0 forks source link

ParcelFileDescriptor Permission denied #652

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create DashClockExtension
2. When building an ExtensionData, use iconUri

What is the expected output? What do you see instead?
I expect to see an icon but instead it is blank.

What version of the product are you using?
2.0

Which device and Android version are you experiencing this issue on?
Nexus 4 & 5, Android 4.4

Are you using a custom launcher or ROM? If so, which one? Note that custom
launchers and ROMs are not supported.
Stock ROM.

Please provide any additional information below.
ParcelFileDescriptor is running into a Permission Denied error. Has there been 
any changes to Android 4.4 that would cause this? I read through 
http://developer.android.com/about/versions/kitkat.html but couldn't find 
anything. Works fine on Android 4.3.

Original issue reported on code.google.com by alex.fu...@gmail.com on 25 Nov 2013 at 2:19

GoogleCodeExporter commented 8 years ago
I should also point out that the icon image resides in the cache directory of 
my app.

Original comment by alex.fu...@gmail.com on 25 Nov 2013 at 2:21

GoogleCodeExporter commented 8 years ago
The icon URI should be served from a content provider. DashClock can't read a 
URI residing in an app's private directory on the data partition.

Original comment by roman.nurik on 25 Nov 2013 at 3:30

GoogleCodeExporter commented 8 years ago
If that was true, shouldn't this have failed in previous versions of Android 
and not just in 4.4? 

Original comment by alex.fu...@gmail.com on 26 Nov 2013 at 12:09

GoogleCodeExporter commented 8 years ago
This may've been a bug fixed in 4.4, not sure, but this is intended behavior.

Original comment by roman.nurik on 26 Nov 2013 at 2:18

GoogleCodeExporter commented 8 years ago
Thanks!

Original comment by alex.fu...@gmail.com on 26 Nov 2013 at 2:20