-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ContentResolverFileAccessDeniedException with custom file provider #187
Comments
Hi @marccala, can you share you app name where you're experiencing this issue? Can you share logcat logs around the failure time? |
The app where I'm experiencing this issue is called Symphony. It's the second time that someone from Intune told me that in Intune log one cannot see the log from Symphony. Do you have any explanation about this fact? I created a new Incident ID 23DF7T5C. In this incident I install the Symphony for Intune app from the Play Store, launch it and reproduce the failure. For security reason I will send the logcat log around this failure by email Best regards, |
Hi @marccala, it looks like the MAM logs for your app are still missing. It is not clear why this is the case. They should be available in your app's While we work through the logging issues, I can try to provide some context on the exception. In general, a In your example, this means
As to why only |
Hi @codylund I was able to get the MAM logs from the cache folder. I send them by email. As you suspected it seems that there is a problem with identity of the file, I can see The Picasso library is charge of displaying images that are saved in the app cache directory. However these images are encrypted . When Picasso library try to open these images, our EncryptedFileProvider is called to decrypt them on the fly. If you cannot find the root cause of this issue we will consider making a sample application. |
Thanks for the context, @marccala! If I'm understanding correctly, it sounds like the Picasso library is reading managed files (i.e. files tagged for the managed MAM identity) via your To start, do you control the thread, If you are already setting the identity in the Picasso context correctly, we probably have a compatibility issue with Picasso. A sample app would be best, but we could start with a sample code snippet if your app's interaction with the Picasso library is simple enough. |
Hi @codylund By adding in the manifest the support to multi-identity solves this issue.
The However my app is a single account app, only one account can use the app. For that reason I don't understand why I should set the multi-identity as true and why it solves this issue. To reply to your question Picasso is loading the file from the applicationContext, I think it uses internally a thread pool and uses the application process. |
Hi @codylund Do you have any update on my question? Thanks |
We are investigating this issue, no timeline to share currently. Intenal tracking #26168946 |
Intune Android App SDK [Gradle Build Plugin] Issue
Questions to Ask Before Submission
Summary
Dear Intune SDK support,
After contacting the Intune support I have been told to open an issue here.
We are currently facing an issue on Android with our custom file provider getting a ContentResolverFileAccessDeniedException.
This issue seems to be similar as: #160
Description of the issue:
Prerequisite: On Intune Portal, “Receive data from other apps” is set as “Policy managed apps”
Scenario: Display an image in our app with Picasso library
URI of the image: content://com.myapp.custom.fileprovider/attachments_cache/IMG20230920110632.jpg
Declaration in the Manifest of our CustomFileProvider, this class extends the Android FileProvider class
Call Stack
Note
This issue doesn’t happen if we use Android FileProvider (androidx.core.content.FileProvider)
URI: content://com.myapp.fileprovider/attachments_cache/IMG20230920110632.jpg
Declaration in the Manifest of the custom file provider
This issue also doesn’t happen with our CustomFileProvider if on Intune Portal “Receive data from other apps” is set as “All apps”
Details
Logs
Incident ID: JQXJ7CZE
The text was updated successfully, but these errors were encountered: