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

New Developer
Posts: 12
Registered: ‎11-22-2011
My Device: Z30 ; Z10 ; Q10
My Carrier: Verizon Wireless

How to disable USB port programmatically in BlackBerry

Hi , i am developing a device security application. Application offers the remote lock feature.Application is working as expected except a loophole that application can be uninstalled using BlackBerry Desktop Manager software.Is there any possible way that i can prevent the application to be removed using BB Desktop Manager??


Any possible way if i can disable the USB port programmatically so that BB desktop manager can not detect the device espcially when device is locked ??


Please reply its urgent ... 

BlackBerry Development Advisor
Posts: 15,871
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: How to disable USB port programmatically in BlackBerry

Programmatically, no.  But if the application is pushed out by a BlackBerry Enterprise Server administrator the admin can mark the application as required, which results in the user being unable to uninstall it.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.