CaptureKey security capability on S60 v3
| Thu, 2006-10-05 15:53 | |
|
Hello,
I am trying to use RWindowGroup::CaptureKey/CaptureKeyUpAndDowns to override the default menu application (the customer's request ). The application works fine on the emulator (Carbide C++, Symbian OS 9, Series 60 v3), however on the phone (E50) when pressing the menu key, the default menu application is launched. On the phone, CaptureKey/CaptureKeyUpAndDowns returns -46 (KErrPermissionDenied). The SDK help says this error is returned if the ws.ini file has the requested key protected. What is this ws.ini file. I've searched it with FExplorer/Y-Browser on both a Nokia 6600 phone and also on the E50 phone and no such file was found. Perhaps on v3, the file is actually on the phone but the file explorer could not find it due to security issues. I've also could not find it on the SDK root on the hard disk.Another source of the problem could be due to signing the application. I've used a Developer Certificate from Symbian Signed, which has rights for the SwEvent capability under which the CaptureKey/CaptureKeyUpAndDowns methods recide. However the same error (-46) is returned even when signing it with this certificate. So my question would be whether the problem is related to ws.ini file or to the signing of the application. Actually any information related you might have would be very helpful. Thanks. |
|






). The application works fine on the emulator (Carbide C++, Symbian OS 9, Series 60 v3), however on the phone (E50) when pressing the menu key, the default menu application is launched. On the phone, CaptureKey/CaptureKeyUpAndDowns returns -46 (KErrPermissionDenied). The SDK help says this error is returned if the ws.ini file has the requested key protected. What is this ws.ini file. I've searched it with FExplorer/Y-Browser on both a Nokia 6600 phone and also on the E50 phone and no such file was found. Perhaps on v3, the file is actually on the phone but the file explorer could not find it due to security issues. I've also could not find it on the SDK root on the hard disk.
Forum posts: 21
Thanks a lot.
Forum posts: 194
Signing just allows you to be able to install the software.
It doesn't matter what capabilies your certificate has got, if your program doesn't have them in the first place.
If you need SWEvent then your code has to be built with that, i.e. SWEvent has to be in the .mmp file.
Run on the emulator and then look in epocwind.out and see if you get a -46 in there. It'll tell you the reason.
Forum posts: 21
I didn't know I also had to add the needed capabilities in the mmp file. I did it and now it works fine.
Thanks.
Forum posts: 4
Thaks from my side too...
Its solved my problem.
-bytes