Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Registered User stavrospapa's Avatar
    Join Date
    Sep 2008
    Posts
    144
    Dear Developers,

    since the private folder for each app is wiped-out on uninstall,
    is there a really persistent and hidden folder for storing log files? (or maybe a registry)

    thanks!
    Stavros

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,672
    AFAIK, not really.

  3. #3
    Registered User yogpan's Avatar
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043
    Quote Originally Posted by stavrospapa View Post
    Dear Developers,

    since the private folder for each app is wiped-out on uninstall,
    is there a really persistent and hidden folder for storing log files? (or maybe a registry)

    thanks!
    Stavros
    Hi,
    What kind of data you want to be persistent. The thing is whenever you uninstall the application whatever you have installed through your pkg file will be remmoved from the device.However, if you would have created any file in your application programmatically and not mentioned in the pkg file then on uninstalling that file will remain in the device untill removed manually.
    Maximus
    S60 Developer
    Impossible is nothing

  4. #4
    Registered User stavrospapa's Avatar
    Join Date
    Sep 2008
    Posts
    144
    hi!

    need to keep persistent a file that I create within my program, not through the pkg file.

    AFAIK, private folder gets wipped out on uninstall.
    and c:\data folder is freely accessible...

    thanks

  5. #5
    Registered User yogpan's Avatar
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043
    Hi,
    Yes you are correct. In case you are creating any file in your private folder of your application it will not remain there as during uninstallation it will remove the folder. But the other data space is still available but then your file is not secure and can be deleted manually also.
    Maximus
    S60 Developer
    Impossible is nothing

  6. #6
    Registered User stavrospapa's Avatar
    Join Date
    Sep 2008
    Posts
    144
    thanks!
    yes, "c:\" seems to be working fine.
    the thing is that, how good practice is to store files there?
    Such as files used in software licensting?

    stavros

  7. #7
    Registered User yogpan's Avatar
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043
    Hi,
    In C:\ directly ?? Not a good idea.. See the issue is anything stored under the pretext of persistent should be data caged that is secured from other applications in a sense that tommorow it should not happen some other application just manipulates with your file programmatically.
    Maximus
    S60 Developer
    Impossible is nothing

  8. #8
    Registered User sriky27's Avatar
    Join Date
    Dec 2005
    Posts
    1,236
    Hi,

    Why don't you use RFileLogger which usually stores the log files under c:\Logs folder where you could mention the folder under Logs to be used for logging. In this case even if your folder is removed c:\Logs will be there to store your logs.
    Regards,
    Sriky

  9. #9
    Registered User stavrospapa's Avatar
    Join Date
    Sep 2008
    Posts
    144
    hi!
    its documentation says that its not reliable, and requires some manual work.

    anyhow, the situation does not change
    and a proven method for hidding sensitive information
    from other apps (even in the case of uninstalling the program)
    remains, since the private folder is wiped-out.

    and hiding files in the file system in arbitrary locations is like hiding behind your finger!

    thanks 2 all
    Stavros

  10. #10
    Registered User yogpan's Avatar
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043
    Hi,
    Thats correct, but I guess if you are anyways uninstalling the application itself whats the use of keeping the data related to the application on the device, it is basically to keep the device clean from any unwanted footprints the application leaves after being uninstalled.
    Maximus
    S60 Developer
    Impossible is nothing

  11. #11
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    Quote Originally Posted by stavrospapa View Post
    hi!
    its documentation says that its not reliable, and requires some manual work.

    anyhow, the situation does not change
    and a proven method for hidding sensitive information
    from other apps (even in the case of uninstalling the program)
    remains, since the private folder is wiped-out.

    and hiding files in the file system in arbitrary locations is like hiding behind your finger!

    thanks 2 all
    Stavros
    1. RFileLogger is not a solution.
    2. You may not able to do what you want to do. [as told by yucca in #2 post]

  12. #12
    Nokia Developer Champion kiran10182's Avatar
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,236
    I have few suggestions:

    • Store such licensing files on public paths and give them some kind of system names. E.g: KernelLicense or something like that. Do not give common extension to such files. And you should store your data with some encryption algorithm so that it cannot be understood by end users.
    • Keep your licensing strategy on some external server and authenticate your users with that server with GPRS connection.
    • Use some SMS based licensing mechanism for above point in case you do not want to use GPRS connection.
    Nokia Developer Wiki Moderation team

  13. #13
    Registered User yogpan's Avatar
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043
    Hi,
    good points suggested by Kiran but I guess the first point is still a vunerable option as the user can still delete the file or it can get wiped out on factory reset. Storing the information on some other location is a better option. May be you have to do some extra efforts in your application but your purpose can be solved with this approach.
    Maximus
    S60 Developer
    Impossible is nothing

  14. #14
    Regular Contributor jas76's Avatar
    Join Date
    Aug 2008
    Posts
    86
    Hi,

    I had exactly same requirements discussed here http://discussion.forum.nokia.com/fo...d.php?t=143663 . How unfortunate is that 10 years in development and symbian hasn't provide any mechanism to handle obvious requirement for any application's trial period.

    Yogpan
    but I guess if you are anyways uninstalling the application itself whats the use of keeping the data related to the application on the device
    If you give trial period to user he may uninstall and reinstall application to reuse trial period that's the reason developers need a mecahnism to store something persistently to avoid reuse of trial period.

    Stavrospapa,

    If you are looking because of same reason I explained above there could be workaround. I found one but due to sensitivity I can not share (not allowed from my company to share any license related detail though the project is abondend). Only hint I can give is look something that is stored systemwide in data caging.

    This could have been easily handled by symbian team to provide a API by which it can be checked if an Application with UID xxxx is ever installed on phone or not.

  15. #15
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    Quote Originally Posted by jas76 View Post
    How unfortunate is that 10 years in development and symbian hasn't provide any mechanism to handle obvious requirement for any application's trial period.
    Can you name any other operating system which has "support" for trials?
    If you give trial period to user he may uninstall and reinstall application to reuse trial period that's the reason developers need a mecahnism to store something persistently to avoid reuse of trial period.
    There is no such thing as "persistent" from this point of view. Phone can be re-formatted, re-flashed. PC can be re-installed, but in the age of VirtualPC, VMWare, VirtualBox things are getting easier than that.

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 2008-03-28, 06:21
  2. Persistent storage
    By jorgenaasland in forum Mobile Java General
    Replies: 0
    Last Post: 2005-01-13, 16:02
  3. Persistent Data Storage
    By joanntsc in forum Symbian C++
    Replies: 1
    Last Post: 2003-09-27, 02:26
  4. How to transfer data in persistent storage back to PC
    By chlee3 in forum Mobile Java General
    Replies: 1
    Last Post: 2002-08-21, 15:39
  5. Persistent storage
    By pekkert in forum Mobile Java General
    Replies: 1
    Last Post: 2002-08-21, 11:41

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved