Comments (6)
Does the OS normally check for updates on regular basis, at what time and dates?
Approximately every 4 hours, and only when the constraints set by the user in that configuration page are met. It uses the OS job scheduling implementation so there isn't a precise schedule that it runs and the OS is free to adjust the interval / timing quite a bit to make it align well with other jobs.
I.e. there should be no restrictions and it could check anytime and when I tap the button it should start checking, no?
Yes. We could set up a more specific constraint for the job than we do by specifying that we require internet access (not just any network access), etc. It may currently be implied that the network has to have internet access as a default. I can't quite remember. We're using the OS job scheduler with standard job constraints and an approximate 4 hour interval and it determines the details.
The check for updates button just immediately schedules a job separately from the automatic periodic update check interval, so as soon as the constraints are satisfied, it will perform the check and then start updating if an update is available.
In theory, we could add support for a more lax configuration of update checks than actually attempting updates, along with support for informing that an update is available separately from installing it. However, this would add complexity and isn't necessarily desirable. There's a lot of value in simplicity. People can also already get notifications of the release announcements (https://grapheneos.org/releases has an atom feed), although that's a bit different than it becoming available in a specific release channel.
from platform_packages_apps_updater.
The check for updates button just immediately schedules a job separately from the automatic periodic update check interval, so as soon as the constraints are satisfied, it will perform the check and then start updating if an update is available.
So, it could also set a flag that makes the update check behave differently and show a notification when it occurs. I don't really want to make the check for updates feature simply immediately check for updates regardless of the constraints though. We could set it so that it expires if the constraints are not satisfied without a certain amount of time, and perhaps that can be set up to show a notification that it failed. It gets complicated though.
For example, explaining to users why it failed if it does get scheduled but fails to run (generally because of network configuration issues or an incorrectly set time leading to not being able to resolve the domain, connect to the server and establish a TLS connection). We don't currently surface this kind of information. It just functions in the background and can be controlled by the user including disabling the app. Additions to it need to be done very carefully because the upgrade path is extremely important, as is keeping users updated and not slowing down the uptake of new releases, etc.
from platform_packages_apps_updater.
When you press check for updates, it triggers an update check as soon as possible, bypassing the usual update scheduling. If you don't have network access through one of the network types you've permitted, it will happen as soon as you do. That's how the feature is meant to work. It's not a synchronous check for updates in the foreground, and it's only immediate if the requirements to check for an update are currently satisfied.
from platform_packages_apps_updater.
It would be possible to make it so that the update check triggered by an explicit check for updates creates a notification when not updates are available, but I don't think this action works the way you think it does. The check that you trigger could happen far in the future if the current conditions don't satisfy the requirements for it to perform updates based on what you've configured below.
from platform_packages_apps_updater.
When you press check for updates, it triggers an update check as soon as possible, bypassing the usual update scheduling.
you don't have network access through one of the network types you've permitted, it will happen as soon as you do.
Thanks.
Does the OS normally check for updates on regular basis, at what time and dates?
I thought of an inline message, which at least ensures the user that they pressed the button and the app recognized it.
The check that you trigger could happen far in the future if the current conditions don't satisfy the requirements for it to perform updates based on what you've configured below.
So it only checks if it also is allowed to download the updates right away or on a regular basis I guess.
E.g. I have set Release Channel: Stable and Permitted networks: Any and I am connected to wifi network with internet access.
I.e. there should be no restrictions and it could check anytime and when I tap the button it should start checking, no?
from platform_packages_apps_updater.
Replacing with #23.
from platform_packages_apps_updater.
Related Issues (20)
- Automatic System Update hangs up HOT 1
- Don't perform major version upgrades silently HOT 9
- Updater won't update HOT 3
- Should changing release channel trigger an immediate upgrade? HOT 2
- Android 12 HOT 1
- Switch metadata script URL in repo description to 13 branch HOT 1
- Allow downloading and installing updates when starting to charge HOT 1
- Include release notes in system updater
- [feature/suggestion| Add option to disable (temporarly) checking for updates/downloading updates HOT 3
- consider adding the "update only via Wifi" option HOT 2
- Option To Disable Automatic Update Checking HOT 1
- [Feature Request] Option to only download updates when connected to a charger and at scheduled times HOT 6
- [Feature Request] Ability to trigger a check for updates and/or download and install by a broadcast HOT 1
- Request: Update changelog on the System Update menu HOT 1
- should not enforce constraints for manual update checks HOT 1
- Defer system updates until substantial battery power is available? HOT 3
- Request: Please let me choose when updates install HOT 1
- Unexpected default for permitted networks HOT 2
- Update has been installed while the device was discharging and in battery saving mode HOT 1
- How to build this project HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from platform_packages_apps_updater.