×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    12

    N85: DLL install error: unable to install a protected application from an untrusted

    I'm trying to install a dll using a self-signed cert. This work fine on an N95 but fails on the N85. I get the following error: "unable to install a protected application from an untrusted supplier". Even though I'm using an unprotected UID range and caps are only:
    CAPABILITY READUSERDATA WRITEUSERDATA

    Attached are the mmp and pkg files:

    MMP:
    Code:
    EXPORTUNFROZEN
    
    #if defined(__BROWSER_SDK)
    TARGET          MemMan_sdk.dll
    #else
    //#include <domain/osextensions/platform_paths.hrh>
    TARGET          XMemManager.dll
    #endif
    
    TARGETTYPE      dll
    
    //UID 0x1000008D 0x200226AC
    UID 0x1000008D 0xA000C227
    
    //MACRO OOM_LOGGING
    MACRO USE_FAST_MALLOC
    MACRO NOKIA_CHANGES
    
    //CAPABILITY READUSERDATA WRITEUSERDATA NETWORKSERVICES LOCALSERVICES USERENVIRONMENT
    CAPABILITY READUSERDATA WRITEUSERDATA
    
    VENDORID    1
    EPOCALLOWDLLDATA
    
    //deffile EABI\XMemManager.DEF
    
    #ifndef __BROWSER_SDK
    SYSTEMINCLUDE   \Epoc32\include
    #else
    SYSTEMINCLUDE   \Epoc32\include
    #endif
    SYSTEMINCLUDE \epoc32\include\libc
    USERINCLUDE     ..\Inc
    
    SOURCEPATH  ..\Src
    SOURCE MemoryManager.cpp
    SOURCE Allocator.cpp
    SOURCE SlabAllocator.cpp
    SOURCE RescueZone.cpp
    SOURCE StopScheduler.cpp
    SOURCE fast_malloc.cpp
    
    LIBRARY euser.lib
    DEBUGLIBRARY flogger.lib
    LIBRARY avkon.lib
    LIBRARY estlib.lib
    PKG:

    Code:
    ;Language - standard language definitions
    &EN
    
    ; standard SIS file header
    #{"XMemManager"},(0xA000C227),1,0,0
    
    ;Localised Vendor name
    %{"Vendor-EN"}
    
    ;Unique Vendor name
    :"Vendor"
    
    ;Supports Series 60 v 3.1
    [0x102032BE], 0, 0, 0, {"Series60ProductID"}
    
    ;Supports Series 60 v 5
    ;[0x1028315F], 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)\XMemManager.dll"		-"!:\sys\bin\XMemManager.dll"

  2. #2
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,348

    Re: N85: DLL install error: unable to install a protected application from an untrust

    As reffered here - Interpreting Platform Security Error Messages in S60 3rd Edition
    Message: Unable to install a protected application from an untrusted supplier
    Hint: If you use self-signed certificate, make sure that your application uses unprotected UID, i.e. 0xA0000000 - 0xAFFFFFFF. If you use protected UID (0x20000000 - 0x2FFFFFFF) or legacy UID (0x10000000 - 0x1FFFFFFF), you will get this message.
    I would suggest doing abld clean (& maybe abld reallyclean) for the project and then re-build your project and try to install it again.
    Some additional info: How to build an application in Commad Prompt

  3. #3
    Registered User
    Join Date
    Jan 2009
    Posts
    12

    Re: N85: DLL install error: unable to install a protected application from an untrust

    I've done a clean. And just to make extra sure I renamed the dll and got a new unprotected UID from the SymbianSecurity site that I used for both the mmp and pkg files. Same problem.

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

    Re: N85: DLL install error: unable to install a protected application from an untrust

    The VendorID cannot be set for self-signed binaries. Even for a certified package the value used by you is illegal, the Vendor ID must be allocated b Symbian in the 0x7??????? range.

    To solve your problem set VENDORID to 0 or remove the statement from the MMP file.

    Bookmark this link too: http://wiki.forum.nokia.com/index.ph...roubleshooting
    -- 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

  5. #5
    Registered User
    Join Date
    Jan 2009
    Posts
    12

    Re: N85: DLL install error: unable to install a protected application from an untrust

    The Vendor ID was the problem. But setting it to 0 didn't work. I had to remove it.

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

    Re: N85: DLL install error: unable to install a protected application from an untrust

    Probably just a cleanup issue. But anyway, it's good that the problem is now solved.
    -- 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

Similar Threads

  1. Replies: 8
    Last Post: 2009-01-20, 13:47
  2. Replies: 3
    Last Post: 2008-06-11, 14:34
  3. How to install a dll seperately?
    By hswlmark in forum Symbian
    Replies: 1
    Last Post: 2007-11-21, 04:14
  4. Can I install C++ application in "S60 SDKs for Symbian OS,for Java"?
    By vikas_khengare in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2007-10-03, 13:52
  5. what happens to TLS when DLL is unloaded?
    By rtillitt in forum Symbian
    Replies: 1
    Last Post: 2002-11-27, 12:11

Posting Permissions

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