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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Testing and Deployment

How to Enable Device Security in the BlackBerry Smartphone Simulator

by Administrator on ‎09-21-2010 10:02 AM - edited on ‎09-22-2010 12:44 PM by BlackBerry Development Advisor

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

 

  1. 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.
  2. Edit the ####.bat file where #### represents the BlackBerry smartphone model number you wish to change.
  3. Add /secure to the command line in the batch file.
  4. Save the batch file.

 

BlackBerry Java Plug-in for Eclipse

 

  1. Click on the Project menu in Eclipse®.  Choose BlackBerry and then Clean Simulator.
  2. 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.
  3. Open the Run or Debug Configuration options in Eclipse.
  4. Expand BlackBerry Simulator.
  5. Click on a simulator entry.
  6. Select the General tab.
  7. Check off Enable Device Security.
  8. Click the Apply button.

 

BlackBerry JDE

 

  1. 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.
  2. Click on the Edit menu and choose Preferences.
  3. Click on the Simulator tab.
  4. Click on the General tab.
  5. Check off Enable Device Security.
  6. Click OK.