[moved] SIS Intallation problem in Location Based Application
Hi I am developing an application based on [B]Location API[/B]. My target device is [B]Nokia N95 3rd Edition FP1[/B]. For my application I am using Location Capability. I am signing my application from [B]symbian signed[/B] also. But at the time of installation I am getting an error [B][COLOR="Red"]"required application access not granted"[/COLOR][/B].
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
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
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
Re: SIS Intallation problem in Location Based Application
Now I am using [B]ELFTRAN Command[/B] as following from command prompt on WindowsXP machine.
[QUOTE][B]elftran -dump s MyGPSApp.exe[/B] and then getting following output:
.
.
.
Secure ID:e0cd7a27
Vendor ID:00000000
Capabilities: 00000000 00028000
ReadUserData
Location
.
.
[/QUOTE]
But it there any way to find missing capability?
The elftran command is giving me only used capability in my GPS Application.
Regards,
Narendar
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.
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.
[B]"required application access not granted"[/B]
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
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.
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.
[QUOTE]Solution: do not sign the .sis file prior to sending it for having Open-Signed Online. [/QUOTE]
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
Re: SIS Intallation problem in Location Based Application
As [B]wizard_hu_[/B] 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.
Re: SIS Intallation problem in Location Based Application
[QUOTE=narendar_discover;640201]Locacation is UserGratable Capability or SymbianSigned Capability?[/QUOTE]You can check that in the documentation of the SDK, and the in the documentation available on [url]http://www.symbiansigned.com[/url] 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.
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.
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
Re: SIS Intallation problem in Location Based Application
[QUOTE=narendar_discover;640336]That means for SymbianSinged Online we need to send Unsigned SIS File?
[/QUOTE]
Yes. Check posts #7 and #9.
Re: [moved] SIS Intallation problem in Location Based Application
Okay and Thanks for all communication.
Regards,
Narendar