Closed Bug 916686 Opened 11 years ago Closed 6 years ago

[B2G][Helix][OTA][ChenHoulai]When the update file is dowloading, connect the handset to the pc and open the 'Enable USB storage' option, the download can continue , but after the download is completed, the update file can not be installed.

Categories

(Firefox OS Graveyard :: General, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: lecky.wanglei, Unassigned)

Details

User Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; aff-kingsoft-ciba)

Steps to reproduce:

【Detail Description*】:When the update file is dowloading,  connect the handset to the pc and open the 'Enable USB storage' option,  the download can continue , but after the download is completed, the update file can not be installed.
【Repro Steps*】:
   1、Enter into the settings, click 'check now' to get update info.
    2、Download the update file.
    3、When the file is downloading, enter into settings and open the 'Enable USB storage' option.
    4、After the download is completed, click the ''Install Now" button.
【Expect Result*】:
   4、The update file can be installed and the handset reboot.
【Real Result*】:
   4、The update file can not be installed and the update status becomes "Uncompressing" .
【Test Count*】:5
【Found Count*】:5
【Gaia commit ID*】:c0ea0a4943dc8d3751b07f5b5c5d3abe06364a14  
【Gecko commit ID*】: 170f9e477571127cd40997fa2abe262ed43f0e4d  
【Log*】:NA
【Network environment】:
【Resume operation】:
【Carrier】:
Severity: normal → blocker
blocking-b2g: --- → hd?
Priority: -- → P2
Flags: needinfo?(wchang)
cc Alan to confirm this is expected with current implementation.

ni?UX - we should define some guidelines for when different user activities compete for the same storage like this case here. 
Also for things like enabling USB mass storage when playing music from SD card etc.
Severity: blocker → normal
blocking-b2g: hd? → ---
Flags: needinfo?(wchang) → needinfo?(firefoxos-ux-bugzilla)
I am flagging David to triage or reassign this appropriately. This reads like a bug (the installation fails, which is not expected) and not a feature or UX issue. David, if there are other features or messaging issues that UX needs to advise on, please let us know and we can add them to the 1.3 or later backlogs.
Flags: needinfo?(firefoxos-ux-bugzilla) → needinfo?(dscravaglieri)
blocking-b2g: --- → hd?
blocking-b2g: hd? → ---
hi, Kai-Zhen:
Can you help to analyze this issue?
The causes is that after the update file is downloaded and uncompressed, the sdcard lock will release.
Then when i choose to install the update, the update file can not be found, for it has went into USB mass storage state. 
Can i check whether it is in USB mass storage state and tip the user at this time?
I would like to ask where is the USB mass storage state getting interface?
Thanks!
Flags: needinfo?(kli)
Lecky, I follow your steps, I can't get the same result.
When USB mass storage is enabled after update.mar is download, I found update service will take much more time than normal case to apply update.mar to update.zip. After the update.zip is applied, user will be notified to select "install" or "later".
Flags: needinfo?(kli)
(In reply to Kai-Zhen Li from comment #4)
> Lecky, I follow your steps, I can't get the same result.
> When USB mass storage is enabled after update.mar is download, I found
> update service will take much more time than normal case to apply update.mar
> to update.zip. After the update.zip is applied, user will be notified to
> select "install" or "later".

hi, Kai-Zhen:
Thanks.
And what is the state when you select "install" at this time when the USB mass storage is open ? Can the handset reboot normally?
Flags: needinfo?(kli)
Lecky, 

After I tried many times, I found that after enable USB mass storage,
- if /mnt/sdcard still presents, the update will continue and reboot successfully.
- if /mnt/sdcard is not available, the update will not reboot successfully.

In normal case, when USB mass storage is enabled /mnt/sdcard will be un-available, the location of update.zip will be verified in update service before reboot into recovery. 

I think we should to think if turn on USB mass storage during firmware update is a normal UX and how to prevent it.
Flags: needinfo?(kli)
clear n?
Flags: needinfo?(dscravaglieri)
Firefox OS is not being worked on
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.