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
New Developer
Posts: 6
Registered: ‎11-23-2009
My Device: Not Specified

Mac BDM - Problem Unloading

Our program requires access to the BlackBerry via USB.  We're working on a Mac version and are currently having problems unloading the Mac Blackberry Desktop Manager on Snow Leopard.  Specifically when we unload RIMBBUSB.kext, it seems to start right back up.

 

If anyone else has experienced this problem and knows a solution, any help would be appreciated.

New Developer
Posts: 6
Registered: ‎11-23-2009
My Device: Not Specified

Re: Mac BDM - Problem Unloading

Anyone have any ideas at all?

New Developer
Posts: 6
Registered: ‎11-23-2009
My Device: Not Specified

Re: Mac BDM - Problem Unloading

Here's some more information, if anyone else can share any information.  We've just filed an issue in the Issue Tracker, as well.

 

Our program requires access to the BlackBerry via USB. Since there is no USB API like on the Windows BlackBerry Desktop Manager we have attempted to unload the BDM for MAC drivers by using the following commands when we need access to the USB connection on the BlackBerry.

Unload BBDaemon and BBLaunchAgent

sudo launchctl unload /Library/LaunchDaemons/com.rim.BBDaemon.plist
sudo launchctl unload /Library/LaunchAgents/com.rim.BBLaunchAgent.plist

Unload Drivers

sudo kextunload /System/Library/Extensions/RIMBBUSB.kext
sudo kextunload /System/Library/Extensions/RIMBBVSP.kext

The drivers fail to unload because they say something still had a handle on them, however there doesn't appear to be any other BDM apps running on the system.

Since we are unable to unload the drivers, we are currently requiring our customers to uninstall the BDM for Mac, which is a less than ideal situation.

Even with the uninstall, the task must be done manually since the uninstaller that comes with the BDM for Mac does not appear to properly remove all of files.

Our instructions to our customers to remove the BDM for mac are the following

Drag the following folder (if it exists) to the trash

/Library/Application Support/BlackBerry

Drag the following files (if they exist) to the trash.

/Application/BlackBerry Desktop Manager
/Library/LaunchAgents/com.rim.BBLaunchAgent.plist
/Library/LaunchDaemons/com.rim.BBDaemon.plist
/System/Library/Extensions/RIMBBUSB.kext
/System/Library/Extensions/RIMBBVSP.kext
/System/Library/Extensions/BlackberryUSB.kext
/System/Library/Extensions/BlackberryUSBDev.kext

Finally Reboot your system.

Once the user does this, we are then able to communicate with the BlackBerry over USB.