×

Discussion Board

Results 1 to 13 of 13
  1. #1
    Registered User
    Join Date
    Oct 2011
    Posts
    2

    Question Package x: denied 'mce::DeviceModeControl' -- origin '' does not allow it

    I'm having problems with the use of QtMobility.systeminfo 1.1 in a MeeGo project. For some reason I'm denied access to mce:eviceModeControl and mce::TKLockControl.

    Does anyone have any experience with this problem?

    Compile Output:
    aegis-installing x (from '')
    Package x: denied 'mce:eviceModeControl' -- origin '' does not allow it
    Package x: denied 'mce::TKLockControl' -- origin '' does not allow it
    Package x: denied 'mce:eviceModeControl' for '/opt/x/bin/x' -- origin '' does not allow it
    Package x: denied 'mce::TKLockControl' for '/opt/x/bin/x' -- origin '' does not allow it
    dpkg: dependency problems prevent configuration of x:
    x depends on libqt4-declarative (>= 4.7.4~git20110517); however:
    Version of libqt4-declarative on system is 4.7.4~git20110516-0maemo1+0m6.
    ...and so on...

    From what I understand, the aegis-file is correct (_aegis):
    Code:
    <!-- modified-checksum:f82f885aede01d49b7b757b88d18f1ed -->
    <aegis>
    	<request policy="add">
    		<!-- Application uses QtDeclarative module. -->
    
    		<!-- QtMobility::QMessageManager::QMessageManager -->
    		<!-- QtMobility::QMessageService::send -->
    		<!-- import QtMobility.systeminfo 1.1 -->
    		<credential name="Cellular" />
    
    		<!-- QtMobility::QMessageManager::QMessageManager -->
    		<!-- QtMobility::QMessageService::send -->
    		<credential name="TrackerReadAccess" />
    
    		<!-- QtMobility::QMessageManager::QMessageManager -->
    		<credential name="TrackerWriteAccess" />
    
    		<!-- import QtMobility.systeminfo 1.1 -->
    		<credential name="mce::DeviceModeControl" />
    		<credential name="mce::TKLockControl" />
    
    		<for path="/opt/x/bin/x" />
    	</request>
    </aegis>

  2. #2
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: Package x: denied 'mce::DeviceModeControl' -- origin '' does not allow it

    Hi,
    Yesterday I faced your same problem on my N9.
    It's a policy problem and maybe it happens only on PR 1.1 devices.
    It looks that the new policy is more restrictive.

    Here you can see TKLockControl is missing.
    home/developer $ accli -I | grep -i TKLockControl

    I will inform MeeGo security people about this issue and I let you know soon.

  3. #3
    Registered User
    Join Date
    Oct 2011
    Posts
    2

    Re: Package x: denied 'mce::DeviceModeControl' -- origin '' does not allow it

    I guess you're right. I'm testing on a N950 PR 1.1 device, which does not seem very compliant...

    Unfortunately I won't be able to test this on another device until next week. And the simulator is not very helpful either.

    Thanks for the help.

  4. #4
    Registered User
    Join Date
    Apr 2009
    Posts
    506

    Re: Package x: denied 'mce::DeviceModeControl' -- origin '' does not allow it

    Quote Originally Posted by gnuton View Post
    Hi,
    Yesterday I faced your same problem on my N9.
    It's a policy problem and maybe it happens only on PR 1.1 devices.
    It looks that the new policy is more restrictive.
    .
    I saw the problem on any n950 FW starting from beta1
    aslo, since its happens on compile time, the problem probably not in eagis on device, but in Madde
    Symbian & Qt developer. http://vladest.org

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

    Re: Package x: denied 'mce::DeviceModeControl' -- origin '' does not allow it

    Hi,
    Is there are any news on this?
    I faced with the same problem on my N950 with PR 1.1.
    I've always get "Package x: denied 'mce::DeviceModeControl' -- origin '' does not allow it" with the "mce::DeviceModeControl" credential and with many others.
    Is there any way to fix it?

  6. #6
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: Package x: denied 'mce::DeviceModeControl' -- origin '' does not allow it

    It looks TKLockControl is not grant to 3rd party developers.
    https://harmattan-bugs.nokia.com/show_bug.cgi?id=114

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

    Re: Package x: denied 'mce::DeviceModeControl' -- origin '' does not allow it

    Unfortunately problem appears not only with TKLockControl credential. But with many others also, e.g. mce::DeviceModeControl, etc.
    For example, almost all functions of QmSystem2 Library (which are required aegis credentials) are totally useless, because we simply can't use it...
    Last edited by A.A.M.; 2011-11-28 at 13:20.

  8. #8
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: Package x: denied 'mce::DeviceModeControl' -- origin '' does not allow it

    you are right,
    I've contacted MeeGo team and there is a discussion going on.

    It looks that part of QMSystem doc pages will be removed from the public website.
    The discussion is not over and I'm trying to convince them to give us less strict policies.

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

    Re: Package x: denied 'mce::DeviceModeControl' -- origin '' does not allow it

    Thank you and I hope that you convince the MeeGo team to give us more API.
    Keep us informed please.

  10. #10
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: Package x: denied 'mce::DeviceModeControl' -- origin '' does not allow it

    Sure I keep you updated.
    BTW in the meanwhile, could you please strike out the tokens which don't work for you in the following wiki page?
    http://www.developer.nokia.com/Commu...ecurity_Tokens

    To strike out text just add <del> </del> tags.

    Thanks

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

    Re: Package x: denied 'mce::DeviceModeControl' -- origin '' does not allow it

    I've checked "MeeGo 1.2 Harmattan Security Tokens" article - from 17 described tokens: 2 "credential is not defined" & 7 are "denied". Nokia N950 with PR 1.1 (v2.2011.39-5).
    Package x: denied 'mce::CallStateControl' -- origin '' does not allow it
    Package x: denied 'mce::LEDControl' -- origin '' does not allow it
    Package x: denied 'timed::TimeControl' -- origin '' does not allow it
    Package x: denied 'mce::DeviceModeControl' -- origin '' does not allow it
    Package x: denied 'dsme::DeviceStateControl' -- origin '' does not allow it
    Package x: denied 'mce::TKLockControl' -- origin '' does not allow it
    Package x: request 'relevance::RelevanceAllContentTypes' ignored -- credential is not defined
    Package x: denied 'smartsearch::RelevanceAllContentTypes' -- origin '' does not allow it
    Package x: request 'keychain-access' ignored -- credential is not defined
    Package x: denied 'mce::CallStateControl' for '/opt/x/bin/x' -- origin '' does not allow it
    Package x: denied 'mce::LEDControl' for '/opt/x/bin/x' -- origin '' does not allow it
    Package x: denied 'timed::TimeControl' for '/opt/x/bin/x' -- origin '' does not allow it
    Package x: denied 'mce::DeviceModeControl' for '/opt/x/bin/x' -- origin '' does not allow it
    Package x: denied 'dsme::DeviceStateControl' for '/opt/x/bin/x' -- origin '' does not allow it
    Package x: denied 'mce::TKLockControl' for '/opt/x/bin/x' -- origin '' does not allow it
    Package x: denied 'smartsearch::RelevanceAllContentTypes' for '/opt/x/bin/x' -- origin '' does not allow it
    I've updated the article in wiki in accordance with the results of testing on the device.
    Last edited by A.A.M.; 2011-11-28 at 17:05. Reason: added comment about the article update

  12. #12
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: Package x: denied 'mce::DeviceModeControl' -- origin '' does not allow it

    Hi,
    Thanks for updating the wiki article. This morning I contacted again the people accountable for this but and I showed them the wiki page.
    So far I've not received answer.

  13. #13
    Super Contributor
    Join Date
    Mar 2009
    Posts
    1,024

    Re: Package x: denied 'mce::DeviceModeControl' -- origin '' does not allow it

    Hi,
    Thanks for updating the wiki article. This morning I contacted again the people accountable for this but and I showed them the wiki page.
    So far I've not received any answer.

Similar Threads

  1. Is there a way to know the origin of a RHTTPTransaction?
    By princesse_sahara in forum Symbian
    Replies: 8
    Last Post: 2008-12-10, 15:49
  2. Tracking an sms origin/destination
    By Montag74 in forum General Messaging
    Replies: 1
    Last Post: 2007-05-31, 14:32
  3. Accesing to the Origin tree (folders)
    By trocolus in forum Symbian
    Replies: 1
    Last Post: 2007-04-25, 03:07
  4. WAP Gateway and Origin Server (session)
    By Nokia_Archived in forum WAP Servers
    Replies: 1
    Last Post: 2002-05-20, 12:56
  5. Recognising the origin of an incoming call
    By cl_jp in forum Symbian
    Replies: 1
    Last Post: 2001-12-03, 20:02

Posting Permissions

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