Discussion Board

Results 1 to 6 of 6
  1. #1
    Hi every one,
    while developing a Qt application -for Meego N950 device - that uses GPS to get current position coordinates i got this error in the application output window:

    DBus error:
    org.freedesktop.DBus.Error.AccessDenied
    Rejected send message, 2 matched rules; type="method_call", sender=":1.155" (......etc) interface="com.nokia.positioningd.client" member="registerListener" error name="(unset)" requested_reply=0 destination="com.nokia.positioningd.client" (uid=29999 pid=850 comm="/usr/bin/positioningd "))


    after some investigation it turn out that using GPS needs what so called special credential to be added to the manifest file:
    <request>
    <credential name="Location" />
    ...

    the problem is that after creating that manifest file manually i get those errors related to that manifest file in the compile output window :

    aegis-manifest: No checksum found in 'myapp.aegis'.
    aegis-manifest: The manifest file was most likely not generated by this tool.
    aegis-manifest: This file will be placed to the resulting archive as-is.
    aegis-manifest: Run 'aegis-manifest -f' to force overwrite.


    First of all can anyone tell me what is that tool and how to use it ?
    secondly can anyone tell me how to run 'aegis-manifest -f' to force overwrite?

  2. #2
    Nokia Developer Moderator achipa's Avatar
    Join Date
    Oct 2009
    Location
    Finland
    Posts
    327
    Where did you create that manifest file ? If the checksum is missing then there is something going wrong - if the manifest is in the right place, it should be generated automaticlly (you most definitely should not go the way of aegis-manifest -f)

  3. #3
    Thanks for your kind replay.
    you are right ,the file should be created automatically so i deleted the file that i had created .
    the automatically created file:

    <aegis>
    <request policy="add">
    <!-- Application accesses DBus libraries directly.
    Entries for these calls may need to be added manually. -->

    <!-- /usr/lib/libQtLocation.so.1:_ZN10QtMobility22QGeoPositionInfoSource19createDefaultSourceEP7QObject -->
    <!-- /usr/lib/libQtLocation.so.1:_ZNK10QtMobility14QGeoCoordinate8latitudeEv -->
    <!-- /usr/lib/libQtLocation.so.1:_ZNK10QtMobility14QGeoCoordinate9longitudeEv -->
    <credential name="Location" />

    <for path="/opt/Myapp/bin/Myapp" />
    </request>
    </aegis>


    the file was automatically created in the debian folder, but still have the same error messages

    DBus error:
    org.freedesktop.DBus.Error.AccessDenied
    Rejected send message, 2 matched rules; type="method_call", sender=":1.275" (uid=29999 pid=8257 comm="/opt/Myapp/bin/Myapp") interface="com.nokia.positioningd.client" member="configSession" error name="(unset)" requested_reply=0 destination="com.nokia.positioningd.client" (uid=29999 pid=850 comm="/usr/bin/positioningd ")):


    i noticed that the same error message is repeated but this section of error differs : member="registerListener"
    member="latestPosition" -when i try to get the last known position-
    member="registerListener"

  4. #4
    Nokia Developer Moderator gnuton's Avatar
    Join Date
    Mar 2009
    Posts
    1,024
    Hi,
    Qt Mobility Location requires "TrackerReadAccess" and "TrackerWriteAccess" tokens, in addition to "Location", to work.
    Try to add those tokens to your manifest file and let us know if it worked for you.

  5. #5
    Hi everyone,
    thanks for your replays.
    i added "TrackerReadAccess" and "TrackerWriteAccess" tokens to the manifest file and i got the same D bus errors in output window pluse those in compile window due to manual change in the manifest file:

    aegis-manifest: No checksum match in 'Myapp.aegis'.
    aegis-manifest: The manifest contains manual edits to generated contents.
    aegis-manifest: This file will be placed to the resulting archive as-is.
    aegis-manifest: Run 'aegis-manifest -f' to force overwrite

  6. #6
    Nokia Developer Moderator gnuton's Avatar
    Join Date
    Mar 2009
    Posts
    1,024
    Mmmm.. it maybe need <credential name="GRP::metadata-users" /> in addition to
    <credential name="Location" />
    <credential name="TrackerReadAccess" />
    <credential name="TrackerWriteAccess" />

Similar Threads

  1. Http resources protected with basic authentication
    By yabune in forum Symbian Web Runtime
    Replies: 6
    Last Post: 2011-09-14, 14:41
  2. How to obtain permission on a device to access resources like browser and phone book
    By cryptyritu in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2010-08-09, 18:54
  3. how to create Access pointer which is protected?
    By lmyuanhang in forum Symbian C++
    Replies: 0
    Last Post: 2009-10-13, 04:40
  4. Device cannot find the Manifest in JAR file
    By Rambajzek in forum Mobile Java General
    Replies: 3
    Last Post: 2008-09-16, 16:34
  5. WTK 2.0 won't create jad&manifest files, moreover deletes existing ones..
    By urbandebugger in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2004-03-01, 17:51

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved