-
Notifications
You must be signed in to change notification settings - Fork 45
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
Java.Lang.UnsupportedOperationException: 'For encrypted files, please open the relevant FileInput/FileOutputStream.' #405
Comments
Tried to investigate the issue. Have a guess that it is connected to mapping of Java
|
Are you using Android.Support? |
True. So, this is not issue with the bindings. You need to see what must be done in java or kotlin (native) and then port that code. This exception would happen with java or kotlin. |
I thought that the issue is in mapping to general
That's exactly what I've tried to do. From android documentation sample usage is:
So, as you can see in steps to reproduce, I tried to do the same in my code (just added small file existence check, usings and explicit types), but opening the file always throws this exception. Maybe you could introduce
Yes, we use some:
|
I'm running into the same issue with the latest 1.1.0-alpha05. |
Version Information
Xamarin.Android.Support.Design 27.0.2.1
Xamarin.Android.Support.v4 27.0.2.1
Xamarin.Android.Support.v7.AppCompat 27.0.2.1
Xamarin.Android.Support.v7.CardView 27.0.2.1
Xamarin.Android.Support.v7.MediaRouter 27.0.2.1
Xamarin.AndroidX.AppCompat.Resources 1.1.0
Xamarin.AndroidX.Arch.Core.Runtime 2.1.0.8
Xamarin.AndroidX.Legacy.Support.V4 1.0.0.7
Xamarin.AndroidX.MediaRouter 1.2.4
Xamarin.AndroidX.Palette 1.0.07
Xamarin.AndroidX.Security.SecurityCrypto 1.0.0.3
Describe your Issue:
When trying to open encrypted stream to read file with
AndroidX.Security.Crypto.EncryptedFile.OpenFileInput()
exception Java.Lang.UnsupportedOperationException with message: 'For encrypted files, please open the relevant FileInput/FileOutputStream.' is thrownSteps to Reproduce (with link to sample solution if possible):
Include any relevant Exception Stack traces, build logs, adb logs:
The text was updated successfully, but these errors were encountered: