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:
- Enable Development Mode on your device. For more information on configuring your BlackBerry 10 device for testing, see Set up your test environment.
- Connect your BlackBerry 10 device to your computer with a USB cable.
- 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.
In the Confirmation dialog box, click Yes.
- In the BlackBerry Debug Token Request dialog box, click Deploy Debug Token.
In the Password Prompt dialog box, enter your BlackBerry ID Signing token password and click OK.
For more information, see Create a BlackBerry ID Signing token.
The new debug token is created and deployed (uploaded) to your BlackBerry 10 device.
After you've created and deployed the device debug token, start your device in 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.