Commit Graph
8348 Commits
Author SHA1 Message Date
Torsten Grote 91bbfd4cf0 [app] don't show repeated unknown sources screen when installing apps
by limiting the use of PackageManager#canRequestPackageInstalls() method to flavors targeting at least O
2023-05-31 17:41:45 -03:00
Torsten Grote 137182aab5 Merge branch 'dep-update' into 'master'
Update dependencies

See merge request fdroid/fdroidclient!1222
2023-05-30 18:42:02 +00:00
Torsten Grote 21f8a23814 Upgrade all (most of) the things 2023-05-30 09:39:15 -03:00
Torsten Grote 9c50183b68 Upgrade to Android Studio Electric Eel to solve some test bugs 2023-05-30 09:39:15 -03:00
Torsten Grote ebc9fa1664 Merge branch 'codespell' into 'master'
Fix typos found by codespell

See merge request fdroid/fdroidclient!1224
2023-05-29 16:37:27 +00:00
Dimitri Papadopoulos b6bb64457c Fix typos found by codespell 2023-05-29 15:47:22 +00:00
Torsten Grote 8f5dfd67ed Merge branch 'basic' into 'master'
Bump targetSdk of basic flavor to 33

Closes #2552

See merge request fdroid/fdroidclient!1207
2023-05-29 15:46:56 +00:00
Torsten Grote cd5023fbb5 [app] Split out strings for full/basic flavor, but keeping them translatable in main resource 2023-05-29 12:00:50 -03:00
Torsten Grote 8cf868c1a8 [app] Split out NFC logic properly between basic and full
so basic doesn't need NFC permission

(cherry picked from commit 28ded23c9c943084b645ebe63e1566f92469da7f)
2023-05-29 12:00:50 -03:00
Jochen Sprickerhof 6bbcb61571 Move Bluetooth and NFC permissions to full flavor 2023-05-29 12:00:50 -03:00
Torsten Grote 8c57ba19a3 [app] Add missing REQUEST_DELETE_PACKAGES permission
so uninstalling is working again.
2023-05-29 12:00:50 -03:00
Torsten Grote 7f18a13ad4 [app] Bring pure black OLED setting to basic flavor 2023-05-29 12:00:49 -03:00
Torsten Grote ede9e41673 [app] Disable auto-download of APKs because basic can't do it yet due to recent targetSdk
(starting services from the background isn't allowed anymore)
2023-05-29 12:00:49 -03:00
Torsten Grote d83822510c Compile libraries with SDK 33 as well 2023-05-29 12:00:49 -03:00
Torsten Grote 71311da41e [app] Fix flavor applicationId setup for debug builds
These were always using the package name of the full flavor.
2023-05-29 12:00:49 -03:00
Torsten Grote b7206c8abe [app] Bring categories back to basic app 2023-05-29 12:00:49 -03:00
Torsten Grote 43bd8010cf [app] Handle POST_NOTIFICATIONS permission for Android 13 (SDK 33) 2023-05-29 12:00:49 -03:00
Torsten Grote cdb502727d [app] Move DeviceStorageReceiver from Manifest to manual registration
Part of Android 8 Broadcast Limitations
2023-05-29 12:00:48 -03:00
Torsten Grote 35b45e2f6b [app] Ask user to enable unknown sources for F-Droid when needed
This still needs to be tested on old Android versions < 31
2023-05-29 12:00:48 -03:00
Torsten Grote 0b71e2e189 [app] Move panic dependency to full flavor 2023-05-29 12:00:48 -03:00
Torsten Grote cb9dd513c4 [app] Mark all PendingIntents as FLAG_IMMUTABLE for now
Some might need to be mutable, but we find this out later.
2023-05-29 12:00:48 -03:00
Torsten Grote 028887fbdc [app] Upgrade basic to targetSdk 33 and make it compile 2023-05-29 12:00:46 -03:00
Torsten Grote 7ace3464cf Merge branch 'upgrade_build_tools' into 'master'
enable building on Apple Silicon

Closes #2559

See merge request fdroid/fdroidclient!1220
2023-05-29 14:16:12 +00:00
Conny Duck c23fceb656 enable building on Apple Silicon 2023-05-29 14:16:11 +00:00
Torsten Grote 6cbd1f95a0 Merge branch 'add_dedicated_basic_icon' into 'master'
change app icon of basic flavor

See merge request fdroid/fdroidclient!1221
2023-05-28 14:05:24 +00:00
Conny Duck 8e694090ff change app icon of basic flavor 2023-05-28 14:05:23 +00:00
Torsten Grote a31d946475 Merge branch '2523-uninstall-app-status' into 'master'
Check for updates after uninstalling an app

See merge request fdroid/fdroidclient!1223
2023-05-26 19:15:20 +00:00
Torsten Grote ed90ed8b67 [app] check for updates after uninstalling an app
it may happen that the uninstalled app had an update that we should remove from the UI and notifications
2023-05-26 15:57:13 -03:00
Torsten Grote d539c9d09c Merge branch '2595-text-color' into 'master'
Slightly darker app names in cards to improve readability

Closes #2595

See merge request fdroid/fdroidclient!1215
2023-05-26 14:34:27 +00:00
Torsten Grote 6598a440f0 [app] slightly darker app names to improve readability
also unify app card text sizes while at it
2023-05-26 13:52:52 +00:00
Torsten Grote 0a69983b0f Merge branch 'cleanup_theme_handling' into 'master'
cleanup theme handling

See merge request fdroid/fdroidclient!1219
2023-05-26 13:46:33 +00:00
Conny Duck bf867e5b71 cleanup theme handling 2023-05-26 13:46:32 +00:00
Torsten Grote 4bfe05a370 Merge branch 'zip-signing-overhaul' into 'master'
overhaul use of bouncycastle

See merge request fdroid/fdroidclient!1209
2023-05-25 13:26:50 +00:00
Hans-Christoph Steiner 04be5ed630 only run Robolectric test of verifying index-v1.jar sig in CI
The CI has a hack to support SHA1 still, see
d7dc001b9b in !1192
2023-05-25 11:58:01 +00:00
Hans-Christoph Steiner 5063a9770b SignatureBlockGenerator: explicitly use BouncyCastleProvider
"BC" can come from Android, and that built-in version was always incomplete,
and on some versions of Android, it is now partially or completely removed.
2023-05-25 11:58:01 +00:00
Hans-Christoph Steiner 12a677a225 purge unused ZipSigner code
This includes some references to the "BC" provider that now do not need to
be ported:
https://android-developers.googleblog.com/2018/03/cryptography-changes-in-android-p.html
2023-05-25 11:58:01 +00:00
Hans-Christoph Steiner 2c9737f126 add simpified test of ZipSigner.signApk() 2023-05-25 11:58:01 +00:00
Hans-Christoph Steiner 49ff4b4ba3 ZipSigner: support tiny files
If the buffer is larger than the file size, use a smaller buffer. Otherwise:

    java.lang.IllegalStateException: End of central directory not found in /tmp/kellinwood.security.zipsigner.ZipSignerTest16439972358588480823unsigned.jar
        at kellinwood.zipio.ZipInput.scanForEOCDR(ZipInput.java:124)
        at kellinwood.zipio.ZipInput.doRead(ZipInput.java:148)
        at kellinwood.zipio.ZipInput.read(ZipInput.java:72)
        at kellinwood.security.zipsigner.ZipSigner.signZip(ZipSigner.java:660)
        at kellinwood.security.zipsigner.ZipSignerTest.testSignApk(ZipSignerTest.java:117)
2023-05-25 11:58:01 +00:00
Torsten Grote b91260da16 Merge branch 'cleanup_resources' into 'master'
cleanup no longer needed resource variants

See merge request fdroid/fdroidclient!1201
2023-05-24 20:42:23 +00:00
Conny Duck 845cfaab24 cleanup no longer needed resource variants 2023-05-24 19:16:27 +00:00
Torsten Grote e5c94a9a8b Merge branch 'master' into 'master'
fixed some typos and spelling errors

See merge request fdroid/fdroidclient!1218
2023-05-24 19:14:17 +00:00
Elias Howell 37323e1dbb fix typos and spelling errors 2023-05-10 16:56:47 -04:00
Hans-Christoph Steiner 680a1154cf Merge branch '2598-npe-signer' into 'master'
Don't crash when app has no signer at all

Closes #2598

See merge request fdroid/fdroidclient!1217
2023-05-02 12:40:00 +00:00
Torsten Grote ca7a203531 [app] don't crash when app has no signer at all
Happens with TT-RSS repo where app has only old MD5 sig which we don't support anymore.
2023-05-01 12:49:43 -03:00
Hans-Christoph Steiner a4bbef5c70 Merge branch 'fix-reset-transient' into 'master'
Fix critical bug that prevents repo updates after Android updates

See merge request fdroid/fdroidclient!1210
2023-04-06 18:24:31 +00:00
Torsten Grote d7b52abf43 [db] Clarify method documentation for clearing/resetting 2023-04-06 08:34:02 -03:00
Torsten Grote 8f02240419 [app] Switch to new method for clearing all app data
to avoid stuck repo updates when doing major Android upgrades
2023-04-05 17:35:38 -03:00
Torsten Grote 7489f8466b [db] Rework AppDao#clearAll() method to fix critical bug
This is a breaking change.

The new method is in FDroidDatabase and called clearAllAppData(). It now also resets repository timestamps, so we will not try to apply a diff when we should use a full index.
2023-04-05 17:34:36 -03:00
Hans-Christoph Steiner f66a4def4d Merge branch 'Locale.getDefault' into 'master'
use Locale DISPLAY category on Android >= 24

See merge request fdroid/fdroidclient!1208
2023-03-16 15:24:13 +00:00
Hans-Christoph Steiner 034de8e7f9 UpdateServiceTest needs app-full-debug.apk to work
see 3fa5e98fc4 in !1135
2023-03-16 14:30:40 +01:00