Closed
Bug 1102959
Opened 10 years ago
Closed 10 years ago
Should check battery before downloading update only for FOTA (recovery) updates
Categories
(Firefox OS Graveyard :: Gaia::System, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: kgrandon, Assigned: gerard-majax)
References
Details
(Keywords: polish, Whiteboard: [systemsfe])
Attachments
(1 file)
STR:
- Have a low battery percentage < 25%
- Download an OTA update and try to install it.
- Be informed that you can't install the update.
This is problematic for a few reasons. If you restart your device, it will tell you that it can't find an update until the next OTA is published (perhaps this is another bug). Additionally the update is missing, meaning you have to download it again.
If we are going to prompt about battery, I think we should also do so *before* the download as well, especially if we have such a poor experience once we have the update downloaded.
related to bug 959195? We also have bug 1039480 which was marked a dup of bug 1034735
Also see bug 946550 / bug 930124
Reporter | ||
Comment 2•10 years ago
|
||
Thanks Naoki. This bug is definitely related to all of those. If bug 946550 / bug 930124 is solved, then we may not need this. For now I think we should probably check the battery level before starting the download as well. To me it doesn't seem nice to download the update then not be able to apply it.
Whiteboard: [systemsfe]
Assignee | ||
Comment 3•10 years ago
|
||
(In reply to Kevin Grandon :kgrandon from comment #0)
> STR:
> - Have a low battery percentage < 25%
> - Download an OTA update and try to install it.
> - Be informed that you can't install the update.
>
> This is problematic for a few reasons. If you restart your device, it will
> tell you that it can't find an update until the next OTA is published
> (perhaps this is another bug). Additionally the update is missing, meaning
> you have to download it again.
>
> If we are going to prompt about battery, I think we should also do so
> *before* the download as well, especially if we have such a poor experience
> once we have the update downloaded.
I think we should rather fix the fact that after reboot I cannot install the downloaded update.
Assignee | ||
Comment 4•10 years ago
|
||
Kevin, I'll check if fixing bug 946550 is quick. According to your comment 2, we may not need to do anything in the current bug if this one is fixed :)
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → lissyx+mozillians
Reporter | ||
Comment 5•10 years ago
|
||
Thanks for the update here Alex! Even if bug 946550 is fixed, I'm still not sure it should let you download an update if you can't install it, I think it should at least warn you. I guess that's a question for UX though.
Assignee | ||
Comment 6•10 years ago
|
||
Downloading an OTA package, with battery > 25%, I'm prompted to install or not. If I tap "Later", it's properly applied on the next reboot.
Assignee | ||
Comment 7•10 years ago
|
||
(In reply to Kevin Grandon :kgrandon from comment #0)
> STR:
> - Have a low battery percentage < 25%
> - Download an OTA update and try to install it.
> - Be informed that you can't install the update.
>
> This is problematic for a few reasons. If you restart your device, it will
> tell you that it can't find an update until the next OTA is published
> (perhaps this is another bug). Additionally the update is missing, meaning
> you have to download it again.
>
> If we are going to prompt about battery, I think we should also do so
> *before* the download as well, especially if we have such a poor experience
> once we have the update downloaded.
As far as I could test, we are indeed properly applying the OTA after reboot, even when I faked a low battery level (and I got the dialog).
The original bug for this feature was bug 959195 and it was mostly intended for FOTA (applied in recovery) and not OTA.
Maybe we should just not perform this check for OTA packages?
Depends on: 959195
Flags: needinfo?(kgrandon)
Reporter | ||
Comment 8•10 years ago
|
||
(In reply to Alexandre LISSY :gerard-majax from comment #7)
> Maybe we should just not perform this check for OTA packages?
I think that is a possible solution for OTA updates.
I still think there's a bug here for FOTA updates, but haven't tested those. Basically the messaging seemed to me that the download did not work if I did not have sufficient battery.
Flags: needinfo?(kgrandon)
Assignee | ||
Comment 9•10 years ago
|
||
(In reply to Kevin Grandon :kgrandon from comment #8)
> (In reply to Alexandre LISSY :gerard-majax from comment #7)
> > Maybe we should just not perform this check for OTA packages?
>
> I think that is a possible solution for OTA updates.
>
> I still think there's a bug here for FOTA updates, but haven't tested those.
> Basically the messaging seemed to me that the download did not work if I did
> not have sufficient battery.
No, I don't think there is any issue for FOTA, because in this case, we will have kept in mind that there was an update, and we will directly reapply it. What you reported as a bug in your first comment, "If you restart your device, it will tell you that it can't find an update until the next OTA is published (perhaps this is another bug)." just confirms that you, indeed, got the OTA update applied during the reboot.
Hence, it's normal it will only detect a new update when one is available.
Reporter | ||
Comment 10•10 years ago
|
||
Ok, I think I'm clear on the issue then. I'm fine if you want to use this bug to remove the OTA apply check then. Thanks!
Assignee | ||
Comment 11•10 years ago
|
||
Updating the title, since we want this check to be there because recovery update may consume quite some battery.
Summary: Should check battery before downloading update → Should check battery before downloading update only for FOTA (recovery) updates
Comment 12•10 years ago
|
||
Assignee | ||
Comment 13•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8590753 -
Flags: review?(alive)
Comment 14•10 years ago
|
||
Comment on attachment 8590753 [details] [review]
[gaia] lissyx:bug1102959 > mozilla-b2g:master
LGTM, thanks!
Attachment #8590753 -
Flags: review?(alive) → review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Updated•10 years ago
|
Keywords: checkin-needed
Comment 15•10 years ago
|
||
Pull request has landed in master: https://github.com/mozilla-b2g/gaia/commit/eced99ac91514cd2499796bfb16765a6e31ccda4
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•