Closed Bug 945146 Opened 11 years ago Closed 6 years ago

[B2G][Helix][Power Fail Safeguard][Hancheng]Apps files are destroyed when power fail

Categories

(Firefox OS Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: lecky.wanglei, Unassigned)

Details

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

Steps to reproduce:

* Description:
  If the device power off abnormally, sometimes the webapps files may be destroyed.

* Precondition:
  Flash the software and finish FTU when first time startup.

* Reproduction steps:
  1. Restart the phone.
  2. Power off the phone abnormally during startup or when the phone is running.
  3. Loop step 1 and step 2 for thousand times.

* Expected result:
  The important files of B2G will not be destroyed.

* Actual result:
  The files in /data/local/webapps are destroyed and remain only 0KB files. Then the device can't boot and block at the Firefox logo. We test for 20 devices and find 2 failed.

* Reproduction build:( V1.1.0 hd/2013-11-14)

* Analyze
  We know the Android phone has Power Fail Safeguard in framework, and we can add files which we want to protect when power fail.
  Does B2G also has this mechanism? Can we add files to protect when power fail?
blocking-b2g: --- → hd?
Flags: needinfo?(wchang)
(In reply to lecky from comment #0)
> * Reproduction steps:

>   3. Loop step 1 and step 2 for thousand times.


Not blocking. Not spending time on this for now.
blocking-b2g: hd? → ---
Flags: needinfo?(wchang)
Hi Wayne,

Coule you please give some suggestion to the following questions?

>* Analyze
>  We know the Android phone has Power Fail Safeguard in framework, and we can add files which we want to >protect when power fail.
>  Does B2G also has this mechanism? Can we add files to protect when power fail?
Flags: needinfo?(wchang)
I am not aware of such mechanism, adding Alan to comment if he knows.

(In reply to lecky from comment #2)
> Hi Wayne,
> 
> Coule you please give some suggestion to the following questions?
> 
> >* Analyze
> >  We know the Android phone has Power Fail Safeguard in framework, and we can add files which we want to >protect when power fail.
> >  Does B2G also has this mechanism? Can we add files to protect when power fail?

You're welcome to share your ideas and implementation, we have people that would be glad to discuss with you.
Flags: needinfo?(wchang)
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.