7055 Commits

Author SHA1 Message Date
Henrik Tunedal
55eb63b077 Disable database sync preference unless in expert mode 2011-02-14 02:23:23 +01:00
Henrik Tunedal
657ae58418 Wrap database update in an explicit transaction
All changes to the database in SQLite must be done within a
transaction, so if there isn't one in progress one will be started
implicitly, i.e. each change will be done in a separate transaction.

Since committing a transaction is a fairly expensive operation - on
some filesystems ridiculously expensive - it should be done as
sparingly as possible.

In tests on my Galaxy S, this change makes the update between 2500%
and 4500% faster (for slightly over 100 applications).
2011-02-14 01:32:13 +01:00
Henrik Tunedal
0d1be2d967 Log duration of updates 2011-02-14 00:34:56 +01:00
Henrik Tunedal
176c9173ae Add preference for SQLite "synchronous" flag
By default SQLite runs with synchronous=FULL, which is the safest mode
and uses fsync() a lot, but this interacts very badly with Samsung's
infamous RFS filesystem. With this preference the user can decide
whether to sacrifice some safety for reasonable performance.
2011-02-13 20:37:35 +01:00
Henrik Tunedal
24aa230f14 Make the repository checkboxes work.
The checkboxes on the repository management screen did
nothing. Calling Cursor.getCount() on the returned cursor magically
fixed it - perhaps there's some sort of lazy evaluation? - but the
less magical execSQL method seems like a better way.
2011-02-11 00:56:30 +01:00
Henrik Tunedal
f602e4586c Improved logging of exceptions. 2011-02-03 20:55:27 +01:00
Henrik Tunedal
47a3db7767 Changed button order in app details dialog.
Most Android applications have the cancel button on the right, but
this dialog had it on the left (Cancel/Install). It was especially
confusing as pressing "Install" immediately leads to a system dialog
with Install/Cancel buttons (i.e. in the opposite order).
2011-02-03 20:55:27 +01:00
Ciaran Gultnieks
b4ea49744a Fixed initialise of pubkey in a brand new database 2011-02-03 08:51:39 +00:00
Ciaran Gultnieks
ddacfb856a Version 0.20 2011-01-30 22:19:49 +00:00
Ciaran Gultnieks
716d400e46 Put uses-sdk in the right place in the manifest 2011-01-30 22:07:43 +00:00
Ciaran Gultnieks
b44f96142e We need WRITE_EXTERNAL_STORAGE permission - seems that compatibilty mode was adding it 2011-01-30 22:04:43 +00:00
Ciaran Gultnieks
937a15bf16 Correction to e12ecbdb - need to add that after the db upgrade, now it's using a new field 2011-01-30 22:00:17 +00:00
Ciaran Gultnieks
540b7d0522 Version 0.19 2011-01-30 20:54:24 +00:00
Ciaran Gultnieks
21ce8ad164 Correction to b30fc715 - need to get rid of the check in the update service as well 2011-01-30 20:53:53 +00:00
Ciaran Gultnieks
51bb6ed852 Removed some unused imports 2011-01-30 17:52:11 +00:00
Ciaran Gultnieks
e12ecbdb08 Use signed repo immediately on new install (although it will auto-switch to it anyway 2011-01-30 17:51:48 +00:00
Ciaran Gultnieks
a6c9ed8d06 Version 0.18 2011-01-30 17:03:52 +00:00
Ciaran Gultnieks
41958386f0 A real temporary fix to the repo update/screen rotation problem 2011-01-30 17:00:42 +00:00
Ciaran Gultnieks
497722c634 Ability to read signed indexes (and switch from unsigned to signed if a signed one is detected 2011-01-30 15:16:10 +00:00
Ciaran Gultnieks
8c30e0cfdb Added database support for repo public key 2011-01-29 09:41:40 +00:00
Ciaran Gultnieks
445b273b36 This is a temporary fix to a crash during repo update due to screen rotation 2011-01-27 00:20:35 +00:00
Ciaran Gultnieks
2de6a41447 Commented out some excessive debug logging 2011-01-26 23:25:14 +00:00
Ciaran Gultnieks
b30fc71500 Don't pre-check network state, just try and read. Gets rid of a nasty permission 2011-01-26 23:22:43 +00:00
Ciaran Gultnieks
4be4b8ddaa Issue #20 - network failure during repo update shouldn't empty the app list 2011-01-26 23:02:27 +00:00
Ciaran Gultnieks
6fddf13fb3 Potential crash when using new version without updating repo index 2011-01-26 18:41:53 +00:00
Ciaran Gultnieks
2512ce7145 Improvement to the getpo script 2011-01-20 23:34:29 +00:00
Ciaran Gultnieks
bb043c7c36 Swedish translation updates 2011-01-20 23:32:18 +00:00
Ciaran Gultnieks
aa1db27b85 Translation updates, including Serbian 2011-01-20 22:59:16 +00:00
Ciaran Gultnieks
f0b4e63da2 SVG source etc for the logo/icon/website banner 2011-01-18 21:36:28 +00:00
Ciaran Gultnieks
c626ce5f6d Version 0.17 2011-01-17 22:38:25 +00:00
Ciaran Gultnieks
37b7b776c4 Updated translation files with new strings 2011-01-17 22:37:39 +00:00
Ciaran Gultnieks
25a9c6ab9f Menu on search results to allow repeat searching (without a hardware search button) 2011-01-17 22:36:14 +00:00
Ciaran Gultnieks
3d913be808 Narrative to go with search results 2011-01-17 22:05:31 +00:00
Ciaran Gultnieks
6cae359505 Cancel is probably more appropriate there 2011-01-17 20:25:11 +00:00
Ciaran Gultnieks
5cd5efb398 Minor grammar correction 2011-01-17 20:23:55 +00:00
Ciaran Gultnieks
3d19b7f2c1 Basic search implemented, just needs a bit of tidying up (e.g. tell you what you searched for) 2011-01-17 17:58:48 +00:00
Ciaran Gultnieks
45a32f45ba That should deal with the antifeatures filtering, but it needs testing 2011-01-17 17:45:53 +00:00
Ciaran Gultnieks
ae6e9d57ff Merge branch 'master' of gitorious.org:f-droid/fdroidclient 2011-01-17 17:28:49 +00:00
Ciaran Gultnieks
20a204aed8 Antifeatures preferences definition fix 2011-01-17 17:14:10 +00:00
Ciaran Gultnieks
92b8911158 Updated translation files with new/modified strings from the code 2011-01-16 16:16:31 +00:00
Ciaran Gultnieks
93a6abd44d Imported latest translations from pootle server 2011-01-16 16:15:24 +00:00
Ciaran Gultnieks
f05905c855 Can now detect attempt to install an apk with a different signature and tell the user to uninstall first 2011-01-16 16:07:42 +00:00
Ciaran Gultnieks
3aa6d5a7a9 Formatting fixes only - seems I had the wrong settings on one of my machines at some point 2011-01-16 12:21:35 +00:00
Ciaran Gultnieks
c629a6884f Slight adjustment signature md5 calculation, to match server 2011-01-14 23:08:34 +00:00
Ciaran Gultnieks
0881142023 Might be better to show that dialog before the thread starts - possible FC on gingerbread 2011-01-13 22:55:03 +00:00
Ciaran Gultnieks
df6a37a705 Expert mode - currently just displays md5 of signature for installed apps 2011-01-04 23:52:04 +00:00
Ciaran Gultnieks
a5d4399e28 Show number of available updates in tab heading 2010-12-16 22:44:26 +00:00
Ciaran Gultnieks
bec725da56 Get and store anti-features data from repo 2010-12-16 21:47:58 +00:00
Ciaran Gultnieks
e1f3c2eb78 Added preferences for anti-features 2010-12-16 21:40:17 +00:00
Ciaran Gultnieks
78325dad91 Version 0.16 2010-12-14 23:40:30 +00:00