Testing a repackaged app on a BlackBerry 10 device

There's no better way to test an app than loading it on a BlackBerry 10 device. Your apps can be repackaged as unsigned .bar files, which are normally used for testing and debugging. Signing a .bar file is a security measure that's required only when you're ready to submit your app for distribution through the BlackBerry World storefront.

For more information, see Publish to BlackBerry World.

Create and deploy a device debug token

You must create device debug token and deploy it to your BlackBerry 10 device before you can test and debug an unsigned .bar file. When you have a BlackBerry ID account, a BlackBerry ID Signing token, and a Developer certificate you can use these items to generate a device debug token.

Follow these steps to create and deploy a debug token:

  1. Enable Development Mode on your device. For more information on configuring your BlackBerry 10 device for testing, see Set up your test environment.
  2. Connect your BlackBerry 10 device to your computer with a USB cable.
  3. Start the BlackBerry ADB Proxy Manager.
    • Go to the directory where you extracted the BlackBerry Command-line tools.
    • Start the BlackBerry ADB Proxy Manager.exe application.

    In the BlackBerry ADB Proxy Manager, when you try to start a device that doesn't have a device debug token, the Missing Debug Token message appears in the Status column. A dialog box that begins the process of creating a device debug token is displayed.

    The BlackBerry ADB Proxy Manager debug token missing message.
  4. In the Confirmation dialog box, click Yes.

    The confirmation dialog box asking to create and upload a debug token.
  5. In the BlackBerry Debug Token Request dialog box, click Deploy Debug Token.The BlackBerry Debug Token Request dialog box.
  6. In the Password Prompt dialog box, enter your BlackBerry ID Signing token password and click OK.

    The Password Prompt dialog box.

    For more information, see Create a BlackBerry ID Signing token.

    The new debug token is created and deployed (uploaded) to your BlackBerry 10 device.

    The messages generated as the device debug token is created and deployed.

After you've created and deployed the device debug token, start your device in the BlackBerry ADB Proxy Manager.

The start button for the BlackBerry ADB Proxy Manager.

A debug token is valid for 30 days. When that token expires, the BlackBerry 10 OS no longer allows unsigned apps that rely on that token to run.



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus