-
Notifications
You must be signed in to change notification settings - Fork 516
Description
Expected Behavior
I first reported this issue as a comment on issue #1687. @dschuermann suggested I opened a separate issue.
The issue is as follows:
I encrypt a file on Windows, using gpg4win. I've tried both with text files and binary files, and I see the same behavior: when I decrypt with OpenKeychain on Android, the decryption phase works fine, and ends with "Unknown filename (touch to open)". But when I touch to go ahead, I get an Android popup saying "Decrypt with OpenKeychain" popup. This seems to invoke OpenKeychain on the decrypted file, and that fails with an error "Encountered an error reading input data".
I'm attaching 4 screenshots. Two of them are the popups, and the other two are the logs from the two invocations to OpenKeychaing (the original and the nested one)
drive-download-20170429T142514Z-001.zip
Current Behavior
The decryption of any file encrypted with gpg4win, results in a nested invocation of OpenKeychain from within OpenKeychain. The top level invocation succeeds, but the nested one fails with "Encountered an error reading input data". As a result I can't see or save the decrypted file.
Possible Solution
It seems to me that after proceeding from "Unknown filename (touch to open)", OpenKeychain is calling some Android action that triggers the nested invocation. Maybe it's trying to save the file using ".asc" or ".pgp" extension?
Steps to Reproduce (for bugs)
Hopefully the attached screenshots help. Let me know if I can provide anything else.
If you provide a key, I could encrypt a file for you using gpg4win, so that you can reproduce.
Context
I'm simply trying to keep encrypted files in Google drive that I can decrypt on my phone.
Your Environment
- Android Version:
6.0.1 - OpenKeychain Version:
4.3 - From Google Play or F-Droid?:
Google Play