×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 24
  1. #1
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    309

    Smile Problem with DLL function invocation in Nokia E65

    Hello, everybody,

    I met a strange problem that a caution "program cannot be executed due to the security" takes place when I use the user application to call the DLL in the mobile telephone Nokia E65.

    The user application and the DLL are signed with the "open signed online" before the installation on the mobile telephone. The source code of the user application is:

    //call the function in API (dll file)
    RLibrary dll_library;

    User::LeaveIfError(dll_library.Load(KTxtDr1));

    // Function at ordinal 1 creates new CPluginLoad
    TLibraryFunction entry = dll_library.Lookup(1);

    CPluginLoad *new_pluginload = (CPluginLoad*)entry();

    CleanupStack::PushL(new_pluginload);

    new_pluginload ->PluginLoad(driverObject, registryPath, deviceExtensionSize, flags, name, callback_functions);

    CleanupStack::PopAndDestroy();

    dll_library.Close();

    I don't know what the error is. Please help me

    Thank you very much

    liuxingyu

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: Problem with DLL function invocation in Nokia E65

    Check your capabilities:
    - Make sure that the user code has the capabilities it needs
    - Make sure that the .dll has at least the capabilities of the user code.
    If your code can be executed in the emulator, check epocwind.out (http://wiki.forum.nokia.com/index.php/Epocwind.out), search for platsec warnings in it.
    You can also experiment with the new tools in Carbide 1.3 (it has some special view/tool for making easier the hunt for platform security problems - I do not know exactly since I have not checked it yet).

  3. #3
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    309

    Re: Problem with DLL function invocation in Nokia E65

    Thank you for your reply,

    I've tried it out in the emulator, but no problem, DLL is called by the User applicaiton successfully.

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: Problem with DLL function invocation in Nokia E65

    Check epocwind.out.

  5. #5
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    309

    Smile Re: Problem with DLL function invocation in Nokia E65

    Hello,

    I've checked the epocwind.out, I find that PlatSec WARNING: Capability check would have failed - Process
    SNE_Wrapper[e2c520d1]0001 can't load PluginLoad.dll because the
    following capabilities are missing: ReadUserData

    what does that mean? I can't understand.

    please help me, thank you very much

    liuxingyu

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: Problem with DLL function invocation in Nokia E65

    what does that mean? I can't understand.
    Quote Originally Posted by liuxingyu_best View Post
    Process
    SNE_Wrapper[e2c520d1]0001 can't load PluginLoad.dll because the
    following capabilities are missing: ReadUserData
    means that the process "SNE_Wrapper" (I guess this is your application) can not load "PluginLoad.dll" (I guess this is your .dll), because PluginLoad.dll has not ReadUserData capability set.
    If you read any capability-related documentation, you will see that a process can not load a .dll with lesser capabilities.
    Quote Originally Posted by me
    - Make sure that the .dll has at least the capabilities of the user code.
    Otherwise it could happen that someone writes BunnyWithEvilInside.dll, certifies it for no capabilities at all, but when you load it in an application having NetworkServices capability, EvilInside pops out, and suddenly starts sending premium SMS-s and so on.

  7. #7
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    309

    Smile Re: Problem with DLL function invocation in Nokia E65

    Thanks a lot for your reply. But in Emulator, the "SNE_Wrapper" can really call the "PluginLoad.dll", and the executed results can also be displayed on the screen. If "SNE_Wrapper" cannot load the "PluginLoad.dll", how does it works?

    you say "PluginLoad.dll does not have ReadUserData capability set". What is the "ReadUserData"? is attribute or one function?

    I'm apologized for not knowing the details.

    Thank you very much

    liuxingyu

  8. #8
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: Problem with DLL function invocation in Nokia E65

    The emulator is an emulator. Its intended use is development. Thus according to its default settings it does not kill your application when something would fail on the real device, instead it provides you a platform security warning.
    If you want your application to die as it dies on the phone, visit Tools/Preferences of the emulator, click on the "Platform Security" tab, and mark "Perform capability checks". Then your application will not work neither in the emulator, the same way as it does not work on the real device.
    ReadUserData is a capability. You should read documentation on Forum Nokia (www.forum.nokia.com, Documentation/Symbian C++ on the left, "Security, Symbian Platform Security, Symbian Signed, and Access to Capabilities" for example), the SDK Help (search for "platform security" - you can include the quotes -, there will be many important hits, like "General Information about Symbian OS Platform Security", "How Does Platform Security Affect the Development Process?", "Implementing Platform Security for ISVs", and the hits starting with "Platform Security" of course - note that you can order the hits by name via clicking on Title).
    Platform security is something that actually exists, and you can not avoid it.
    About the ReadUserData capability: you can find a quick description of capabilities if you search for "Assigning Capabilities" in the SDK Help.

  9. #9
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    309

    Re: Problem with DLL function invocation in Nokia E65

    Thank you very much.

    I visit Tools/Preferences of the emulator, but it cannot be opend. A caution takes place: "Cannot start Ecmt Manager"

    what does it mean?

    Thank you

    liuxingyu

  10. #10
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    309

    Smile Re: Problem with DLL function invocation in Nokia E65

    Thanks a lot.
    Last edited by liuxingyu_best; 2009-01-06 at 11:27.

  11. #11
    Nokia Developer Moderator
    Join Date
    Oct 2006
    Location
    Finland
    Posts
    4,492

    Re: Problem with DLL function invocation in Nokia E65

    I visit Tools/Preferences of the emulator, but it cannot be opend. A caution takes place: "Cannot start Ecmt Manager"
    You need to install JRE.

    are they free?
    No you need to pay to get the publisher Id. Check this for details

    edit: check this too

  12. #12
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,336

    Re: Problem with DLL function invocation in Nokia E65

    Quote Originally Posted by liuxingyu_best View Post
    Thank you very much.

    I visit Tools/Preferences of the emulator, but it cannot be opend. A caution takes place: "Cannot start Ecmt Manager"

    what does it mean?

    Thank you

    liuxingyu
    See this link: http://discussion.forum.nokia.com/fo...ad.php?t=96937

    Kiran.
    Nokia Developer Wiki Moderation team

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

    Smile Re: Problem with DLL function invocation in Nokia E65

    Quote Originally Posted by liuxingyu_best View Post
    Hello,

    I met a new problem, I need the publisher ID and the private key for the request of certificate. But I don't know how to get it?

    are they free?

    Thank you very much

    liuxingyu
    As i can see from your posts that your application requires "ReadUserData" capability which falls under "User-Grantable" set of capabilities. In such case you can sign your application with Self-signed certificate. You may not need Publisher ID for that.

    Check this link regarding self-signing: How to sign a .Sis file with Self-Sign Certificate

    Kiran.
    Nokia Developer Wiki Moderation team

  14. #14
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,336

    Smile Re: Problem with DLL function invocation in Nokia E65

    Quote Originally Posted by Symbian_Neil View Post
    ...
    No you need to pay to get the publisher Id. Check this for details
    Symbiansigned has planned to stop using Verisign ACS Publisher ID from May 2008 and they have adopted new Certificate authority and i.e. TC Trustcenter. It is more cheaper than Verisign Publisher ID. So i would go with TC Trustcenter apparently.

    * TC TrustCenter Publisher ID
    * New Certificate Authority

    Please correct me if am wrong if there is any new update from symbiansigned in this regard.

    Kiran.
    Nokia Developer Wiki Moderation team

  15. #15
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: Problem with DLL function invocation in Nokia E65

    Before you dig too deep in signing howto-s, note that you have already signed your application somehow (perhaps with Carbide), otherwise you would not have succeeded in installing it on the device.

Similar Threads

  1. Infra-red capability
    By Symbian_Challenge_0412 in forum General Development Questions
    Replies: 1
    Last Post: 2005-08-16, 18:24
  2. Cannot compile SDK's examples for 7650 platform...
    By midletsoft in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2003-08-12, 19:11
  3. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46

Posting Permissions

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