[Freedombox-discuss] QR verification after Tap-to-share PGP key exchange
- Subject: [Freedombox-discuss] QR verification after Tap-to-share PGP key exchange
- From: timur.mehrvarz@googlemail.com (Timur Mehrvarz)
- Date: Sun, 02 Oct 2011 12:59:58 +0200
- Message-id: <[🔎] 4E88442E.5010800@googlemail.com>
- In-reply-to: <4E863C65.7090001@googlemail.com>
- References: <1316794602.19150.140258146975101@webmail.messagingengine.com> <CAGDjS3d+S3VOnWzH5fWK3qiBWfF4e=qzTXe3EGOdmtG89TDP4Q@mail.gmail.com> <21AF649B-05E1-48AE-B4F8-2F84FB7E33E7@let.de> <87hb426axz.fsf@debian.home> <B57606A6-73D8-4A32-ADCB-36F0E08072E8@let.de> <8762ki69vx.fsf@debian.home> <20110925155424.GR25711@leitl.org> <20110926070306.2349b14c.weaver@riseup.net> <4E80D173.7020907@googlemail.com> <4E8482E9.40109@googlemail.com> <4E849282.4010401@fifthhorseman.net> <4E85AC0A.9020808@googlemail.com> <1317390628.14509.2.camel@blacksword.home> <4E85CDB1.7000305@googlemail.com> <4E85D574.2000504@fifthhorseman.net> <4E85D9FF.30909@googlemail.com> <263ECD56-31B9-4396-AD5D-9B3F99F76D40@prol.etari.at> <4E85EB8B.3090808@fifthhorseman.net> <F31E695A-A6BF-4DC6-BD78-CFB78B1CF2C0@prol.etari.at> <4E85FE31.6000602@fifthhorseman.net> <4E861879.4080303@googlemail.com> <4E8621ED.8000404@fifthhorseman.net> <4E863C65.7090001@googlemail.com>
On 01.10.2011 00:02, Timur Mehrvarz wrote:
> The complete 2-way process could be done with a total
> number of four clicks per user.
>
> 1. click on the received .asc file
> 2. click on "QR verification" in the "Apply action..." menu
> 3. click to snap / click to continue to switch around
> 4. click to continue to switch around / click to snap
>
For a new "QR verification" activity to appear in the PGP-key's "Apply
action..." menu (based on mime type), the activity needs to be specified
like this in it's AndroidManifest.xml:
<activity android:name=".QrPgpKeyVerificationActivity"
android:label="QR PGP key verification">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:mimeType="application/pgp"/>
</intent-filter>
</activity>
The activity can get access to the path of the selected (received) key
file like so:
intent = getIntent()
receivedKeyUri = intent.getData()
receivedKeyPath = receivedKeyUri.getPath()
It can get the path of the users own public PGP key file (from the
current send folder) like so:
bundle = intent.getExtras()
sendKeyPath = bundle.getString("sendKeyFile")
(The Bluetooth nic info for both devices can be made available in
similar ways.)
Reply to: