×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    53

    application wont load on cellphone

    hey,
    we made a sis file of our application and two sis files got created.one withe extension .sis and the other with .sisx.We loaded both the sis files on the cell phone and we tried installing the application and it gave a certification error.We had chosen the option of selfsign while creating the sis file.we also tried loading another application in the same manner and it installed in the cell phone only for 75% and said unable to install..can neone help us to load the application and use it on the cell phone?we tried self signing n not signing option but nothing works..
    we r using the s60 3rd edition and nokia n73.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: application wont load on cellphone

    Did you develop the sis file your self, or is it somebody else's Sis file ?

    If it is yours, then what are the capabilities for the executable's inside the Sis ?
    Can you paste you pkg file in here, it might help a bit.

  3. #3
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    53

    Re: application wont load on cellphone

    ; ass.pkg
    ; This is an auto-generated PKG file by Carbide.
    ; This file uses variables specific to Carbide builds that will not work
    ; on command-line builds. If you want to use this generated PKG file from the
    ; command-line tools you will need to modify the variables with the appropriate
    ; values: $(EPOCROOT), $(PLATFORM), $(TARGET)
    ; Also, the resource file entries should be changed to match the language
    ; used in the build. For example, if building for LANGUAGE_01, change the file
    ; extensions .rsc to .r01.
    ;
    ;Language - standard language definitions
    &EN

    ; standard SIS file header
    #{"ass"},(0xEA68AB0A),1,0,0

    ;Localised Vendor name
    %{"Vendor-EN"}

    ;Unique Vendor name
    :"Vendor"

    ;Supports Series 60 v 3.0
    [0x101F7961], 0, 0, 0, {"Series60ProductID"}

    ;Files to install
    ;You should change the source paths to match that of your environment
    ;<source> <destination>
    "$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\ass.exe" -"!:\sys\bin\ass.exe"
    "$(EPOCROOT)Epoc32\data\z\resource\apps\ass.r01" -"!:\resource\apps\ass.r01"
    "$(EPOCROOT)Epoc32\data\z\private\10003a3f\apps\ass_reg.r01" -"!:\private\10003a3f\import\apps\ass_reg.r01"
    "$(EPOCROOT)Epoc32\release\winscw\udeb\z\resource\apps\ass_aif.mif" -"!:\resource\apps\ass_aif.mif"
    "$(EPOCROOT)epoc32\data\z\resource\apps\ass.mbm" -"!:\resource\apps\ass.mbm"
    ; Add any installation notes if applicable
    ;"ass.txt" -"!:\private\0xEA68AB0A\ass.txt"


    This is our pkg file...we made the sis files ourselves n tried loading the sis file tht got made.and what do you mean by capabilities for the executables inside our sis files?

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: application wont load on cellphone

    try changing the ";"ass.txt" -"!:\private\0xEA68AB0A\ass.txt"" line to ";"ass.txt" -"!:\private\EA68AB0A\ass.txt""

    For the capability questions, you should indeed read the platform security documentations, and see what capabilities you have defined in your mmp file.

  5. #5
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    53

    Re: application wont load on cellphone

    we tried what you told us to do and it still gives a cerification error....

  6. #6
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: application wont load on cellphone

    And the capabilities were ?

  7. #7
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    53

    Re: application wont load on cellphone

    our .mmp file doesnt include any capabilities.. our application is a basic expense manager application that only involves database interaction.. we require only basic capabilities.. but how should we include them?


    this is our .mmp file


    TARGET testapp.exe
    UID 0x100039CE 0xE71BE1DC
    VENDORID 0
    TARGETTYPE exe
    EPOCSTACKSIZE 0x5000
    EPOCHEAPSIZE 0x100000 0x300000
    CAPABILITY LocalServices
    UserEnvironment
    NetworkServices
    ReadUserData
    WriteUserData


    SYSTEMINCLUDE \epoc32\include \epoc32\include\variant \epoc32\include\ecom
    USERINCLUDE ..\inc ..\data

    SOURCEPATH ..\data
    START RESOURCE testapp.rss
    HEADER
    TARGETPATH resource\apps
    END //RESOURCE

    START RESOURCE testapp_reg.rss
    TARGETPATH \private\10003a3f\apps
    END //RESOURCE

    LIBRARY euser.lib apparc.lib cone.lib eikcore.lib avkon.lib
    LIBRARY commonengine.lib efsrv.lib estor.lib eikcoctl.lib eikdlg.lib
    LIBRARY eikctl.lib bafl.lib fbscli.lib aknnotify.lib aknicon.lib
    LIBRARY etext.lib gdi.lib egul.lib insock.lib
    LIBRARY ecom.lib InetProtUtil.lib http.lib esock.lib

    LANG 01

    START BITMAP testapp.mbm
    HEADER
    TARGETPATH \resource\apps
    SOURCEPATH ..\gfx
    SOURCE c12,1 list_icon.bmp list_icon_mask.bmp
    END

    SOURCEPATH ..\src

    #ifdef ENABLE_ABIV2_MODE
    DEBUGGABLE_UDEBONLY
    #endif

    SOURCE testappContainer.cpp TestappContainerView.cpp testappAppUi.cpp testappApplication.cpp testappDocument.cpp TestappContainer2View.cpp testappContainer2.cpp

  8. #8
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: application wont load on cellphone

    well it more or less looks like a signing problem then.

    the sisx file is created when you build from carbide for the GCCE release ?

    this sisx should be installable.. is your phone date correct ?
    Amit Kankani
    Nokia Developer Champion

  9. #9
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    53

    Re: application wont load on cellphone

    we'd used the phone debug ARMV5 configuration.. n now tried the GCCE configuration.. yet nothing.. it still does the same thing.. starts installation.. installs about 75% n then says "unable to install"..

    wht about SECUREID? wht is it exactly? how to access tht?

  10. #10
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: application wont load on cellphone

    For most of the time you can forget about secureid - and if you are still interested, you can search for it in the SDK Help.
    After reading your most recent posts it is unclear to me if you get an "Unable to install" or some error message about the certificate?
    Have you seen http://wiki.forum.nokia.com/index.ph...roubleshooting ?

  11. #11
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    53

    Unhappy Re: application wont load on cellphone

    i am getting the 'unable to install' message for the .sisx file that carbide generated and a 'certificate error' message for the .sis file.

    i went thru the emulator help and found the command prompt commands that can be used to self sign the sis files. i used the makekeys command like this:
    makekeys -cert -password test -len 2048 -dname "CN=Test User OU=Study OR=SP CO=IN EM=joteddy123@yahoo.in" testkey.key testcert.cer

    this worked and the testkey.key and testcert.cer files were generated. but then i used signsis command like this:
    signsis testapp.sis E:\BE\Symbian\Carbide\workspace\testapp\sis\testcert.cer E:\BE\Symbian\Carbide\workspace\testapp\sis\testkey.key

    then i got an error saying:
    encryption error, cannot read testkey.key

    the path specified is correct and the key is present in the folder. yet i got the error. what should i try then? plz help!

  12. #12
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: application wont load on cellphone

    try this command:

    signsis testapp.sis testapp.sisx E:\BE\Symbian\Carbide\workspace\testapp\sis\testcert.cer E:\BE\Symbian\Carbide\workspace\testapp\sis\testkey.key

    and it should work ....
    also make sure you don't have any password for your certificate, else add that password as the last argument
    Amit Kankani
    Nokia Developer Champion

  13. #13
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,344

    Re: application wont load on cellphone

    Check this for visual representation: How to sign a .Sis file with Self-Sign Certificate
    Nokia Developer Wiki Moderation team

  14. #14
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: application wont load on cellphone

    Quote Originally Posted by joteddy123 View Post
    i am getting the 'unable to install' message for the .sisx file that carbide generated and a 'certificate error' message for the .sis file.

    i went thru the emulator help and found the command prompt commands that can be used to self sign the sis files. i used the makekeys command like this:
    makekeys -cert -password test -len 2048 -dname "CN=Test User OU=Study OR=SP CO=IN EM=joteddy123@yahoo.in" testkey.key testcert.cer

    this worked and the testkey.key and testcert.cer files were generated. but then i used signsis command like this:
    signsis testapp.sis E:\BE\Symbian\Carbide\workspace\testapp\sis\testcert.cer E:\BE\Symbian\Carbide\workspace\testapp\sis\testkey.key

    then i got an error saying:
    encryption error, cannot read testkey.key

    the path specified is correct and the key is present in the folder. yet i got the error. what should i try then? plz help!
    Please think twice and ask the right question if you want to be helped!

    Carbide.c++ generates two SIS files, one is *.sis and it is the unsigned version of the installer package while the signed version is named *.sisx.
    It is absolutely ok for the unsigned *.sis file to give you "certificate error" as signing is mandatory. Don't even attempt to install an unsigned SIS. Your problem is that the other SIS file, the signed one, fails to install due to an "Unable to install" error.

    Now, Carbide.c++ signs the sis file by calling signsis with the correct parametes as specified in the build configuration. In your case it will sign the sis file with a self-signed certificate.

    It is pointles for you to attemp to sign the sis file yourself, there is nothing you can do better than what Carbide.c++ does. You should forget about the signing issue and focus on the content of the package, as the certificate check was passed, the error ocurs when the content is copied to the file system.

    Thus you would find that the UID3 of your application is 0xE71BE1DC and that is by default also the SID of that binary. It is this SID that dictates the private directory of your application so when you attempt to install a file in your private directory it should go to !:\private\E71BE1DC and not to -"!:\private\EA68AB0A

    This later UID, 0xEA68AB0A is just the package UID (pUID), it does not have any security implication but just identifies the package so that the Software Installer knows what package to update the next time you install a new version of this SIS file.

    Also, I would not be surprised if your application has only the LocalServices capability, all the others are on another line so I'm afraid they will be ignored by the toolchain. You can verify this on the binary itself or play it safe and place all the capabilities on the same line in the MMP.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  15. #15
    Regular Contributor
    Join Date
    Feb 2009
    Posts
    53

    Unhappy Re: application wont load on cellphone

    hello,
    thank you all for the help. i have tried to incorporate the changes as suggested, but still the application doesnt install on my n73. the .sisx file still gives the "unable to install" error. can anybody pls go thru the .mmp & .pkg files and tell if anything is wrong?

    the application's name is: testapp
    the application's uid is: 0xEF7AF0A2

    here is the application's .mmp file:

    Code:
    TARGET			testapp.exe
    UID			   0x10003A3F 0xEF7AF0A2
    VENDORID	  	  0
    TARGETTYPE		exe
    EPOCSTACKSIZE	 0x5000
    EPOCHEAPSIZE 0x100000 0x300000
    CAPABILITY LocalServices UserEnvironment NetworkServices ReadUserData WriteUserData 
    
    SYSTEMINCLUDE \epoc32\include \epoc32\include\variant \epoc32\include\ecom
    USERINCLUDE	   ..\inc ..\data
    
    SOURCEPATH		..\data
    START RESOURCE	testapp.rss
    HEADER
    TARGETPATH resource\apps
    END //RESOURCE
    
    START RESOURCE	testapp_reg.rss
    TARGETPATH 	  \private\EF7AF0A2\apps
    END //RESOURCE
    
    LIBRARY			euser.lib apparc.lib cone.lib eikcore.lib avkon.lib
    LIBRARY			commonengine.lib efsrv.lib estor.lib eikcoctl.lib eikdlg.lib 
    LIBRARY			eikctl.lib bafl.lib fbscli.lib aknnotify.lib aknicon.lib
    LIBRARY			etext.lib gdi.lib egul.lib insock.lib
    LIBRARY			ecom.lib InetProtUtil.lib http.lib esock.lib
    
    LANG 				01
    
    START BITMAP	testapp.mbm
    HEADER
    TARGETPATH		\resource\apps
    SOURCEPATH		..\gfx
    SOURCE	c12,1	list_icon.bmp list_icon_mask.bmp
    END
    
    SOURCEPATH		..\src
    
    #ifdef ENABLE_ABIV2_MODE
    DEBUGGABLE_UDEBONLY
    #endif
    
    SOURCE TestappContainerView.cpp testappContainer.cpp testappDocument.cpp testappApplication.cpp testappAppUi.cpp TestappContainer2View.cpp testappContainer2.cpp

    here is the application's .pkg file:

    Code:
    ; testapp.pkg
    ; This is an auto-generated PKG file by Carbide.
    ; This file uses variables specific to Carbide builds that will not work
    ; on command-line builds. If you want to use this generated PKG file from the
    ; command-line tools you will need to modify the variables with the appropriate
    ; values: $(EPOCROOT), $(PLATFORM), $(TARGET)
    ; Also, the resource file entries should be changed to match the language
    ; used in the build. For example, if building for LANGUAGE_01, change the file
    ; extensions .rsc to .r01.
    ;
    ;Language - standard language definitions
    &EN
    
    ; standard SIS file header
    #{"testapp"},(0xEF7AF0A2),1,0,0
    
    ;Localised Vendor name
    %{"Vendor-EN"}
    
    ;Unique Vendor name
    :"Vendor"
    
    ;Supports Series 60 v 3.0
    [0x101F7961], 0, 0, 0, {"0x200005FB"}
    
    ;Files to install
    ;You should change the source paths to match that of your environment
    ;<source> <destination>
    "$(EPOCROOT)Epoc32\release\winscw\udeb\testapp.exe"		-"!:\sys\bin\testapp.exe"
    "$(EPOCROOT)Epoc32\data\z\resource\apps\testapp.r01"		-"!:\resource\apps\testapp.r01"
    "$(EPOCROOT)Epoc32\data\z\private\10003a3f\apps\testapp_reg.r01"	-"!:\private\EF7AF0A2\import\apps\testapp_reg.r01"
    "$(EPOCROOT)Epoc32\release\winscw\udeb\z\resource\apps\testapp_aif.mif" -"!:\resource\apps\testapp_aif.mif"
    "$(EPOCROOT)Epoc32\release\winscw\udeb\z\resource\apps\testapp.mbm" -"!:\resource\apps\testapp.mbm"
    ; Add any installation notes if applicable
    ;"testapp.txt"					  -"!:\private\EF7AF0A2\testapp.txt"
    Last edited by ltomuta; 2009-04-07 at 14:16. Reason: Added [code] [/code] tags. Added color highlights

Similar Threads

  1. Replies: 5
    Last Post: 2010-02-11, 04:41
  2. iPhone Blogger Blog Creation Application
    By semaphore10 in forum News and Announcements
    Replies: 4
    Last Post: 2009-10-06, 08:49
  3. image full screen
    By Morbidick in forum Mobile Java General
    Replies: 8
    Last Post: 2008-12-04, 04:16
  4. J2ME application download install workflow
    By ps_j2me in forum Mobile Java General
    Replies: 1
    Last Post: 2008-10-19, 05:25
  5. How to load application in N80?
    By shiloliu in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2006-08-09, 11:19

Posting Permissions

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