I have created a data file in my process private directory( \private\sid)
When I execute master Reset on my device, private directory remains but data file is whipped out. How do I retain my data file and its contents on master reset?
I have created a data file in my process private directory( \private\sid)
When I execute master Reset on my device, private directory remains but data file is whipped out. How do I retain my data file and its contents on master reset?
i donot think you can retain any data when you master reset the phone.
AFIK only pre-installed application will retain its data file on master reset and other applications data files will whipped out.
In that case you may succeed in surviving *#7780#, the same way as other data survives. However the necessary API and documentation is not part of the public SDK, deploying applications to the ROM is not typical for 3rd-party developers.
Ask your BDM and/or the person who migrates your application to a ROM image.
I think that you will find thats why its called a master reset, rather than just a reset. What you are protecting against is a corrupt data file turning the phone into a brick.
IIRC the device wipe just marks the c drive as corrupt and forces a reformat of it.
Download Symbian OS now! [url]http://developer.symbian.org[/url]
It is not that obvious to me what you mean on 'master reset', but the 7780-reset is the only one which is supposed to be survived by some data.
Is this S60 or UIQ?
On S60 hard reset is *#7370# (ie RES0)
Download Symbian OS now! [url]http://developer.symbian.org[/url]
That one is not really supposed to be survived. But you can experiment with the related API - if you are entitled to experiment with it.