Summary
This article applies to:
- BlackBerry® devices based on Java® technology
Description
By default, the BlackBerry Smartphone Simulator does not enforce all security features present on a real BlackBerry smartphone. This simplifies the development process, allowing developers to run their application without having to sign the application or configure its application permissions. The following features are disabled by default in the BlackBerry Smartphone Simulator:
- Application permissions
- BlackBerry Code Signing Requirements
- MIDP prompts
- BlackBerry firewall
You can use the following steps to enable device security in a BlackBerry Smartphone Simulator, which will enable the security options above. The steps vary based on whether you are using the BlackBerry® Java® Plug-in for Eclipse®, BlackBerry® Java® Development Environment (BlackBerry JDE) or standalone BlackBerry Smartphone Simulator.
Standalone BlackBerry Smartphone Simulator
- Run the clean.bat file located in the simulator installation directory. This resets the BlackBerry Smartphone Simulator to its default state, removing all third party applications, data and user configurable settings.
- Edit the ####.bat file where #### represents the BlackBerry smartphone model number you wish to change.
- Add /secure to the command line in the batch file.
- Save the batch file.
BlackBerry Java Plug-in for Eclipse
- Click on the Project menu in Eclipse®. Choose BlackBerry and then Clean Simulator.
- Choose Select All and click OK. This resets the BlackBerry Smartphone Simulator to its default state, removing all third-party applications, data and user configurable settings.
- Open the Run or Debug Configuration options in Eclipse.
- Expand BlackBerry Simulator.
- Click on a simulator entry.
- Select the General tab.
- Check off Enable Device Security.
- Click the Apply button.
BlackBerry JDE
- Run the clean.bat file located in the simulator directory located in the installation directory. This resets the simulator to its default state, removing all third party applications, data and user configurable settings.
- Click on the Edit menu and choose Preferences.
- Click on the Simulator tab.
- Click on the General tab.
- Check off Enable Device Security.
- Click OK.