1358 Commits

Author SHA1 Message Date
Dominik Schürmann
8f08289822 AndroidManifest: Add superuser permission, cleanup 2014-04-26 13:43:51 +02:00
Dominik Schürmann
732fb87944 Add libsuperuser as external git submodule and project dependency 2014-04-26 02:40:08 +02:00
Dominik Schürmann
7451f00534 Refactoring old code using an abstract class 2014-04-26 02:01:26 +02:00
Daniel Martí
07b79c1e06 Slightly better wording in the README. ant-prepare success prints. 2014-04-26 01:08:01 +02:00
Peter Serwylo
cfcdfebe4e Fixed typo in README troubleshooting. 2014-04-26 07:57:14 +09:30
Peter Serwylo
4d1def468f Added build troubleshooting to README (Issue #17) 2014-04-26 07:52:18 +09:30
Daniel Martí
1f154adf42 Merge branch 'master' into super-fdroid
Conflicts:
	AndroidManifest.xml
	lint.xml
	src/org/fdroid/fdroid/AppDetails.java
2014-04-25 20:20:43 +02:00
Peter Serwylo
d287dca854 Refactored SearchView into Activity + ListFragment (Fixes #11)
This allowed for the use of LoaderCallbacks which seem like a better
way at managing the lifecycle of the cursors which our ContentProviders
return.
2014-04-25 18:21:49 +09:30
Daniel Martí
3345a81077 Re-run fix-ellipsis 2014-04-25 10:23:23 +02:00
Daniel Martí
9bd33003a0 Add a script to fix format problems automatically 2014-04-25 10:22:42 +02:00
F-Droid Translatebot
82b188a2ac Translation updates 2014-04-24 21:26:43 +01:00
Peter Serwylo
71db322b6d Don't implement 'update' for installed apps, use replace (Fixes #14)
There were some weird edge cases that couldn't quite be pinned down,
whereby installing an app would result in a unique key violation being
hit. One example was when somebody was installing an apk from a file
manager. It seems that this doesn't trigger a PACKAGE_CHANGED, but
rather a PACKAGE_INSTALLED. The end result is that it attempts to insert
a record that already exists in the installed apps table. Because we
have a unique key constraing on the appId, it breaks.

This commit changes the way that we insert installed app details.
Instead of inserting some times, and updating other times, we always
insert. If we hit a unique key violation, the row is deleted, and then
the new values are reinserted.
2014-04-24 13:07:16 +09:30
Daniel Martí
d573bac5b0 Add the sharing feature by Hans to the changelog 2014-04-23 18:05:23 +02:00
Peter Serwylo
e3e726e56c Merge branch 'master' into 'master'
send any installed app via NFC/Beam or Bluetooth

Building upon the NFC+Bluetooth sending of the FDroid.apk, these two commits allow the user to send any installed app via Bluetooth or NFC/Android Beam.
2014-04-22 15:28:29 +00:00
Hans-Christoph Steiner
4a55cdf938 option to send via bluetooth any installed app on the AppDetails page
This takes the code used for sending the FDroid.apk and applies it to any
installed app.  So the user can go to the AppDetails for any installed app
and select "Send via Bluetooth" from the menu, and send the app to another
phone.
2014-04-22 11:09:49 -04:00
Hans-Christoph Steiner
0db711c08d enable sending installed APKs via NFC/Android Beam on AppDetails
If you are viewing the AppDetails screen for an installed app, this code
configures Android Beam to send the APK for that installed app if the you
initiate via NFC.

Also move the SDK checks into each method so that they are easier to use
without doing the wrong thing.
2014-04-22 11:09:49 -04:00
Hans-Christoph Steiner
52e0f373af stay in FDroid after adding a new repo via Intent
If a new repo comes in via Intent, like from clicking a link, scanning a QR
Code, etc., then stay in FDroid once the add dialog is complete.
Previously, it would sometimes stay in FDroid and sometimes go back to the
sending Activity, depending on the sending Activity.  It was confusing and
annoying behavior.
2014-04-22 10:29:09 -04:00
Peter Serwylo
fe41133d2b Modified changelog details for 'installed app cache'
Made the description a little more appropriate for lay people, rather than
developers.
2014-04-21 09:20:31 +00:00
Daniel Martí
4b3b392c01 Prepare for 0.64-test 0.64-test 2014-04-20 14:32:05 +02:00
Daniel Martí
c5a1fd9b1c Some translation fixes 2014-04-20 14:24:07 +02:00
F-Droid Translatebot
f93c8151fe Translation updates 2014-04-20 12:40:49 +01:00
Daniel Martí
87775be76c Update UIL, adapt to the changes 2014-04-20 12:51:50 +02:00
Peter Serwylo
4e24050760 Adding our own cache of currently installed apks in the database.
Previously the data was not stored anywhere, and each time we wanted
to know about all installed apps, we built a ridiculously long SQL
query. The query had essentially one "OR" clause for each installed
app. To make matters worse, it also required one parameter for each
of these, so we could bind the installed app name to a "?" in the query.
SQL has a limit of (usually) 999 parameters which can be provided to
a query, which meant it would fall over if the user had more than
1000 apps installed.

This change introduces a new table called "fdroid_installedApps".
It is initialized on first run, by iterating over the installed apps
as given by the PackageManager. It is subsequenty kept up to date
by a set of BroadcastReceivers, which listen for apps being
uninstalled/installed/upgraded.

It also includes tests to verify that queries of installed apps,
when there are more than 1000 apps installed, don't break.

Finally, tests are also now able to to insert into providers other
than the one under test. This is due to the fact that the providers
often join onto tables managed by other providers.
db-version/43
2014-04-20 16:50:22 +09:30
Daniel Martí
655f2bf7e3 Update UIL 2014-04-17 01:20:42 +02:00
Daniel Martí
57eaad7c1b Remove RelativeLayout leftovers 2014-04-17 01:20:32 +02:00
Peter Serwylo
de085f7e02 Added ApkProvider.get() to return a single apk.
This allows you to specify the Uri of a single apk, and
it will return it. Right now it is just used in a test, but
hopefully it will be useful in other situations too.
I forgot to commit this last time, and didn't review my patch
well enough before submitting.
2014-04-12 19:02:15 +00:00
Peter Serwylo
8c6ce67100 Added test for "ApkProvider.delete(..., List<Apk>)"
This was explicitly not-allowed previously, and so there was a
test that ensured it threw an exception when attempted on the
ApkProvider. However I implemented it for another feature, but
forgot to change the tests. Now the test no longer tests for
an exception. Rather, it properly tests for the correct execution
of the method.
2014-04-12 09:25:26 +00:00
Peter Serwylo
60f2be678a Merge branch 'master' into 'master'
run JUnit tests

It turns out that Jenkins was running the JUnit tests all along, but it just never reported on them.  This adds a jar to the test project that makes JUnit reports that Jenkins can parse, and the report on the results.  So now if the JUnit tests fail, people will be emailed just like build failures.

Also, I added a quick `ant javadoc` target to the main project in case anyone likes that kind of thing.
2014-04-11 21:56:39 +00:00
Hans-Christoph Steiner
d813f1ec17 run JUnit tests using android-junit-report to get XML output
Jenkins needs some kind of report from the JUnit tests in order to tell
whether the tests succeeded or not.  android-junit-report is a library to do
exactly that.  With this setup, Jenkins should now successfully understand the
status of the JUnit tests, where before it just ran them and ignored the
results
2014-04-11 14:10:26 -04:00
Hans-Christoph Steiner
bc6f3d5cd9 add ant javadoc to generate javadoc for FDroid sources 2014-04-11 14:10:25 -04:00
Daniel Martí
4db53deb42 Forgot to set the icon sizes back to normal
They got added +8 since we added paddings directly to the icon layout. Since
those paddings got removed, this has to be switched back too.
2014-04-11 19:24:46 +02:00
Daniel Martí
8ed76f47ee More improvements to the app list layout
* Don't use a RelativeLayout for the whole thing
* Use more external paddings, not per-element paddings
* Center everything vertically
2014-04-10 16:33:15 +02:00
Daniel Martí
e7f76705c8 Move "receiver" and "address" into UpdateService.EXTRA_... 2014-04-10 15:56:10 +02:00
Daniel Martí
f6707490f8 Move "from" into AppDetails.EXTRA_FROM 2014-04-10 15:52:11 +02:00
Daniel Martí
7fd3ea236e Move "appid" into AppDetails.EXTRA_APPID 2014-04-10 15:49:02 +02:00
Daniel Martí
2cdb634865 Fixes #6: Spaces before ellipsis in German are OK 2014-04-10 15:23:19 +02:00
Daniel Martí
40d873551f A bit of extra cursor safety, avoid the last missing .close() 2014-04-10 15:11:00 +02:00
Daniel Martí
f04ac83ec9 Fix build without java 1.7 compatibility 2014-04-10 15:08:29 +02:00
Peter Serwylo
fe1806b016 Merge branch 'misc_fixes' into 'master'
Localized category list
2014-04-10 03:51:58 +00:00
Peter Serwylo
2a296c0302 Merge branch 'master' into 'master'
Scroll to top on category change

Scroll to the top of the available app list when changing categories.
See: https://gitlab.com/fdroid/fdroidclient/issues/7
2014-04-10 03:46:58 +00:00
James Clark
09ccf3d428 Fix bug introduced in last commit 2014-04-10 04:14:55 +01:00
James Clark
87638363b3 Set listview to top item after category refresh 2014-04-10 03:45:17 +01:00
Peter Serwylo
d54dc0b7bb Merge branch 'master' into 'master'
fix two bugs

First bug is with lots of QR Code readers, they don't respect custom URI schemes like `fdroidrepo://` and just force all URIs to be `http://`.  A slight tweak makes it possible to use a QRCode to configure a repo using all of the major ones I could find (I tested with 8 different apps).

The second bug is a simple crasher bug.
2014-04-08 06:51:16 +00:00
Hans-Christoph Steiner
da329089fb add custom ant rules for downloading JUnit results 2014-04-08 00:16:03 -04:00
Hans-Christoph Steiner
c1d0ec43c3 fix crasher when hopping around apps and adding repos
I triggered this a few times while trying various QR Code scanning apps
with FDroid.

fixes #3222 https://dev.guardianproject.info/issues/3222
2014-04-07 21:39:50 -04:00
Hans-Christoph Steiner
407e7662e9 support QR scanners that do not respect custom URI schemes
Some QR Code scanners don't respect custom schemes like fdroidrepo://, so
this is a workaround, since the local repo URI is all uppercase in the QR
Code for sending the local repo to another device.  This way, the QR Code
can still be all uppercase and use HTTP:// and Android will still route it
to FDroid, but via the Just Once/Always chooser (fdroidrepo:// goes
directly to FDroid with no prompt, when it works)
2014-04-07 21:07:01 -04:00
Daniel Martí
a477f421cb Greatly improve app list layout
* Don't hard-code ellipsis in the code
* Separate the two rows into two linear layouts
* Don't abuse relative layouts
* Use ellipsize with weights to achieve best results
2014-04-07 19:35:04 +02:00
Daniel Martí
b731ab57b3 Release 0.63 0.63 2014-04-07 15:46:33 +02:00
Daniel Martí
ad9218d14c Fix some string formats and an ellipsis 2014-04-07 15:21:23 +02:00
F-Droid Translatebot
c717d919af Translation updates 2014-04-07 14:16:49 +01:00