×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Registered User
    Join Date
    Mar 2006
    Posts
    23

    capability scan result: need DEPENDENT capability

    Hi, i attempted to run my app on my phone, but it refuses to run with message "Unable To Execute file for Security reason". I am really confusing, RSocket is used in my app and dll, and i have also added CAPABILITY NetworkServices to both app and dll's mmp files. the following capability scanner result says DEPENDENT is requires.

    Code:
    ***Starting capability scan on Symbian project: dlluser
    
    Generating API Usage File...
    Retrieving project settings...
    Retrieving project headers...
    Retrieving funtions with capabilities...
    Retrieving function calls...
    Scanning sources for function calls: dlluserDocument.cpp
    Scanning sources for function calls: dlluserAppUi.cpp
    Scanning sources for function calls: dlluserApplication.cpp
    Scanning sources for function calls: dlluserAppView.cpp
    Scanning sources for function calls: dlluser.cpp
    Generating API List File...
    Executing Project Defined Capabilities...
    Executing Project Granted Capabilities...
    Generating Required Capabilities File...
    Updating project markers...
    Updating Platform Security View...
    Analysing results...
    Project [dlluser]
    -------------------------------
    Platform Security Scan Results
    
    * These capabilities were detected in your source code: 
     DEPENDENT**
    
    * These capabilities are defined in your project settings: 
     ReadUserData NetworkServices
    
    * You may need to add these capabilites to your project settings:
     DEPENDENT
    
    NOTE - Platform security analysis results:
     The platform security results are only an estimate of what capabilities your application requires. Always make sure to perform runtime checks of your code to ensure completeness.
    -------------------------------
    
    ** DEPENDENT capabilities indicates that particular APIs can have different capabilities depending on runtime context. It is not a defined capability.
    
    Total Scan Time: 58 sec
    Code:
    Severity and Description	Path	Resource	Location	Creation Time	Id
    Capability Scan: RSocket.Connect requires DEPENDENT	dlluser/src	dlluserAppUi.cpp	line 126	1226320715421	1411

  2. #2
    Registered User
    Join Date
    Mar 2006
    Posts
    23

    Re: capability scan result: need DEPENDENT capability

    i got in the SDK help file
    Why are DLL capabilities needed?
    DLL capabilities should not be regarded as “what a DLL is capable of doing,” but rather what environment it is trusted to work in. A DLL must have equal or greater capabilities than the loading process. Once loaded, a DLL runs at the capability level of the loading process. Therefore a DLL must have all capabilities required by all its client executables, even if the code within the DLL itself does not require some of these capabilities.




  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,671

    Re: capability scan result: need DEPENDENT capability

    If your code can be executed in the emulator, you may also want to check the logfile (http://wiki.forum.nokia.com/index.php/Epocwind.out).
    Since your project is apparently about .dll-s, also remember that a process can not load a .dll having less capabilities.

  4. #4
    Registered User
    Join Date
    May 2008
    Posts
    21

    Unhappy Re: capability scan result: need DEPENDENT capability

    Hi
    I am porting a application which was developed on s60 2nd fp3 on to s60 3rd(9.1v) , I need to find required capabilities for open signing.

    I am using carbide 1.3v express edition,“Capability Scanner on mmp” found disabled.

    I read capability docs & API found some required caps, but not sure.

    Is there any tool to scan them and tell, or any procedure to go ahead?

    Any further help appreiated!

    Regards,
    gangaraju

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

    Re: capability scan result: need DEPENDENT capability

    The capability scanner should be available in Carbide.c++ Express Edition too. Make sure that you are under a 3rd Edition build configuration and that the GT*.XML files are available in your SDK's \epoc32\data\capabilities directory.

    As for other tools, there's nothing better than the output in %temp%\epocwind.out
    -- 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

  6. #6
    Registered User
    Join Date
    May 2008
    Posts
    21

    Re: capability scan result: need DEPENDENT capability

    hi ltomuta,

    Thanks for the reply,

    I checked for GT&.XML file in my SDK,but not found.
    \epoc32\data\capabilities directory not exist in my sdk.
    could guide me where went wrong?

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

    Re: capability scan result: need DEPENDENT capability

    -- 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

  8. #8
    Registered User
    Join Date
    May 2008
    Posts
    21

    Re: capability scan result: need DEPENDENT capability

    Thanks for that link ltomuta,
    as mensioned in the post,I copied mensioned GT*.xml files to C:\Symbian\9.1\S60_3rd\Epoc32\Data\capabilities and restart the carbideC++,still I found disabled“Capability Scanner on MMP”.

    can i run it from commandline..??

    Any further help appreciated.

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

    Re: capability scan result: need DEPENDENT capability

    To begin with you have the wrong SDK installed S60 3rd Edition SDK was superceded by S60 3rd Edition SDK MR which brings a lot of fixes and improvements. You should install it before going further with your project.

    As for why the capability scanner is disabled I don't know, but it could be related to having the wrong SDK.
    -- 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

  10. #10
    Registered User
    Join Date
    May 2008
    Posts
    21

    Re: capability scan result: need DEPENDENT capability

    thanks ltomuta,

    I will try with proposed SDK.
    Last edited by gangaraju; 2008-11-13 at 04:23. Reason: as per member interests

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

    Re: capability scan result: need DEPENDENT capability

    I'm against taking DiBo discussion offline. Anything shared here could be used by all the readers while a private solution remains ... private. Also, private help can be obtained through the Technical Support service.

    I would also advice you to remove your email address from the post and use the Discussion Board's profile settings to enable email communication. That way you protect yourself from unsolicited emails.
    -- 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

  12. #12
    Registered User
    Join Date
    May 2008
    Posts
    21

    Re: capability scan result: need DEPENDENT capability

    Hi ltomuta,
    my sincere appologies for that.
    I go ahead as you suggested.
    thanks.

Similar Threads

  1. capability dependent
    By bsteeb@gmx.de in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 1
    Last Post: 2008-03-02, 20:20
  2. S60 2nd to 3rd/ PlatformSecurity / Capabilities
    By jarkoos in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 4
    Last Post: 2007-04-14, 14:08
  3. API capability requirements
    By mark_williams in forum Symbian
    Replies: 52
    Last Post: 2006-07-27, 09:45
  4. file transfer example
    By jachu19 in forum Bluetooth Technology
    Replies: 4
    Last Post: 2006-04-14, 09:45
  5. What is Illegal Capability
    By Roose in forum Symbian
    Replies: 2
    Last Post: 2006-03-09, 15:07

Posting Permissions

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