6273 Commits

Author SHA1 Message Date
Henrik Tunedal
06253a94cf Small optimization in EclairChecker 2011-03-06 20:50:40 +01:00
Henrik Tunedal
1d025c1e7d Keep lists as unsplit strings
There is no point in splitting the strings ahead of time since 1) not
all strings need to be split and 2) we currently deserialize them just
as often as we iterate over them.
2011-03-06 02:23:44 +01:00
Henrik Tunedal
0513bb2de7 Filter incompatible applications 2011-03-05 19:59:01 +01:00
Henrik Tunedal
111a57fc47 Disable incompatible APKs 2011-03-04 19:44:01 +01:00
Henrik Tunedal
08816e4bc8 Make use of sdkver, permissions and features 2011-03-04 13:17:13 +01:00
Henrik Tunedal
17d6916e95 Get rid of unnecessary implicit permissions
Targeting an application at Cupcake triggers compatibility behaviours:
1) The permissions WRITE_EXTERNAL_STORAGE and READ_PHONE_STATE are
   automatically requested.
2) Support for different screen sizes and densities is disabled.

We don't want the extra permissions, but we do need the old resolution
compatibility mode to avoid UI breakage (for now), so I'm increasing
the target version and explicitly disabling the new screen support.
2011-03-03 14:46:20 +01:00
Henrik Tunedal
4ed1c3d622 Market-related improvements
Only show the market button for apps we know are available there.
Use a new URL that automagically opens in the market application if
it's installed but also works in the browser.
2011-02-27 23:14:05 +01:00
Henrik Tunedal
1b99e0e063 Remove superfluous transactions
SQLiteOpenHelper already wraps onCreate and onUpgrade in a transaction.
2011-02-26 16:54:05 +01:00
Henrik Tunedal
d65a31e2c5 Externalize repo address and key 2011-02-26 16:36:00 +01:00
Henrik Tunedal
9dc5b39f97 Compare strings by value 2011-02-26 14:33:29 +01:00
Ciaran Gultnieks
49fa56aa66 Version 0.21 2011-02-24 21:48:32 +00:00
Ciaran Gultnieks
efcc7c6d8c Show whether an apk is from source or a binary on the apk list 2011-02-21 22:12:00 +00:00
Ciaran Gultnieks
79ab3fe030 Added donate button to AppDetails menu 2011-02-21 21:33:18 +00:00
Ciaran Gultnieks
7c602d892a Merge commit '3c526f3' 2011-02-16 21:57:28 +00:00
Ciaran Gultnieks
a364364d99 Revert "The same, but clearer and less code?"
This reverts commit f5d8419d69b279112d5b7fa42a30c606a54e764c. Tunedal came
up with a better idea.
2011-02-16 21:52:47 +00:00
Henrik Tunedal
3c526f34ea Prettier error handling in RepoXMLHandler 2011-02-16 22:34:41 +01:00
Ciaran Gultnieks
f5d8419d69 The same, but clearer and less code? 2011-02-16 21:04:02 +00:00
Henrik Tunedal
95bca18bd3 More transactions everywhere 2011-02-14 03:47:36 +01:00
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