×

Discussion Board

Results 1 to 14 of 14
  1. #1
    Regular Contributor
    Join Date
    Oct 2007
    Location
    India
    Posts
    349

    Lightbulb [moved] SIS Intallation problem in Location Based Application

    Hi I am developing an application based on Location API. My target device is Nokia N95 3rd Edition FP1. For my application I am using Location Capability. I am signing my application from symbian signed also. But at the time of installation I am getting an error "required application access not granted".


    I am using this simple code from SDK Help....
    #include <lbs.h>
    ...
    // Init Connection
    RPositionServer server;
    RPositioner positioner;
    User::LeaveIfError(server.Connect());
    CleanupClosePushL(server);
    User::LeaveIfError(positioner.Open(server)); // use default positioning module
    CleanupClosePushL(positioner);
    // Specify Requestors
    _LIT(KCntPhone, "+358501234567");
    _LIT(KSrvName, "MyService");
    RRequestorStack stack;
    CRequestor* contact = CRequestor::NewLC(
    CRequestor::ERequestorContact,
    CRequestor::EFormatTelephone,
    KCntPhone);
    stack.Append(contact);
    CRequestor* service = CRequestor::NewLC(
    CRequestor::ERequestorService,
    CRequestor::EFormatApplication,
    KSrvName);
    stack.Append(service);
    User::LeaveIfError(positioner.SetRequestor(stack));
    // Issue a Location Request
    TRequestStatus status;
    TPositionInfo posInfo;
    positioner.NotifyPositionUpdate(posInfo, status);
    User::WaitForRequest(status);
    User::LeaveIfError(status.Int());
    // Analyze Results
    TPosition position;
    posInfo.GetPosition(position);
    // Issue a new Location Request
    positioner.NotifyPositionUpdate(posInfo, status);
    User::WaitForRequest(status);
    User::LeaveIfError(status.Int());
    // Cleanup
    stack.Reset();
    CleanupStack::PopAndDestroy(service);
    CleanupStack::PopAndDestroy(contact);
    CleanupStack::PopAndDestroy(&positioner); // this will call Close() method
    CleanupStack::PopAndDestroy(&server); // this will call Close() method


    Kindly waiting for my solution.
    Narendar:Chhattisargh:INDIA

  2. #2
    Registered User
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,078

    Re: SIS Intallation problem in Location Based Application

    Hi,

    it means your application is using api's that requires more capabilities , debug your application and enable logging to windout.out on emulator and check which capability you are missing.

    Regards,
    Mateen Maldar
    "Whatever the mind can conceive and believe, the mind can achieve"

  3. #3
    Regular Contributor
    Join Date
    Oct 2007
    Location
    India
    Posts
    349

    Smile Re: SIS Intallation problem in Location Based Application

    Most of the time I use directly device because of my machine is slow i.e. emulator starts very slow.
    So could you tell the the process to get missing capability on emulator?

    Regards,
    Narendar

  4. #4
    Regular Contributor
    Join Date
    Oct 2007
    Location
    India
    Posts
    349

    Smile Re: SIS Intallation problem in Location Based Application

    Now I am using ELFTRAN Command as following from command prompt on WindowsXP machine.

    elftran -dump s MyGPSApp.exe and then getting following output:
    .
    .
    .
    Secure ID:e0cd7a27
    Vendor ID:00000000
    Capabilities: 00000000 00028000
    ReadUserData
    Location
    .
    .
    But it there any way to find missing capability?
    The elftran command is giving me only used capability in my GPS Application.

    Regards,
    Narendar

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,567

    Re: SIS Intallation problem in Location Based Application

    The installer does not know about the real capabilities your code would need. All it does is checking if the capabilities listed in the .mmp file are covered by the signing. So make sure that you request the same set of capabilities for signing, which you have listed in the .mmp file.

  6. #6
    Regular Contributor
    Join Date
    Oct 2007
    Location
    India
    Posts
    349

    Question Re: SIS Intallation problem in Location Based Application

    I have mentioned only 2 Capabilities in MMP file i.e. LOCATION and ReadUserData.

    After creating sis file (with self generated key and cert) I send this file to Symbian Signed with my N95's IMEI No and shortly I'll get signed sis file in my mail. Then whenever I try to install this sis file in my device I get the following error.
    "required application access not granted"

    I am totally confused why I am getting this error. I know the basics of capability. There are 5 capability which are user grantable i.e.

    ReadUserData WriteUserData NetworkServices LocalServices UserEnvironment

    Other need Symbian Signed i.e. Location ReadDeviceData WriteDeviceData SwEvent and so on.

    I have use WriteDeviceData many times for my bluetooth on/off application and it worked successfully.

    So whay may be problem with Location capa...

    Please try to solve this problem.

    Kindly waiting....
    Narendar

  7. #7
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,567

    Re: SIS Intallation problem in Location Based Application

    You are mis-using signing: S60 3rd FP1 devices (or at least the N95) check all certificates present on a .sisx file - and because you have self-signed it, Location capability can not be granted.
    Solution: do not sign the .sis file prior to sending it for having Open-Signed Online.

  8. #8
    Regular Contributor
    Join Date
    Oct 2007
    Location
    India
    Posts
    349

    Exclamation Re: SIS Intallation problem in Location Based Application

    Not working... Let me explain again what I am doing actually.

    1) My device is based on Symbian OS 3rd Edition FP1 Nokia N95.
    2) I am using Hello World Application.
    3) It installing properly in device.
    4) After than I have inserted new code for Location for that I have just created a simple member function in AppUi and call it from HandleCommandL(). The name of the function is GetLatLong. Location related code is inside this function. Code I have already posted.
    5) I have used LBS.LIB, LBS.H & other required headers and LOCATION Capability in proper place.
    6) Then I create sis file using my self generated key and certificate.
    7) Then I send this file to SymbianSigned with my device's IMEI and also my email id.
    8) From there I get another SIS file.
    9) And whenever I install this sis file I get an error "Required application....."

    According to you [wizard_hu_] I have also send unsisgned sis file to SymbianSigned. It is also not wokring.
    Solution: do not sign the .sis file prior to sending it for having Open-Signed Online.
    But one time I have used WriteDeviceData capability for switching on/off bluetooth. at that time process was same and I was working for that capability.

    Locacation is UserGratable Capability or SymbianSigned Capability?

    Please let me know whay may be problem..

    Regards,
    Narendar

  9. #9
    Nokia Developer Moderator
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,347

    Re: SIS Intallation problem in Location Based Application

    As wizard_hu_ already said - you must submit to Open-Signed Online unsigned .sis file.

    Also note that "Location" is an Extended capability in S60 3rd ed. MR and FP1. From S60 3rd ed. FP2 onwards "Location" is a Basic capability.

  10. #10
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,567

    Re: SIS Intallation problem in Location Based Application

    Quote Originally Posted by narendar_discover View Post
    Locacation is UserGratable Capability or SymbianSigned Capability?
    You can check that in the documentation of the SDK, and the in the documentation available on http://www.symbiansigned.com too. It is not user grantable in case of S60 3rd FP1.

    If you have x.sis (or x.sisx), you can execute "signsis -o x.sisx" in order to check if it is signed and how. "signsis -u x.sisx y.sis" removes that signature and stores the result in y.sis. Then "signsis -o y.sis" should not show any signature.

  11. #11
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,567

    Re: SIS Intallation problem in Location Based Application

    By the way FP1: there is a tool called dumpsis.exe in epoc32\tools. You can try that too: "dumpsis -l x.sisx" appears to tell you if capabilities match with the signature or not.

  12. #12
    Regular Contributor
    Join Date
    Oct 2007
    Location
    India
    Posts
    349

    Smile Re: SIS Intallation problem in Location Based Application

    Oh Great!!!! Application has installed successfully.

    That means for SymbianSinged Online we need to send Unsigned SIS File?

    Kind Regards,
    Narendar

  13. #13
    Nokia Developer Moderator
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,347

    Re: SIS Intallation problem in Location Based Application

    Quote Originally Posted by narendar_discover View Post
    That means for SymbianSinged Online we need to send Unsigned SIS File?
    Yes. Check posts #7 and #9.

  14. #14
    Regular Contributor
    Join Date
    Oct 2007
    Location
    India
    Posts
    349

    Smile Re: [moved] SIS Intallation problem in Location Based Application

    Okay and Thanks for all communication.

    Regards,
    Narendar

Similar Threads

  1. Installation problem of CameraWrapper embedded sis file
    By djscorpion83 in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 1
    Last Post: 2009-08-20, 08:23
  2. [moved] Problem with starting application
    By paintstripper in forum Python
    Replies: 16
    Last Post: 2008-09-22, 19:44
  3. [moved] Problem with Access to SIM Card Application
    By ivoaurelio in forum Mobile Java General
    Replies: 1
    Last Post: 2008-09-19, 19:05
  4. [Moved] Help on developing Location Base Service Application
    By kai_buki in forum Mobile Java General
    Replies: 16
    Last Post: 2008-03-10, 10:34
  5. Location based Python Application
    By cjellwood in forum Python
    Replies: 3
    Last Post: 2007-06-02, 13:59

Posting Permissions

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