Commit Graph
100 Commits
Author SHA1 Message Date
Vincent Breitmoser 4ba06e7735 ui: purplize dialog headers (huge hack inside) 2014-05-08 18:12:55 +02:00
Vincent Breitmoser cbc3988628 proper null checks and closing of cursors everywhere 2014-05-08 15:57:38 +02:00
Vincent Breitmoser 79117b1ef8 use longsparsearrays instead of hashmaps in that one place 2014-05-08 15:57:38 +02:00
Vincent Breitmoser 9c5c013538 use setEncryptToSigner for asymmetric encryption
(tested and works, closes #569)
2014-05-08 15:31:03 +02:00
Vincent Breitmoser 185c4eed43 use LoaderFragment in ViewKey tabs
Closes #616
2014-05-08 13:58:52 +02:00
Vincent Breitmoser 596478a212 extract generic LoaderFragment superclass from KeyList 2014-05-08 13:43:59 +02:00
Vincent Breitmoser 346b5dbb28 Don't allow certification using keys where primary subkey is stripped
Closes #596
2014-05-07 22:43:14 +02:00
Vincent Breitmoser 174858e9cf ui: apply theme to tab buttons 2014-05-07 03:55:06 +02:00
Vincent Breitmoser 12f1162a1e ui: use SlidingTabLayout in help activity 2014-05-07 03:48:03 +02:00
Vincent Breitmoser 40793935ac ui: primary certification icon was a pixel or two off 2014-05-07 03:19:09 +02:00
Vincent Breitmoser 992d37819c small fix for 6aafb3, forgot to commit this line 2014-05-07 03:18:41 +02:00
Vincent Breitmoser 65274f6c16 ui: purplize searchtext in keylist 2014-05-07 03:07:24 +02:00
Vincent Breitmoser 873b1be75d display AppMsg warning when no encryption subkey is available 2014-05-07 02:27:51 +02:00
Vincent Breitmoser 0bb11be749 ui: slight edit icon cosmetics in keylist 2014-05-07 02:15:09 +02:00
Vincent Breitmoser 6aafb31412 ui: move revocation/expiry notes above tab slider 2014-05-07 02:14:47 +02:00
Vincent Breitmoser 96125b1976 ui: purplize edge overscroll glow effect 2014-05-07 01:39:28 +02:00
Vincent Breitmoser 6a9cb69a1f ui: purpelize fastscroll thumb 2014-05-07 01:13:08 +02:00
Vincent Breitmoser e0985878d7 ui: use textview buttons in decrypt verify dialogue 2014-05-06 19:18:32 +02:00
Vincent Breitmoser 797aeaf6e8 ui: apply purple theme (twi is best color) 2014-05-06 19:18:32 +02:00
Vincent Breitmoser 0d05ff98cb ui: use textviews instead of bootstrap buttons in SignEncrypt 2014-05-06 19:18:32 +02:00
Vincent Breitmoser d52d455317 ui: make primary star icon slightly larger 2014-05-06 19:18:31 +02:00
Vincent Breitmoser 8564c4aca1 ui: use primary icon color for certification status 2014-05-06 00:39:09 +02:00
Vincent Breitmoser d31ae89824 ui: show revocation and expiry status on info tab 2014-05-06 00:04:37 +02:00
Vincent Breitmoser 162cb1cb7b ui: subkey view redesign 2014-05-05 22:06:09 +02:00
Vincent Breitmoser 0fe0823372 ui: remove primary subkey info 2014-05-05 22:04:57 +02:00
Vincent Breitmoser 4b9607eda0 add DESIGN document 2014-04-30 19:16:21 +02:00
Vincent Breitmoser 90324fc10e Merge commit '9cdb2ec4e270a572520d5bcdbee55867e3c37003' 2014-04-22 11:30:43 +02:00
Vincent Breitmoser 30207ee11f Merge commit '0b7fb70'
Conflicts:
	OpenKeychain/src/main/res/values/strings.xml
2014-04-22 11:30:14 +02:00
Vincent Breitmoser 283e3c3365 Fix a nullptr in KeychainProvider
Fixes #589
2014-04-20 20:54:40 +02:00
Vincent Breitmoser 9cdb2ec4e2 fix nullpointer on missing s2k
Fixes #590
2014-04-20 20:50:26 +02:00
Vincent Breitmoser 0b7fb70781 split up filterSign and filterCertify in SelectSecretKeyFragment
Closes #588
2014-04-20 19:38:42 +02:00
Vincent Breitmoser dd8a7c93ad fix unified query columns for select*fragment 2014-04-18 22:18:13 +02:00
Vincent Breitmoser 8714f56cdc get rid of PgpKeyHelper.getMasterKeyId
Closes #575
2014-04-17 16:34:20 +02:00
Vincent Breitmoser 86d9266a44 NotFoundExceptions for all getGeneric-type methods 2014-04-17 16:19:49 +02:00
Vincent Breitmoser f6e7b92ced load data only once in ImportKeysListLoader
Fixes #571
2014-04-17 15:50:18 +02:00
Vincent Breitmoser 2a34d0e0e4 add up navigation in ViewCertActivity
Fixes #567
2014-04-17 15:30:16 +02:00
Vincent Breitmoser fda9bd1386 use project icons for certification status
Closes #573
2014-04-17 14:42:24 +02:00
Vincent Breitmoser 52ad83e345 secret keys can only be deleted individually from multi selection 2014-04-17 12:09:09 +02:00
Vincent 8b4700d521 Fix even more whitespace 2014-04-16 19:20:42 +02:00
Vincent 1e64f6b846 Fix more whitespace 2014-04-16 19:20:03 +02:00
Vincent adb20689fe Fix whitespace 2014-04-16 19:19:17 +02:00
Vincent 7e626a122a Update PGPSecretKey.java
fix
2014-04-16 19:18:15 +02:00
Vincent Breitmoser c7eb40b814 stripped support: implement has_secret support, in ui and impot of secret keys
Closes #570
2014-04-16 18:14:44 +02:00
Vincent Breitmoser 66b8b86695 stripped support: add has_secret column to keys table 2014-04-16 17:29:36 +02:00
Vincent Breitmoser 0f5093c0b3 add WoT help file to transifex config 2014-04-15 13:54:07 +02:00
Vincent Breitmoser 71fb0f85bf add web of trust help entry 2014-04-15 13:52:31 +02:00
Vincent Breitmoser 57b264639f move old apg.db to apg_old.db (half measure~) 2014-04-14 13:06:49 +02:00
Vincent Breitmoser 227155d484 add debug backup/restore options to main menu
Closes #543
2014-04-14 13:06:49 +02:00
Vincent Breitmoser baa3c86e12 split getMasterKeyId for the remaining use cases
Closes #549
2014-04-11 03:44:17 +02:00
Vincent Breitmoser b77fb2fcc0 get rid of more getMasterKeyId usage, work on getKeyRingsAsArmoredString 2014-04-11 03:44:13 +02:00
Vincent Breitmoser 9af532880c fix EditKeyActivity 2014-04-11 02:58:08 +02:00
Vincent Breitmoser 0f06b8a1d6 display correct primary user id in import dialogue MOSTLY
This is an incomplete fix; due to use of machine readable output, there
is no way to know the primary user id for keys fetched from a key
server.

Pending https://bitbucket.org/skskeyserver/sks-keyserver/issue/28/primary-uid-in-machine-readable-index
2014-04-10 20:33:54 +02:00
Vincent Breitmoser 4e408fae53 remove drawer layout remnants from import key dialogue 2014-04-10 20:33:22 +02:00
Vincent Breitmoser 0687f7f40e use view holder pattern in KeyListFragment
Closes #551
2014-04-10 19:25:46 +02:00
Vincent Breitmoser 593d6ad3f7 Select*KeyFragment rewrites
- moved all specific Public/Secret logic from the Adapter class into
  inner subclasses in the Fragments
- more versatile status display ("revoked", "expired", "can certify"...)
- applied view holder pattern
- query logic, including subqueries, moved into provider classes

Closes #375
2014-04-10 18:47:57 +02:00
Vincent Breitmoser ce6a4041fd ViewCertActivity cleanup
Closes #547
2014-04-10 15:34:16 +02:00
Vincent Breitmoser 35f9189a82 certs: fix verification in ViewKeyActivity (how embarassing)
Fixes #541
2014-04-09 18:34:19 +02:00
Vincent Breitmoser b4e7d69b35 show key expiry status similar to revocation 2014-04-06 16:09:39 +02:00
Vincent Breitmoser d5842940b5 certs: remove unused menu item 2014-04-06 07:26:07 +02:00
Vincent Breitmoser 8b6c31ba46 certs: change migration routine so certifications work 2014-04-06 05:29:46 +02:00
Vincent Breitmoser bd8dc05b1c certs: display green dot for certified keys in KeyListFragment 2014-04-06 05:29:19 +02:00
Vincent Breitmoser 194fc7507b certs: forgot to add ids file 2014-04-06 05:07:14 +02:00
Vincent Breitmoser d1b0d0fa5e Merge remote-tracking branch 'origin/master' into certs
Conflicts:
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/provider/ProviderHelper.java
2014-04-06 04:35:05 +02:00
Vincent Breitmoser 456a634149 certs: ditch expiry, re-add data blob, improve ViewCertActivity
GnuPG doesn't support expiry of user id certifications. The number
of rings with an expiration subpacket in a cert out there is likely
negligible.

ViewCertActivity now verifies the key and displays a status. For
revocation certs, the revocation reason is also shown.
2014-04-06 04:27:55 +02:00
Vincent Breitmoser f01a96f56e certs: fix ViewCertActivity 2014-04-06 03:15:59 +02:00
Vincent Breitmoser 6e2b21b6b7 certs: fix CertifyKeyActivity and improve user id list 2014-04-06 02:27:21 +02:00
Vincent Breitmoser 120e1eada7 certs: ditch selection spinner from certs view 2014-04-06 01:57:28 +02:00
Vincent Breitmoser 84857df703 certs: display cert type in cert view 2014-04-06 01:28:12 +02:00
Vincent Breitmoser ed3798be8a certs: display uid status in uid list 2014-04-06 01:11:57 +02:00
Vincent Breitmoser 437da180fc certs: properly handle primary flag and revocation of uids 2014-04-06 00:59:11 +02:00
Vincent Breitmoser 1b1304e6e0 certs: various improvements
* recognize self-certifications
* save signature type
* save expiry time
* drop encoded data blob from db
2014-04-05 22:35:27 +02:00
Vincent Breitmoser 2802718efb certs: more fixes, almost working now 2014-04-05 21:38:03 +02:00
Vincent Breitmoser aa6f5118f5 Merge remote-tracking branch 'origin/master' into certs
A lot of things are completely broken, but it compiles and doesn't crash
right away. Good enough for me.

Conflicts:
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/provider/KeychainContract.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/provider/KeychainDatabase.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/provider/KeychainProvider.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/provider/ProviderHelper.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/KeyListFragment.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyActivity.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyMainFragment.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/adapter/ViewKeyUserIdsAdapter.java
	OpenPGP-Keychain/src/main/res/layout/view_key_certs_fragment.xml
2014-04-05 19:30:52 +02:00
Vincent Breitmoser 54f20e1cd5 Merge remote-tracking branch 'origin/master' into db-overhaul 2014-04-04 18:50:20 +02:00
Vincent Breitmoser d7c2488a0f db-overhaul: fix key export (and some export-related ui changes) 2014-04-04 18:49:45 +02:00
Vincent Breitmoser cf76a8553a db-overhaul: fix delete key from ViewKeyActivity 2014-04-04 16:28:28 +02:00
Vincent Breitmoser 53e8afaee0 ViewKeyMainFragment cleanup (don't use inline queries!) 2014-04-04 14:37:07 +02:00
Vincent Breitmoser 958eba1c95 db-overhaul: fix DecryptAndVerify with and without known keys 2014-04-04 13:58:12 +02:00
Vincent Breitmoser 085ce11d9c db-overhaul: workaround api level 11 2014-04-04 13:20:37 +02:00
Vincent Breitmoser 1b38a5b2e3 Merge remote-tracking branch 'origin/master' into db-overhaul 2014-04-04 13:18:43 +02:00
Vincent Breitmoser a9f868a5e7 db-overhaul: different hack for type info (api level problem inside) 2014-04-04 11:39:23 +02:00
Vincent Breitmoser a1e13f7893 calculate nfc packet on demand only 2014-04-04 11:38:59 +02:00
Vincent Breitmoser 2227705d65 db-overhaul: fix loading indicators in KeyListActivity and ViewKeyActivity 2014-04-04 11:28:26 +02:00
Vincent Breitmoser d921cca913 db-overhaul: reintroduce by-mail and by-subkey queries
the only thing left to fix after the db upgrade (that I can think of
right now) are key exports
2014-04-04 01:56:02 +02:00
Vincent Breitmoser 59f4b4e3e7 db-overhaul: minor stuff, mostly ProviderHelper 2014-04-04 01:05:53 +02:00
Vincent Breitmoser 2620e0bfc8 db-overhaul: more work on new provider
specifics:
 - secret keys are preserved when a new public key is inserted
 - started work to give virtual columns a representation in the contract
   class
 - streamline ProviderHelper methods. the getUnifiedData method relies
   on a api level 11 method, not sure yet how to fix/workaround that...
 - many more small things work as they did before
2014-04-03 22:49:08 +02:00
Vincent Breitmoser dedcfd8a72 more work on streamlining uris, and stripping ProviderHelper 2014-04-03 17:09:26 +02:00
Vincent Breitmoser 428e94bb57 ditch useless PgpKeyHelper.getMasterKey methods 2014-04-03 17:08:04 +02:00
Vincent Breitmoser 34fca975d7 Merge remote-tracking branch 'origin/master' into db-overhaul
Conflicts:
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/provider/KeychainContract.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/provider/KeychainDatabase.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/provider/ProviderHelper.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentService.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/EditKeyActivity.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/KeyListFragment.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/SelectSecretKeyFragment.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/SelectSecretKeyLayoutFragment.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyActivity.java
2014-04-03 14:56:35 +02:00
Vincent Breitmoser a7eff41ced Break a lot of stuff. Also, database redesign.
Change entire database design. This introduces a lot of changes,
notably all URIs and almost all projections. Some features (like key
deletion) have been simply commented out for now since they need
serious reconsideration. There are a couple of new TODOs marking places
where more work is needed.

The migration path works fine from what I tested. The old database is
not deleted for now, ie, it is reimported at every start of the
application making all intermediate changes transient.

Tested and working (for me):
 - All activities in the main drawer
 - Multiselect and Search
 - ViewKeyActivity, with and without secret key available
 - CertifyKeyActivity
 - SelectSecretKeyActivity (from CertifyKeyActivity)
 - SelectPublicKeyActivity (from encrypt activity)

What doesn't work:
 - Actually certifying keys (pending a TODO in ProviderHelper)
 - Importing keys doesn't preserve secret keys
 - "Encrypt to this contact" doesn't pass key
 - Editing keys. All controls are disabled, I'm not sure why... (is this
   even my fault?)
 - Deleting keys

What I didn't test:
 - Key export
 - API stuff
 - Creating keys (since editing doesn't even work)
2014-04-03 01:34:35 +02:00
Vincent Breitmoser 62388e3fdb test: add junit+robolectric to buildfiles and stub test file 2014-04-01 16:12:57 +02:00
Vincent Breitmoser 6f36b72eee PgpKeyOperation: factor out all android dependencies
Conflicts:
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpKeyOperation.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainIntentService.java
2014-04-01 16:12:57 +02:00
Vincent Breitmoser 5e4239a7b9 Merge branch 'certify' into certs
Conflicts:
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpKeyOperation.java
	OpenPGP-Keychain/src/main/res/values/strings.xml
2014-03-17 14:18:42 +01:00
Vincent Breitmoser 87004fd0ca certify: preserve user id certificates when saving secret keys 2014-03-17 14:11:32 +01:00
Vincent Breitmoser e8ad4317a4 certs: more filters, better initial uid selection, code cosmetics
- add three types of filters for certificate list (ui looks like crap
      there, need to work on that)
    - select uncertified uids by default in CertifyKeyActivity
    - move some code around in KeychainProvider, 's slightly less hacky now
2014-03-17 14:10:40 +01:00
Vincent Breitmoser f192c70179 certs: green dots for verified status \o/ 2014-03-15 19:58:17 +01:00
Vincent Breitmoser 5c28da44d6 certs: provider cleanup and bugfixing 2014-03-15 19:57:55 +01:00
Vincent Breitmoser 6bacb5ff51 Merge branch 'certify' into certs
Conflicts:
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyMainFragment.java
	OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/ui/adapter/ViewKeyUserIdsAdapter.java
	OpenPGP-Keychain/src/main/res/values/strings.xml
2014-03-15 18:34:20 +01:00
Vincent Breitmoser 95be228b47 certify: sign individual UIDs
direct signing of pubkeys is out for now. not sure how this should be
handled, but it's trivial to re-add so leaving this up for discussion
for now.
2014-03-15 18:20:50 +01:00
Vincent Breitmoser 8fbd77fb15 certify: preserve user id certificates when saving secret keys 2014-03-15 18:20:50 +01:00