×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    65

    Question Test ID: UNI-09 Fail

    Hi,

    I am testing my application for SYMBIAN signing test cases UNI-09.

    I have installed my application on Memory card and from my application saving some data on memory card only.Remove memory card from phone.

    Then i format the phone(*#7370 - soft reset). After inserting memory card back my application is unable to install on phone.

    But If in case i will not save any data from my application then i format the phone. Insert memory card back to phone my application works fine.

    Please help me to clear this test case.
    Thanks & Regards
    Ranjeet

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,740

    Re: Test ID: UNI-09 Fail

    Does "saving data" mean that you overwrite already existing data files (which are also specified in the installer)? Note that the stub .sis validates only your original files, if you modify any of them, the installation will definitely fail.

  3. #3
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    65

    Re: Test ID: UNI-09 Fail

    Hi wizard,

    my application creates some files(as my application provides user an option to save some data on phone) and also the files which i am passing with pkg file are getting modified when i run my appplication.

    can this create any problem in clearing UNI 09 test case???
    Thanks & Regards
    Ranjeet

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,740

    Re: Test ID: UNI-09 Fail

    Quote Originally Posted by ranjeet raj View Post
    also the files which i am passing with pkg file are getting modified when i run my appplication.

    can this create any problem in clearing UNI 09 test case???
    This is not just "creating any problem", this is the problem itself. The purpose of the stub .sis file is enforcing the integrity of the given application. If some of the files are changed, the integrity is violated, thus the installation is not possible, it is refused.
    I do not really know these checks and requirements, but one way could be having an "original" file (also included in your stub .sis), and having an other "mutable" instance modified and created (typically copied on first access - on a KErrNotFound perhaps) in runtime. This makes also possible to include a "Reset" feature in your application, which simply removes all runtime-created data, restoring the "factory" state.

  5. #5
    Regular Contributor
    Join Date
    Sep 2007
    Posts
    65

    Re: Test ID: UNI-09 Fail

    Hi wizard,
    Thank you very much 4 ur valuable information.

    how to apply "reset" feature in application.
    Cud u give me some sample application. itried to find i didn't get.
    Plz help in clearing this test case.
    Thanks & Regards
    Ranjeet

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

    Re: Test ID: UNI-09 Fail

    Quote Originally Posted by ranjeet raj View Post
    How to apply "reset" feature in application.
    It was only just a feature idea, so it has nothing to do with signing and test.

    Basically I was suggesting that you could have

    "e:\private\<your>\MyDataFile.org"

    (also referred in the .pkg file), but work with

    "e:\private\<your>\MyDataFile.dat":
    Code:
    _LIT(KMyDataFileName,"e:\\private\\<your>\\MyDataFile.dat");
    _LIT(KMyOrgDataFileName,"e:\\private\\<your>\\MyDataFile.org");
    if(file.Open(fs,KMyDataFileName,EFileWrite)!=KErrNone)
    {
        CFileMan *fileman=CFileMan::NewL(fs);
        CleanupStack::PushL(fileman);
        User::LeaveIfError(fileman.Copy(KMyOrgDataFileName,KMyDataFileName));
        CleanupStack::PopAndDestroy(); // fileman
        User::LeaveIfError(file.Open(fs,KMyDataFileName,EFileWrite));
    }
    And if you already have this code, you can simply add an "fs.Delete(KMyDataFileName);" anywhere to restore the default settings of your application. But it is just a possible feature, it does not affect signing.

Similar Threads

  1. some clarification needed on UNI - 09 test case
    By vinayakak in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 3
    Last Post: 2008-04-12, 21:54
  2. problem with lowmem test tool
    By chitransh_chetan in forum Symbian
    Replies: 1
    Last Post: 2005-12-01, 07:32
  3. problem with lowmem test tool
    By chitransh_chetan in forum Mobile Java General
    Replies: 0
    Last Post: 2005-09-23, 07:09
  4. About Dialog
    By lilesh in forum Symbian User Interface
    Replies: 2
    Last Post: 2005-05-30, 05:11
  5. Replies: 0
    Last Post: 2003-02-11, 04:31

Posting Permissions

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