Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 142
Registered: ‎06-26-2009
My Device: Not Specified

How to prevent/secure application deleting from device in blackberry?

Hi All,

 

Is it possible to prevent the application installed on device from deleting.

For Ex: Say "myApp" is installed on the blackberry device. If the user try to delete the application from the device. It should not give him permission for delete.

Please let me know is any rim api is available which will to prevent application from delete.

 

Thanks.

Developer
Posts: 16,643
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to prevent/secure application deleting from device in blackberry?

there is nothing you can do programatically (and why should there?). if the device is on a BES you can configure things like this using IT policies.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 19,623
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to prevent/secure application deleting from device in blackberry?

[ Edited ]

On a BES device, the BES Administrator can prevent Application deletion.

 

On a consumer device, I don't think you can prevent it.  And I think that is correct. 

 

You could try to code a second application that checks if the first is present and if not downloads and installs it, but that won't stop a determined user deleting both. 

 

Edit: Had not seen Simon's post when I added this.....

Developer
Posts: 142
Registered: ‎06-26-2009
My Device: Not Specified

Re: How to prevent/secure application deleting from device in blackberry?

Thanks simon_hain,

 

Ok, i would like to knw one more thing.

 

how can i provide a security layer on my application.

 

For Ex: when i start "myApp" it should validate user through securityLayer and then the actual application/content is pushed. If the user is invalid it should not allow the user to access the application.

 

Even if the user has installed any sniffer kind of s/w, it shouldn't be able to break the securityLayer.

 

Please let me knw ur suggetions and how can i start with this.

 

Thanks

Developer
Posts: 16,643
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to prevent/secure application deleting from device in blackberry?

how to validate username/password is a general question. you can use a client/server approach, use SHA1 or similar hashes against a stored value and the device pin etc. if you are worried about sniffing use https or encrypt the traffic yourself.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 19,623
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to prevent/secure application deleting from device in blackberry?

Be aware, that as far as I know, it is not possible to create a sniffer application on the BlackBerry device.  I think RIM will work hard to make sure that this is not possible, given the security model that they have.  So if you are worried about a sniffer, it is elsewhere in the infrastructure. 

Developer
Posts: 142
Registered: ‎06-26-2009
My Device: Not Specified

Re: How to prevent/secure application deleting from device in blackberry?

Thanks simon_hain and peter_strange for ur reply's.

 

According to ur suggetions - As im thinking when my app is started first i will push validateScreen - username/passwork. If user is authenticated then i will push the application content. OR

 

i will create one application for authenticate, once the user is authenticated then i will invoke the actual application throught this application.

 

May i knw which one could b more efficient and feasible.

 

 

Developer
Posts: 16,643
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to prevent/secure application deleting from device in blackberry?

you can do it in a single application.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 142
Registered: ‎06-26-2009
My Device: Not Specified

Re: How to prevent/secure application deleting from device in blackberry?

Thanks simon_hain and peter_strange for ur time and co-operation.:smileyhappy: