4857 Commits

Author SHA1 Message Date
Hans-Christoph Steiner
4b80c9648c create_ota.sh: add second arg to allow specifying versionCode
This is needed for a manageable build process in fdroiddata.
1.0.3-ota
2018-02-23 21:48:17 +01:00
Hans-Christoph Steiner
1667d0a8c9 untabify create_ota.sh, mixed tabs/spaces is no fun 2018-02-23 21:43:03 +01:00
Chirayu Desai
3f9a272c27 Data ota
Based on privileged-extension 0.2.7 scripts
2018-02-23 17:28:13 +01:00
Hans-Christoph Steiner
51f1a50fef fix lint WrongConstant
Donno how that magic number slipped in, this is the actual flag.
/builds/eighthave/fdroidclient/app/src/main/java/org/fdroid/fdroid/acra/CrashReportSender.java:31: Error: Must be one or more of: Intent.FLAG_GRANT_READ_URI_PERMISSION, Intent.FLAG_GRANT_WRITE_URI_PERMISSION, Intent.FLAG_FROM_BACKGROUND, Intent.FLAG_DEBUG_LOG_RESOLUTION, Intent.FLAG_EXCLUDE_STOPPED_PACKAGES, Intent.FLAG_INCLUDE_STOPPED_PACKAGES, Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION, Intent.FLAG_GRANT_PREFIX_URI_PERMISSION, Intent.FLAG_ACTIVITY_NO_HISTORY, Intent.FLAG_ACTIVITY_SINGLE_TOP, Intent.FLAG_ACTIVITY_NEW_TASK, Intent.FLAG_ACTIVITY_MULTIPLE_TASK, Intent.FLAG_ACTIVITY_CLEAR_TOP, Intent.FLAG_ACTIVITY_FORWARD_RESULT, Intent.FLAG_ACTIVITY_PREVIOUS_IS_TOP, Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS, Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT, Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED, Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY, Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET, Intent.FLAG_ACTIVITY_NEW_DOCUMENT, Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET, Intent.FLAG_ACTIVITY_NO_USER_ACTION, Intent.FLAG_ACTIVITY_REORDER_TO_FRONT, Intent.FLAG_ACTIVITY_NO_ANIMATION, Intent.FLAG_ACTIVITY_CLEAR_TASK, Intent.FLAG_ACTIVITY_TASK_ON_HOME, Intent.FLAG_ACTIVITY_RETAIN_IN_RECENTS, Intent.FLAG_ACTIVITY_LAUNCH_ADJACENT, Intent.FLAG_RECEIVER_REGISTERED_ONLY, Intent.FLAG_RECEIVER_REPLACE_PENDING, Intent.FLAG_RECEIVER_FOREGROUND, Intent.FLAG_RECEIVER_NO_ABORT, Intent.FLAG_RECEIVER_VISIBLE_TO_INSTANT_APPS [WrongConstant]

MODE_APPEND is only for openFileOutput
/builds/eighthave/fdroidclient/app/src/main/java/org/fdroid/fdroid/localrepo/SwapService.java:105: Error: Must be one or more of: Context.MODE_PRIVATE, Context.MODE_WORLD_READABLE, Context.MODE_WORLD_WRITEABLE, Context.MODE_MULTI_PROCESS [WrongConstant]
1.0.3
2018-02-02 11:05:35 +01:00
Hans-Christoph Steiner
12f6a91438 update CHANGELOG 2018-02-02 10:47:17 +01:00
Hans-Christoph Steiner
c29f007050 version code 1000013 2018-02-02 10:40:13 +01:00
Hans-Christoph Steiner
21c88e282f WifiStateChangeService: exit after trying for 2 minutes
It was tried until it got an IP address, but that will only happen if there
is a wifi device configured.  Since WifiStateChangeService is started when
F-Droid starts, WifiStateChangeService could run for days if someone never
connected to WiFi in that time.

WifiStateChangeService is also started by NETWORK_STATE_CHANGED_ACTION so
it should start each time there is a change to the WiFi connection.
2018-02-02 10:11:23 +01:00
Hans-Christoph Steiner
cbc0c39ec2 make sure cached file exists before trying to find it in the db
Files in the cache can be deleted at any time, without warning.  F-Droid's
CleanCacheService can do it, the user can do it in Settings --> Apps, etc.
So when working with files from the cache, the methods need to be extra
defensive, checking that the file that they were given still exists.

closes #1305
2018-02-02 09:59:11 +01:00
Hans-Christoph Steiner
3a38c7cad2 prevent crashes from update notifications on < android-11
closes #1306

* https://stackoverflow.com/questions/3112008/android-java-lang-illegalargumentexception-contentintent-required-error-cause
* https://stackoverflow.com/questions/20032249/is-setcontentintentpendingintent-required-in-notificationcompat-builder
2018-02-02 09:56:33 +01:00
Hans-Christoph Steiner
c53b2953e6 use standard buffer size for Utils.getBinaryHash()
While a large buffer might make things slightly faster, the smaller buffer
size should play much nicer when F-Droid is doing things in the background.
Since calculating the hash is part of the update procedure, which can now
happen in the background, this method will be often running in the
background.

The tests showed no difference in time between the large and small buffer.
2018-02-02 09:55:32 +01:00
Hans-Christoph Steiner
2b9c9b5655 set up "Android App Links" handling aka "Digital Asset Links"
Add all the new URL path possibilities with the new website to the filter,
and the possible, official host names.  This makes it more likely that
f-droid.org links go straight to F-Droid.

* https://developers.google.com/digital-asset-links/v1/getting-started
* https://developer.android.com/training/app-links/verify-site-associations.html

fdroid-website#165
2018-02-02 09:55:23 +01:00
Christine Emrich
dcf4a5868b Match color of permission icons with other icon colors 2018-02-02 09:52:07 +01:00
Hans-Christoph Steiner
78e2847271 version code 1000012 1.0.2 2017-12-01 21:34:45 +01:00
Peter Serwylo
62bbf06270 Correctly re-initialize loaders in updates screen.
There used to be a single loader which would get all apps which have
updates available. This was restarted when we were notified about new
apps requiring updates.

Then, in 7424220 I introduced a second loader responsible for getting
apps with known vulnerabilities. This change caused the bug in #1203,
because it changed the loaders from a single loader with ID = 0, to two
different loaders with arbitrary IDs. However, there was still a line of
code responding to when repo updates completed and we learn about new
updateable apps, and this was asking for a loader with an ID of 0 like
before. This crashed when the loader was completed and we tried to pase
the results.

This is fixed ensuring that both loaders are restarted upon learning of
new updateable apps. To prevent this disconnect in the future, they are
also extracted into the same method.
2017-12-01 21:33:55 +01:00
Hans-Christoph Steiner
c328443dbe implement HTML with preserved newlines for app descriptions
#1000
closes #1114
2017-12-01 21:31:07 +01:00
Hans-Christoph Steiner
18cac3920d versionCode 1000011 1.0.1 2017-10-23 22:56:10 +02:00
Hans-Christoph Steiner
8d600ee8ce update CHANGELOG 2017-10-23 22:54:37 +02:00
Pavel Borecki
f59c455c2c Translated using Weblate (Czech)
Currently translated at 100.0% (385 of 385 strings)
2017-10-23 22:51:33 +02:00
Suvi-Tuuli Allan
c88dcde311 Translated using Weblate (Finnish)
Currently translated at 86.2% (332 of 385 strings)
2017-10-23 22:51:31 +02:00
Hans-Christoph Steiner
b5a63c303f Weblate 2017-10-23 22:51:28 +02:00
Hans-Christoph Steiner
d491fc151a force all Android 5.0 devices to use the old index v0 XML format
The workaround is fugly, so we really don't want to include it in the
modern code.  Luckily, we have old index support there :-D

closes #1014
closes #1202
closes #1208
#111
2017-10-23 22:51:18 +02:00
Hans-Christoph Steiner
41749c5ebb removing all translations less than 70% complete
22%  sq  Albanian
48%  hy  Armenian
30%  hi  Hindi
29%  kab  Kabyle
18%  kn  Kannada
66%  ko  Korean
38%  lv  Latvian
13%  lt  Lithuanian
 3%  mk  Macedonian
22%  sl  Slovenian
15%  ta  Tamil
69%  th  Thai
10%  ug  Uighur
 4%  ur  Urdu
64%  vi  Vietnamese
1.0
2017-10-10 15:01:01 +02:00
Hans-Christoph Steiner
245b918d6e versionCode 1000010 2017-10-10 14:46:16 +02:00
Hans-Christoph Steiner
e064bdda56 update ChangeLog for 1.0
closes #1100
2017-10-10 14:42:20 +02:00
Hans-Christoph Steiner
02707e9a4b add a quick stock photo feature graphic
original CC0 licensed source:
https://www.pexels.com/photo/blue-grid-mosaic-pool-195547/

#1100
2017-10-10 14:42:20 +02:00
Hans-Christoph Steiner
87064e771f add three screenshots to launch with #1100 2017-10-10 14:42:20 +02:00
Hans-Christoph Steiner
fba11b8aaf move changelog file from fdroiddata to here 2017-10-09 15:57:05 +02:00
Allan Nordhøy
2a577af5a2 Translated using Weblate (Swedish)
Currently translated at 100.0% (385 of 385 strings)
2017-10-09 15:57:05 +02:00
Hadrián Candela
b3c3527b04 Translated using Weblate (Galician)
Currently translated at 100.0% (385 of 385 strings)
2017-10-09 15:57:05 +02:00
Hans-Christoph Steiner
bb7bb2c4fe Merge branch 'weblate' into 'master'
Weblate

See merge request fdroid/fdroidclient!593
2017-10-09 12:33:47 +00:00
Hans-Christoph Steiner
dfcb4a15f4 Weblate 2017-10-09 12:33:45 +00:00
Hans-Christoph Steiner
e310810f22 gitlab-ci: require connected10 to pass
The connected10 test runner has been at least as reliable as connected24,
and provides valuable coverage, especially for localization related
crashers.
2017-10-05 09:37:22 +02:00
Hans-Christoph Steiner
4a35e48ae7 Merge branch 'issue-1181--db-crash-anti-feature-join' into 'master'
Bump db version to force early adopters to upgrade db again.

Closes #1181

See merge request fdroid/fdroidclient!590
2017-10-05 07:35:09 +00:00
Peter Serwylo
de75c1fef5 Bump db version to force early adopters to upgrade db again.
Also does this with the additional field for ignoring vuln apps.
This should be safe, because there is a check for if (columnExists())
which will only pass if people don't already have this column.

Fixes #1181.
db-version/76
2017-10-05 17:06:11 +11:00
Hans-Christoph Steiner
fe626e3fd8 versionCode 1000005 1.0-alpha5 2017-10-04 23:33:21 +02:00
Hans-Christoph Steiner
18270aba86 update ChangeLog for 1.0-alpha5 2017-10-04 23:32:57 +02:00
Hans-Christoph Steiner
24512f6465 fix lint "DefaultLocale: Implied default locale in case conversion" 2017-10-04 23:29:36 +02:00
Hans-Christoph Steiner
58a10a9ab6 fix db upgrade from 1.0-alpha3 --> 1.0-alpha4
This should have been set to 75 in the original commit that added this:
caa1ead689eedd2023fa5b6b29bde40517d84668

#1181
2017-10-04 23:29:36 +02:00
Hans-Christoph Steiner
461fe4292b LocaleList is not properly sorted, so do our own best approx.
It seems that LocaleList does not necessarily return the "Language
Priority List" in the order that the user has prioritized things. So
we have to kind of fake it by first adding the default locale, then
adding the locales from LocaleList based on longest order first (e.g.
de-AT then de).

#987
2017-10-04 23:29:36 +02:00
Hans-Christoph Steiner
669e9f6573 Merge branch 'weblate' into 'master'
Weblate

See merge request fdroid/fdroidclient!589
2017-10-04 21:30:34 +00:00
Hans-Christoph Steiner
b4938879d0 Weblate 2017-10-04 21:30:32 +00:00
Hans-Christoph Steiner
859357368c Merge branch 'master' into 'master'
Science and education category bgcolor

See merge request fdroid/fdroidclient!587
2017-10-04 20:36:57 +00:00
hotlittlewhitedog
a86b0657ff science and education category bgcolor 2017-10-03 19:39:11 +02:00
Peter Serwylo
314e55057f Merge branch 'issue-1172--file-not-found-in-cache' into 'master'
Be more defensive when checking cached downloads.

Closes #1172

See merge request fdroid/fdroidclient!585
2017-09-28 02:49:13 +00:00
Peter Serwylo
ecd70c94b8 Be more defensive when checking cached downloads.
Attempt to fix #1172, but couldn't reproduce it. So instead made sure to
document in detail why such a defensive check was put in place.
2017-09-28 12:34:58 +10:00
Hans-Christoph Steiner
fa859466da versionCode 1000004 1.0-alpha4 2017-09-27 23:03:11 +02:00
Hans-Christoph Steiner
a35ee4df30 update ChangeLog for 1.0-alpha4 2017-09-27 23:02:36 +02:00
Hans-Christoph Steiner
695394fe71 Merge branch 'issue-1131--swipe-to-dismiss-updates' into 'master'
Swipe to dismiss updates

Closes #1131

See merge request fdroid/fdroidclient!584
2017-09-27 20:59:09 +00:00
Hans-Christoph Steiner
85349fb59b Merge branch 'issue-1079--swipe-to-refresh-updates' into 'master'
Allow swipe-to-refresh on categories and updates tab.

Closes #1079

See merge request fdroid/fdroidclient!586
2017-09-27 20:37:08 +00:00
Peter Serwylo
b69a26463c Allow swipe-to-refresh on categories and updates tab.
The swipe-to-refresh from the latest tab is now also implemented
for the categories and updates tab. It was a bit weird before how
you could swipe to refresh on the first tab, which would show
"Updating repos" at the top. It would then also show the same
message on the categories tab, but you couldn't swipe-to-refresh
that tab. Additionally, several people have requested this on the
updates tab, the tab where it probably makes the most sense.

Fix #1079.
2017-09-28 00:44:24 +10:00