From 40f2355b1ac932d6b8a498c1bcabc9281dabc562 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Sch=C3=BCrmann?= Date: Thu, 17 Jan 2013 01:48:57 +0100 Subject: [PATCH] Intent action fixes --- .../keychain/integration/Constants.java | 1 - OpenPGP-Keychain/AndroidManifest.xml | 13 +++++++++++-- .../keychain/service/IKeychainApiService.aidl | 6 ++---- .../keychain/ui/EncryptActivity.java | 4 ++-- README.md | 4 +++- 5 files changed, 18 insertions(+), 10 deletions(-) diff --git a/OpenPGP-Keychain-API-Lib/src/org/sufficientlysecure/keychain/integration/Constants.java b/OpenPGP-Keychain-API-Lib/src/org/sufficientlysecure/keychain/integration/Constants.java index 51998a33e..93bcee8f6 100644 --- a/OpenPGP-Keychain-API-Lib/src/org/sufficientlysecure/keychain/integration/Constants.java +++ b/OpenPGP-Keychain-API-Lib/src/org/sufficientlysecure/keychain/integration/Constants.java @@ -21,5 +21,4 @@ public class Constants { public static final String KEYCHAIN_PACKAGE_NAME = "org.sufficientlysecure.keychain"; public static final int MIN_REQUIRED_VERSION = 50; - } diff --git a/OpenPGP-Keychain/AndroidManifest.xml b/OpenPGP-Keychain/AndroidManifest.xml index 2c3f24275..f156f6d47 100644 --- a/OpenPGP-Keychain/AndroidManifest.xml +++ b/OpenPGP-Keychain/AndroidManifest.xml @@ -88,6 +88,7 @@ - + + + @@ -191,8 +194,11 @@ + + - + + @@ -218,7 +224,10 @@ + + + diff --git a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/service/IKeychainApiService.aidl b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/service/IKeychainApiService.aidl index ac8327b8e..575f6e1d2 100644 --- a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/service/IKeychainApiService.aidl +++ b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/service/IKeychainApiService.aidl @@ -45,8 +45,7 @@ interface IKeychainApiService { * 7: AES-128, 8: AES-192, 9: AES-256, 4: Blowfish, 10: Twofish, 3: CAST5, * 6: DES, 2: Triple DES, 1: IDEA * @param handler - * Results are returned to this IKeychainEncryptDecryptHandler Handler - * to onSuccessEncrypt(in byte[] output), after successful encryption + * Results are returned to this Handler after successful encryption */ oneway void encryptAsymmetric(in byte[] inputBytes, in String inputUri, in boolean useAsciiArmor, in int compression, in long[] encryptionKeyIds, in int symmetricEncryptionAlgorithm, @@ -90,8 +89,7 @@ interface IKeychainApiService { * @param signaturePassphrase * Passphrase to unlock signature key * @param handler - * Results are returned to this IKeychainEncryptDecryptHandler Handler - * to onSuccessEncrypt(in byte[] output), after successful encryption and signing + * Results are returned to this Handler after successful encryption and signing */ oneway void encryptAndSignAsymmetric(in byte[] inputBytes, in String inputUri, in boolean useAsciiArmor, in int compression, in long[] encryptionKeyIds, diff --git a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/EncryptActivity.java b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/EncryptActivity.java index bb61fb890..9d73fc6e5 100644 --- a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/EncryptActivity.java +++ b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/EncryptActivity.java @@ -78,10 +78,10 @@ public class EncryptActivity extends SherlockFragmentActivity { // with permission public static final String ACTION_ENCRYPT_AND_RETURN = Constants.INTENT_PREFIX + "ENCRYPT_AND_RETURN"; - public static final String ACTION_GENERATE_SIGNATURE_AND_RETURN = Constants.INTENT_PREFIX - + "GENERATE_SIGNATURE_AND_RETURN"; public static final String ACTION_ENCRYPT_STREAM_AND_RETURN = Constants.INTENT_PREFIX + "ENCRYPT_STREAM_AND_RETURN"; + public static final String ACTION_GENERATE_SIGNATURE_AND_RETURN = Constants.INTENT_PREFIX + + "GENERATE_SIGNATURE_AND_RETURN"; /* EXTRA keys for input */ public static final String EXTRA_TEXT = "text"; diff --git a/README.md b/README.md index 36e48fd9a..8a47f9518 100644 --- a/README.md +++ b/README.md @@ -96,8 +96,10 @@ Android primitives to exchange data: Intent, Intent with return values, Send (al * CREATE_KEY * ENCRYPT_AND_RETURN -* GENERATE_SIGNATURE +* ENCRYPT_STREAM_AND_RETURN +* GENERATE_SIGNATURE_AND_RETURN * DECRYPT_AND_RETURN +* DECRYPT_STREAM_AND_RETURN ## Content Provider