| Reply | « Previous Thread | Next Thread » |
|
I have a Python Shell signed with:
Code:
LocalServices+Location+NetworkServices+PowerMgmt+ProtServ+ ReadDeviceData+ReadUserData+SurroundingsDD+SwEvent+TrustedUI+ UserEnvironment+WriteDeviceData+WriteUserData using location.gsm_location() doesn't generate KErrPermissionDenied but it does return None. Any suggestions? Thanks - Lindsay |
|
hi
are you using it on shell or in a script? Also mention your device. Regards |
|
Direct from the shell
|
|
hi again
you didn't mention device. I guess you are using in built gps. Have you fixed your gps first? |
|
Hi Blackpaw,
location.gsm_location() returns "None" if your phone is offline or if you run it in emulator enviroment. Which command gives you a KErrPermissionDenied? Tom
Last edited by TomStern : 2008-09-25 at 13:18.
|
|
Quote:
If Ensymble, let us know the command line, you used ? |
|
Signing the shell itself is not enough - You need to change the capability of EXE files inside the SIS archive. Use ensymble too for this.
Mikko Ohtamaa Twinapex Research http://www.twinapex.com |
|
Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
gaba88
Offline
Forum Nokia Champion
|
|
|
Quote:
just for clarification i in my N95 just signed the python shell with all capabilities and it is working fine i never used ensymble for the same purpose. Enjoy Pythoning Gaba88 Gargi Das- http://gargidas.blogsot.com Forum Nokia Python Wiki Learn Python at http://mobapps.org/PyS60 |
|
Thanks for all the replies everyone!
Its a N95, I signed the shell using ensymble and a developer key. I use the following batch file to sign it: Code:
python ensymble.py signsis --cert=DevCertRequest.cer --privkey=softlog.key --passphrase= --dllcaps=LocalServices+Location+NetworkServices+PowerMgmt+ProtServ+ReadDeviceData+ReadUserData+SurroundingsDD+SwEvent+TrustedUI+UserEnvironment+WriteDeviceData+WriteUserData %1 %1x Quote:
Code:
positioning.modules() Quote:
Thanks - Lindsay |
|
Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
gaba88
Offline
Forum Nokia Champion
|
|
Hi blackpaw
Fixing means before using the positioning module have you initialized the GPS in your phone. First make the GPS on and then use the positioning module. then i feel it will work. Enjoy Pythoning Gaba88 Gargi Das- http://gargidas.blogsot.com Forum Nokia Python Wiki Learn Python at http://mobapps.org/PyS60 |
|
Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
Online
Forum Nokia Champion
|
|
Lindsay, could you try this command when signing the Shell and see if it works?
Code:
python ensymble.py signsis --cert=DevCertRequest.cer --privkey=softlog.key --passphrase= --execaps=LocalServices+Location+NetworkServices+PowerMgmt+ProtServ+ReadDeviceData+ReadUserData+SurroundingsDD+SwEvent+TrustedUI+UserEnvironment+WriteDeviceData+WriteUserData --dllcaps=LocalServices+Location+NetworkServices+PowerMgmt+ProtServ+ReadDeviceData+ReadUserData+SurroundingsDD+SwEvent+TrustedUI+UserEnvironment+WriteDeviceData+WriteUserData %1 %1x |
|
Quote:
|
|
Quote:
miohtama or anyone: What does that mean ? If I take file PythonScriptShell_1_4_5_3rdEd_unsigned_testrange.SIS and simply upload it for All-Capabilities to SymbianSigned online it will NOT work ??? What else is needed ? Do I need to self-sign it locally with ensymble before uploading to SymbianSigned ??? I'm confused and most probably lost... |
|
Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
gaba88
Offline
Forum Nokia Champion
|
||
|
AFAIK miohtama means that signing the shell will it self not work and if you are making a sis of the script then you need to provide caps to that also separately. So that the binary inside the sis which is a EXE will get sufficient capabilities.
Quote:
Quote:
hope my replies were helpful. Enjoy Pythoning Gaba88 Gargi Das- http://gargidas.blogsot.com Forum Nokia Python Wiki Learn Python at http://mobapps.org/PyS60 |
|
Quote:
Of course, Gaba. Always helpful. Quote:
I undestand the Python interpreter comes with all capabilities supported, so that when you run an standalone applicaton signed with all-caps it will still run properly. Also when running from the shell, the shell must have the caps enabled (self-signing the unsigned_testrange version online or using the high_capas version) for the scripts to run properly. And that would be all. As for making a SIS from my application and enabling the caps I undestand py2sis is all that's needed. I'm using: Code:
ensymble py2sis --uid=0xE1234567 --icon=vs1.svg --appname="VsPat" --caps=LocalServices+Location+NetworkServices+PowerMgmt+ProtServ+ReadUserData+SurroundingsDD+SWEvent+UserEnvironment+WriteUserData+ReadDeviceData+TrustedUI+WriteDeviceData --shortcaption="VsPat." --caption="Application Name" --version=1.2.3 --verbose c:\MyApp Hope that's correct since that's what I've been doing. |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| [Announce] Open Signed Online automation tool | y.a.k | Python | 22 | 2008-10-16 20:01 |
| Symbian Signed for ISV | SymbWorks | Installation, Certification and Security | 5 | 2008-08-26 19:42 |
| 请关注 Symbian Signed 的新改变 | wotrust | Symbian | 5 | 2007-11-18 06:56 |
| Radically restructure Symbian Signed | KevinD | News, Announcements and Job Listings | 4 | 2007-10-22 21:56 |
| Blanket net access permission for signed midlets on 6600 / 6630 | dfun | Mobile Java Networking & Messaging & Security | 0 | 2006-04-21 10:47 |