Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use UPDATE_PACKAGES_WITHOUT_USER_ACTION for automatic background app updates #88

Closed
Victor239 opened this issue Oct 12, 2021 · 4 comments
Labels
enhancement New feature or request

Comments

@Victor239
Copy link

This post describes how apps are now able to update themselves automatically in the background without prompting the user. This would be preferable than having to be prompted each time to update the browsers.

Tobi823 added a commit that referenced this issue Oct 12, 2021
- try silent app updates with params.setRequireUserAction(USER_ACTION_NOT_REQUIRED) and android.permission.UPDATE_PACKAGES_WITHOUT_USER_ACTION
- use FLAG_IMMUTABLE/FLAG_MUTABLE for Android 12
Tobi823 added a commit that referenced this issue Oct 14, 2021
 * Download only "Firefox Focus/Klar" and not "Firefox Focus/Klar Beta" (#89)
 * Try out the Android 12 "silent update" feature when user manual updates an app (#88)
 * Update dependencies
@Tobi823
Copy link
Owner

Tobi823 commented Oct 14, 2021

I agree. But I need to gain experience with the new feature first - in the Android 12 emulator, updates were not always quiet.

For now, I've partially implemented silent updates in the latest version (74.4.6). The user still has to manually click on the notification and on my "Install Activity" button. But there should be no further dialog boxes from the OS. (Only on Android 12 and only for updates from apps which were installed by FFUpdater)

But for a full implementation I will need much more time. I have to adjust the internal architecture. This is unfortunately more effort than simply changing five lines of code.

Tobi823 added a commit that referenced this issue Oct 19, 2021
* Speed-up app installation/update by not requiring to press a button" This reverts commit 991c7d8"
@dznsm
Copy link

dznsm commented Nov 1, 2021

Updating works nicely after tapping on update in the notification with no other interaction on GrapheneOS (Android 12). First place I've seen this implemented. Nice work.
Would be real nice to have the updates apply automatically without having to tap update on the notification, I guess give a notification after the update.

@Donkey-Doug
Copy link

Donkey-Doug commented Dec 12, 2021

updates apply automatically without having to tap update on the notification, I guess give a notification after the update.

Or something like "Firefox got updated - See changelog" and pressing the notification opens the changelog.

@Tobi823
Copy link
Owner

Tobi823 commented Apr 18, 2022

The silent background update feature is now implemented and will be part of the next release.

@Tobi823 Tobi823 closed this as completed Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants