Markus Doits
be2476e0ba
Allow async execution of an AIDL call
...
Calls can now be executed asyncronously. Callback methods are supported,
too. See comments of "set_callback()".
First tries with javadoc.
2011-01-19 22:33:06 +00:00
Markus Doits
79cf07f1e2
Compare strings like they should be compared
2011-01-18 22:24:28 +00:00
Markus Doits
945e8bb25b
Add another verbose hint for ApgCon constructor
2011-01-18 22:19:48 +00:00
Markus Doits
209b300638
Print api_version if matching
2011-01-18 22:12:47 +00:00
Markus Doits
fd24d128fe
Check for AIDL Api version and ApgService
...
This prints out errors on console when APG cannot work with the help. It
will initialize correctly, though.
2011-01-18 22:09:05 +00:00
Markus Doits
10e0dd0237
Update AIDL to reflect new argument names
...
In addition redesign the comments a little bit. Still doesn't look good,
but at least a bit better.
2011-01-18 21:17:14 +00:00
Markus Doits
3f703fa4ea
More finegrained errors
2011-01-18 21:17:05 +00:00
Markus Doits
79238cbcce
Rename parameters
...
Writing them out should make them clearer
2011-01-18 20:35:41 +00:00
Markus Doits
5eaea519ad
Refactor some log prios
2011-01-18 20:35:33 +00:00
Markus Doits
eb75eea64f
Allow get_master_key to accept null string
...
Return earlier on wrong length, too.
2011-01-17 22:21:41 +00:00
Markus Doits
dc02a74d52
Update AIDL-Doc
2011-01-17 22:16:57 +00:00
Markus Doits
f9ee141ce1
Allow to sign and specify passphrase on decrypting
2011-01-17 22:16:49 +00:00
Markus Doits
9fb631d599
Clear result, too
2011-01-13 20:28:08 +00:00
Markus Doits
a1c75dd47c
Add asymmetric encryption
2011-01-13 20:12:10 +00:00
Markus Doits
9c06bb03b6
Prepare ApgCon for asymetric enc and clean up
2011-01-13 20:12:02 +00:00
Markus Doits
8b35229650
Actually check for unknown args for function
2011-01-11 22:31:35 +00:00
Markus Doits
45e4897dc7
Redefine many internals of ApgService
...
This helps to add new function calls easily. Some of the new enums
could be exported to other files to be included by other projects later
on.
Next step is asymmetric encryption.
2011-01-11 22:24:20 +00:00
Markus Doits
fc05dfd8b7
Prevent null pointer exception
...
Error-msg should be better, though.
2011-01-11 22:24:08 +00:00
Markus Doits
d367bc12f8
Make some things static
...
*Should* speed up encryption, or better: does not make encryption using
AIDL slower than using APG directly.
2011-01-11 17:58:13 +00:00
Markus Doits
51b63d099c
Allow helper to clear args and set booleans
2011-01-09 20:12:12 +00:00
Markus Doits
3f0c80882e
Explain AIDL options a little bit more in detail
2011-01-09 20:12:03 +00:00
Markus Doits
def11ad18f
Document new args in AIDL
2011-01-09 19:16:54 +00:00
Markus Doits
c84c449035
Respect options but allow to overwrite them for each call
...
By default the values set in APG's options are respected now. But they
can be overwritten by special parameters passed through.
2011-01-09 19:16:45 +00:00
Markus Doits
9e089f03b6
Prefix local vars with "_"
2011-01-09 19:16:22 +00:00
Markus Doits
a29dfc0add
Reset errors before calling, make some vars final, minor cleanups
2011-01-09 17:17:27 +00:00
Markus Doits
91da2dd2ea
Remove obsolete import
2011-01-09 17:17:18 +00:00
Markus Doits
b1e8194ce2
Remove weird line
2011-01-09 17:17:08 +00:00
Markus Doits
1a338de47e
Redesign AIDL-Interface once more
...
Using Bundles makes passing data easier and does not need to redefine
the interface if the internel functions change.
The helper class has been updated accordingly. In addition, it wrappes
completely around all input and output (if wanted).
2011-01-05 14:07:09 +00:00
Markus Doits
dbb46f1633
Remove forgotten line
2011-01-04 23:09:56 +00:00
Markus Doits
6477f60764
Add connection helper for other projects
...
This eases using the AIDL-Interface and is the recommended way for other
project to implement the connection.
2011-01-04 23:08:08 +00:00
Markus Doits
2660c561a1
Reload preferences on call
...
refs r326
2010-12-30 13:48:24 +00:00
Markus Doits
ed0df2803f
Allow to regenerate shared preferences
...
I encountered a problem that changing preferences in APG did not change
the preferences in ApgService after it was called once:
1. call getPreferences
2. change settings in APG
3. call getPreferences again
--> the result at 3. was still having preferences from 1.
To work around this, the function getPreferences has been updated to
force the new generation of preferences while not breaking any other
code relying on the old behaviour.
2010-12-30 13:39:46 +00:00
Markus Doits
6634f40bc2
Merge trunk into apg_service
2010-12-29 16:43:10 +00:00
Markus Doits
e8d29c01c2
Add first basic implementation of Apgservice
...
Provides an AIDL-API for other apps to encrypt and decrypt a string
symmetrically with a passphrase. Function names and API is by no way
finalized and will change!
Support for asymetric encription will follow.
For reference and discussion see issue #71 ,
https://code.google.com/p/android-privacy-guard/issues/detail?id=71
2010-12-29 16:31:58 +00:00
Thialfihar
9687e9b1a3
auto-click encrypt/decrypt button when using an *_AND_RETURN Intent with EXTRA_DATA or ContentURI
...
Fixes issue 67
2010-12-25 19:24:04 +00:00
Thialfihar
9e8b266bf0
show key fingerprint in key list
...
Fixes issue 76
2010-12-25 19:12:35 +00:00
Thialfihar
ee1918b7c8
DataSource: consider content URI sources "binary" also
2010-12-25 14:12:12 +00:00
Thialfihar
428cf39ba3
added an Intent and functionality to generate detached signatures
2010-12-25 14:00:25 +00:00
Thialfihar
f55d4d55a5
start encryption/decryption for ENCRYPT_AND_RETURN/DECRYPT_AND_RETURN if MESSAGE_DATA is used rather than MESSAGE_TEXT
2010-09-26 17:46:13 +00:00
Thialfihar
3052ae80d5
testing thread-pausing in verifyText()
2010-09-12 19:06:26 +00:00
Thialfihar
b91f9397d9
moved some Intent extra constants into more appropriate places, some basic preparations to test thread-pausing during decryption/encryption to deal with certain situations, mainly an unknown signature key
2010-09-11 23:21:53 +00:00
Thialfihar
bc50ca0093
catch null pointer exceptions when the private key cannot be extracted, also prevent such keys from getting imported, so the error message should never be encountered anyway
...
Fixes issue 66
2010-09-10 20:36:38 +00:00
Thialfihar
41c3c52a42
trivial variable renaming
2010-08-31 20:25:14 +00:00
Thialfihar
12d9bb8dee
moved key editing beta warning into strings.xml
...
Update issue 39
added:
<string name="keyEditingIsBeta">Key editing is still kind of beta.</string>
2010-08-22 10:51:24 +00:00
Thialfihar
996a1dbe1c
integrated key server look-up into decrypt Activity, allowing to touch an unkown signature to import the key
...
Update issue 39
added:
<string name="unknownSignatureKeyTouchToLookUp">Unknown signature, touch to look up key.</string>
2010-08-18 12:26:13 +00:00
Thialfihar
08305b4963
explicitly set a timeout for connecting and reading for a key server query
2010-08-18 00:53:18 +00:00
Thialfihar
18de5178f8
starting new versioning for beta builds, only show changelog on release builds
2010-08-18 00:42:45 +00:00
Thialfihar
4f25edbe97
added a context menu item to update public keys via key server, adding a key id look up Intent for the key server query
...
Update issue 9
Status: Fixed
Added public key update via key server. Considering this issue fixed now. More key server features will be added, but general support is added.
2010-08-18 00:23:28 +00:00
Thialfihar
c57c36b3a5
use the key server preference to fill a Spinner in the key server query activity, allowing to query each server, also moved some previously static labels into strings.xml
...
Update issue 9
Key server preferences are now used in key server query activity.
2010-08-17 23:05:41 +00:00
Thialfihar
fc0ae774cd
moved IntegerListPreference to apg.ui.widget
2010-08-17 22:03:56 +00:00