We have moved to a new Sailfish OS Forum. Please start new discussions there.
6

How to get android app OpenKeychain to work [answered]

asked 2014-11-09 22:26:03 +0200

Arie gravatar image

updated 2017-08-01 06:34:25 +0200

DarkTuring gravatar image

OpenKeychain is a new android app for GPG key management, encryption/decryption and signing/verification. It can work together with K9 mail, to provide encrypted and signed email.

As Jolla's email app does not provide encryption at this time, it would be nice to be able to use K9 mail together with OpenKeychain.

However, I cannot get OpenKeychain to work properly. In particular, after installing, it seems impossible to import my private key:

  • The "open file" option shows only the gallery as a source of available files. I even tried copying my key file to the gallery folder, but apparently only photos are shown.
  • The clipboard paste function does not work either: as sailfish to android clipboard functionality is not yet implemented, I tried to copy my private key file from another android app (firefox) and paste it in the OpenKeychain import dialog, but without result.

Is there anyone who knows how to get this to work? Is the lack of translation of the file picker interface from android to sailfish a known issue?

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by nthn
close date 2014-11-10 22:50:50.472503

Comments

as this seems to be the only topic here dealing with openkeychain, I'd like to add an important hint:

enable the access right for contacts in jolla settings / system / android support, otherwise openkeychain crashes at nearly all important actions

cg ( 2016-01-05 23:45:29 +0200 )edit

4 Answers

Sort by » oldest newest most voted
4

answered 2014-11-10 21:08:45 +0200

Icaruseffect gravatar image

Ok I found a solution: First install F-Droid Store. There you can download OpenKeychain and "File Manager" (a Cyanogen backport). Then you copy your .gpg keychain from the respective directory to /home/nemo/android_storage (as described before) with

    devel-su
   (password)
   cp /home/nemo/ name of your .gpg file /home/nemo/android_storage/

Then you can import the keys with OpenKeychain, choosing "File Manager"

Cheers :)

edit flag offensive delete publish link more

Comments

Very nice, this works.

Thanks a lot!

Arie ( 2014-11-10 21:56:17 +0200 )edit

@Icaruseffect works great for me, i wished some trused apps like openkeychain could be vetted and certified to get access to more of the sailfish OS filesystem so it integrates better, its an arbitrary decision by SFOs tp segregate user data, instead public folder could serve both worlds.

DarkTuring ( 2017-08-01 06:33:31 +0200 )edit
1

answered 2014-11-10 01:43:21 +0200

Icaruseffect gravatar image

You can copy your key to /data/media. This is mounted to the android filesystem. From terminal use

devel-su
cp /home/nemo/name of your file /data/media

You need developer mode to be activated Cheers

edit flag offensive delete publish link more

Comments

This doesn't work, I'm afraid. The file does not appear in the file picker.

Besides /data/media , I also tried /data/media/OpenKeychain (an empty folder that was already there), /data/media/Pictures (because a folder with pictures /is/ shown in the file picker), and /data/media/Download (as this seemed like a more or less logical folder), all without result.

Arie ( 2014-11-10 11:45:23 +0200 )edit

Hmm, did you try /home/nemo/android_storage ? I will try it when I'm home. cheers :)

Icaruseffect ( 2014-11-10 18:13:24 +0200 )edit
0

answered 2014-11-09 23:52:18 +0200

avhakola gravatar image

Afaik the Alien Dalvik is sandboxed from Sailfish OS and doesn't share clipboard and has limited access to filesystem.

edit flag offensive delete publish link more
0

answered 2017-08-01 19:22:14 +0200

olf gravatar image

updated 2017-08-01 19:22:50 +0200

  • Install F-Droid client (e.g. from the Jolla Store)
  • Enable Settings --> Android support --> Allow Android apps to access your contacts
  • Install OpenKeychain, K9 Mail and a file manager, which supports the "Open file" intent under Android 4.1.2 (e.g. OI File Manager) from F-Droid.

Is working fine for years on my Jolla 1 phone.

edit flag offensive delete publish link more

Comments

With recent versions of openkeychain (5.0.2), and K9-Mail (5.503), I can receive encrypted mails, but I can't send them anymore: When I try to select a key in K9-Mail's account-settings (probably new feature), try to send an encrypted mail, openkeychain pops up and crashes after less then a second. If you look back in the settings, no key is selected. I also tried slightly other versions of both apps (F-Droid, Aptoide..), same result.. I found two threads in other forums, where this happened also on native android-devices.. But not very popular.

So I don't recommend updating one of the apps, unless you know a fix or enough time to find out how.. I didn't just update, I did a fresh install after factory reset..

lazart ( 2018-06-11 00:15:05 +0200 )edit

Question tools

Follow
1 follower

Stats

Asked: 2014-11-09 22:26:03 +0200

Seen: 3,698 times

Last updated: Aug 01 '17