[SOLVED] Symbian security issues in Qt/QML app
-
wrote on 29 Jul 2011, 22:00 last edited by
hi guys,
I'm writing a Qt/Qml/SymbianC++ app for system tweaking...but I am facing a problem...
I am trying to create a new cenrep key in 0x200159ED repository, but Symbian won't let me :) CRepository::Create returns -46 (KErrPermissionDenied) and I can't understand why...
my app has 19 caps (ALL -TCB) and I can successfully modify values of existent keys in 0x200159ED repository...Get and Set works correctly on existent keys of the same repository...no permission denied.
I have tried using the Set function (which should create a new key in case the one you tried to set does not exist) and the Create function...
both returns -46 when I try to create a new key...
Does anybody have any idea? or maybe I should ask Forum Nokia?
Thanks in advance,
faenil -
wrote on 29 Jul 2011, 22:08 last edited by
If it's not Qt-specific, Forum Nokia would probably be your best bet.
-
wrote on 29 Jul 2011, 23:00 last edited by
well it could be Qt specific in the case dll libraries caps on Symbian are the problem :)
anyway, I have posted in Forum Nokia too now, thanks for the advice ;)
-
wrote on 30 Jul 2011, 13:39 last edited by
solved by myself ;)
turned out that when cap_wr is not specified after [Platsec] tag in the .txt cenrep file,
it defaults to alwaysfail.And that's why I was not able to create the new key ;)
Hope this will be useful to the people who will have the same problem :)
-
wrote on 30 Jul 2011, 21:07 last edited by
If you consider the issue solved, please change the thread's title so that it begins with [SOLVED]
-
wrote on 30 Jul 2011, 21:08 last edited by
done, thanks :)
3/6