×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    190

    Create / write file in Symbian 9.1 3RD - capability needed?

    I'm trying to create a file in \private\<SID>\ using RFile::Replace().
    However, I'm still getting error -21 (KErrAccessDenied).
    I also tried location which should not be protected, such as \Texts\ but the result is same.

    So far I've specified no capabilities, but emulator doesn't complain about missing capabilities in epocwind.out, I just get error -21.

    Any clue where application private files (e.g. settings) may be written?
    Thanks.

  2. #2
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Create / write file in Symbian 9.1 3RD - capability needed?

    It looks like you are specifying an invalid filename.

    Capability errors will generally be reported via KErrPermissionDenied.

    Does your SECURID in the MMP file match the speciifed SID in the path?

  3. #3
    Registered User
    Join Date
    Apr 2005
    Location
    Barcelona
    Posts
    1,678

    Re: Create / write file in Symbian 9.1 3RD - capability needed?

    How are you specifying the file name?

  4. #4
    Registered User
    Join Date
    Jul 2003
    Posts
    190

    Re: Create / write file in Symbian 9.1 3RD - capability needed?

    Ups, I tried to write file on Z: drive, which is supposed to be ROM.
    When using C:, all is working fine, I can write my private files and read non-protected files.

    Again Symbian's specialty to let developers testing apps in emulator on a ROM read-only drive, which is not simulation of reality, but let's learn to live with this.

    In older Symbian versions, I could run apps from emulated E: drive, now they run only from Z:.

  5. #5
    Registered User
    Join Date
    Dec 2008
    Posts
    2

    Re: Create / write file in Symbian 9.1 3RD - capability needed?

    Quote Originally Posted by mike.b View Post
    I'm trying to create a file in \private\<SID>\ using RFile::Replace().
    However, I'm still getting error -21 (KErrAccessDenied).
    I also tried location which should not be protected, such as \Texts\ but the result is same.

    So far I've specified no capabilities, but emulator doesn't complain about missing capabilities in epocwind.out, I just get error -21.

    Any clue where application private files (e.g. settings) may be written?
    Thanks.
    Hello MIC , I am Mobile software Repairist
    I have soulution of Your problem But ineed to know about ...
    HOW TO ACCESS IMEI AREA

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,673

    Re: Create / write file in Symbian 9.1 3RD - capability needed?

    Quote Originally Posted by shariq1-1 View Post
    Hello MIC , I am Mobile software Repairist
    I have soulution of Your problem But ineed to know about ...
    HOW TO ACCESS IMEI AREA
    You behave more like a "hacker wannabe". And that "I know the answer, but you help me first" is just childish. A "Mobile software Repairist" would already know how the IMEI is stored, and that it can not be modified from software.

Similar Threads

  1. Problem with FILETEXT in PKG file for S60 3rd Edition
    By horsten in forum Symbian Tools & SDKs
    Replies: 10
    Last Post: 2008-01-23, 11:01
  2. Tips on using NDS 1.1
    By mitts in forum Symbian Tools & SDKs
    Replies: 7
    Last Post: 2006-01-18, 16:07
  3. PKG file, SISAR & Symbian Signed
    By heuven in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2006-01-12, 09:16
  4. How to create mbm file?
    By qt_raip in forum Symbian Tools & SDKs
    Replies: 13
    Last Post: 2004-05-12, 11:07
  5. Steps to create SIS. How create .pkg file for petran?
    By BobbyFletcher in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2004-04-21, 18:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×