Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Developer
belwell
Posts: 5
Registered: 11-03-2009

Application Permissions

I've been doing searches to find this information but was unable to locate what I'm looking for.  My application uses APIs for accessing location services as well as performing key injections.  I've downloaded a handful of application that all use the same APIs but I was never prompted to allow the application to access those features, they were just automatically allowed, however my application always produces prompts to the user the first time asking if it's ok for my app to use them.  How are these prompts bypassed such that the user doesn't have to confirm and the app is just allowed to access them automatically?  I read one post along these lines where someone said that it depends on how the code is signed, but I can't find any information about additional signing keys or other methods of signing the code.  I was also unsure if the results are different depending on how the application is downloaded (ie. over the air vs. tethered download using javaloader.exe).

Please use plain text.
Developer
RexDoug
Posts: 4,649
Registered: 07-21-2008

Re: Application Permissions

Perhaps these applications use the ApplicationPermissionsManager API?

 

Tis allows your app to specify the required permissions, and all the user has to do is say "Ok".

 

Please use plain text.
New Developer
belwell
Posts: 5
Registered: 11-03-2009

Re: Application Permissions

I'm using the ApplicationPermissionsManager to enable those but they do generate prompts to the user.  These other applications never generate any prompts indicating the user is trying to change permissions or access certain features as it does when I do it.  The other applications simply run and work, no prompts, no indications, nothing.  Our customer is adamant that we do not show these screens as the other applications don't and say we have to be able to do the same.

Please use plain text.
Developer
Posts: 1,474
Registered: 04-14-2009

Re: Application Permissions

First of all, are those other application actually third-party applications or RIM's own application?

 

Secondly, did you answer differently to the "Mark application as trusted?" dialog that pops up on some handheld software after you download an app?

Please use plain text.
New Developer
belwell
Posts: 5
Registered: 11-03-2009

Re: Application Permissions

These are 3rd party applications, they're not from RIM.  I never got a "Mark application as trusted?" dialog when downloading, I'm using Bold (9000) so perhaps that screen isn't in this model.  I just redownloaded one of them to verify and after clicking "download" it downloads and installs then give me the choice to run it now, that's it, no other prompts/questions/confirmations.  When I launch it, the app immediately starts doing it's thing and doesn't ask me if I want to allow the application to use the GPS location services.

 

 

Please use plain text.
Developer
Posts: 1,474
Registered: 04-14-2009

Re: Application Permissions

If you re-download an application, the OS will keep its permissions. It is only when you download a different version of the same application that the permissions get reset.

 

Go to Options -> Advanced Options, locate these magic applications and see whether their permissions are different from yours. If they are, reset the permissions to defaults and see whether these applications start prompting you same as your application does. It is also useful to reset the Firewall (Options -> Security -> Firewall) if it's enabled, as some of the prompts come from the firewall.

Please use plain text.