Commit Graph

8370 Commits

Author SHA1 Message Date
Hans-Christoph Steiner
bcb6e5ab5d Revert "Move NFC permissions to full flavor"
This reverts the NFC part of commit 6bbcb61571.
2023-06-06 12:08:14 +00:00
Hans-Christoph Steiner
62b3828d39 Revert "[app] Split out NFC logic properly between basic and full"
This reverts commit 8cf868c1a8.
2023-06-06 12:08:14 +00:00
Hans-Christoph Steiner
74161ba8b6 Merge branch 'priv-ext-session' into 'master'
Don't use SessionInstaller, if PrivilegedInstaller can be used instead

See merge request fdroid/fdroidclient!1228
2023-06-06 11:15:15 +00:00
Torsten Grote
4674d64891 [app] Don't use SessionInstaller, if PrivilegedInstaller can be used instead 2023-06-05 11:35:06 -03:00
Torsten Grote
2a28f2bca7 Merge branch 'package-installer' into 'master'
Add new PackageInstaller API and use with basic

Closes #2542, #2592, #2560, and #1836

See merge request fdroid/fdroidclient!1216
2023-06-02 18:59:52 +00:00
Torsten Grote
1599a4d822 [app] Disable priv-ext by default for basic flavor
as it isn't allowed to use it and the client isn't currently able to detect this, so all installs fail by default.
2023-06-02 15:07:21 -03:00
Torsten Grote
fa3686dd81 [app] Show app size on app details screen (expert mode only) 2023-06-01 13:57:21 -03:00
Torsten Grote
7398dc0e3e [app] Show a warning when an app does not support unattended updates 2023-06-01 13:57:20 -03:00
Torsten Grote
a78b32a8be [app] don't use SessionInstaller on Xiaomi devices, because it is broken there 2023-06-01 13:57:20 -03:00
Torsten Grote
8a0519e811 [app] work around Android 12 crash when sending confirmation intent with parcelable App 2023-06-01 13:57:20 -03:00
Torsten Grote
b76c5a5f0b [app] don't cancel notification before posting it
otherwise notifications keep flickering.

(cherry picked from commit 02cfd45d4664934d434092ff33ae73605dbdc2d0)
2023-06-01 13:57:20 -03:00
Torsten Grote
55db6b6bf2 [app] improve state restoring when coming back to app details screen
previously download progress would appear stuck when the screen was left during a download. No install button was shown.

(cherry picked from commit ca58399b137921fc736b8fd119440310e1e6c985)
2023-06-01 13:57:20 -03:00
Torsten Grote
ff312aa7a7 [app] listen to install interaction broadcasts in app list controller
and don't unregister the receiver before the actual broadcast arrived.

(cherry picked from commit 0a4623b57fb69006ca786594c31a8f824e12538c)
2023-06-01 13:57:20 -03:00
Torsten Grote
07f4dc1203 [app] Set PACKAGE_SOURCE_STORE for all installs on Android 13+
because there might be repercussions, if this isn't set. E.g. apps like GadgetBridge not getting access to Notification Listener anymore.
https://www.xda-developers.com/android-13-restricted-setting-notification-listener/
2023-06-01 13:57:19 -03:00
Torsten Grote
49ff280bb9 [app] crash when long pressing version name in about dialog 2023-06-01 13:57:19 -03:00
Torsten Grote
848a71fa59 [app] Fix notification icon loading for downloading/installing apps 2023-06-01 13:57:19 -03:00
Torsten Grote
415fd0c59d Revert "[app] Disable auto-download of APKs because basic can't do it yet due to recent targetSdk"
This reverts commit f8a0c1c448.
2023-06-01 13:57:19 -03:00
Torsten Grote
7df86e3858 [app] Move install file operations off the UiThread 2023-06-01 13:57:19 -03:00
Torsten Grote
dba639c750 [app] Turn InstallHistoryService into a JobIntentService
so it can be started while the app is in the background

(cherry picked from commit 99cafe72d41d23c4d77ef4a2f5c02f4a505509c8)
2023-06-01 13:57:19 -03:00
Torsten Grote
510b3415e9 [app] Allow background downloads/installs on Android 8
It is not allowed anymore to start services while the app is in the background. To work around this, the InstallManagerService was turned into a singleton (it needs to receive broadcasts for as long as possible) and DownloaderService was turned into a JobIntentService which we are still allowed to "start" from the background. This start might be delayed, but better late than never.

This is a temporary workaround that allows us to start this service from the background. The long term plan is to use WorkManager for it as well.
2023-06-01 13:57:18 -03:00
Torsten Grote
dcc3787c21 [app] Add SessionInstaller
# The commit message #2 will be skipped:

# f sessioninstaller
2023-06-01 13:57:18 -03:00
Torsten Grote
ce969d4806 Merge branch 'fix-unknown-sources' into 'master'
Don't show repeated unknown sources screen when installing apps

See merge request fdroid/fdroidclient!1225
2023-05-31 21:16:39 +00:00
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