How to share a file between 2 applications.
| Thu, 2007-05-17 12:57 | |
|
Hi!
I'm developing in Symbian S60 3rd Edition ( Nokia N80 ). I want 2 apps to access the same text file in read/write mode. The only way i found to do that is saving the file into a folder where every app can read and write ( i.e. \data\others\ ), but I want my apps to be Symbian Signed and this solution doesn't seem to be the best way to get it. Anybody could access this file with a file browser. Is there any way to make a file accessible by only 2 applications specifying their UID's ??Thak you all. |
|






??
Forum posts: 1134
As in, a server keeps the file in its private folder, and you implement file access function (open/read/write) using IPC to the server, and the server then does the file actions.
But, will you save sensitive data in the file?
If not, this is no issue, just create the file in \data\others.
Symbian signed doesn't care about the security of your program as long as it doesn't break the security of the system.
Forum posts: 15
The data in the file are sensitive for my program.
I read in www.symbiansigned.com, in TOOL1 section that anyone could access "public" folders with a file browser and move, copy or delete the files of my application. But checking again the tests I have to pass to get Symbian Signed Certificate I notice that it's not forbidden to create "free access" files... I hope.
Thanx, again.
Forum posts: 1886
- you don't do so if the file system has almost no space left
- you clean up everything correctly when your application is uninstalled.
Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant
Forum posts: 15
My fear is about test PKG-02. If somebody deletes or modifies the files of my application stored in \data\others, my app won't work properly, and the PKG-02 test will fail.
I don't know how much strict is the SymbianSigned Certificate.
Forum posts: 174
I'm quite certain that this sort of error won't be discovered in Symbian Signed testing, though. But test methodology isn't dictated by the Symbian Signed criteria, so there are no guarantees.
http://ptrmobile.blogspot.com/
Forum posts: 1134
As long as your application doesn't crash or leak resources or anything like that when the file is not there, it is ok.