A BAR file (extension: .bar
) is an archive containing all the files required to install a BlackBerry 10 application. BAR files can be installed directly on a device without going through BlackBerry World or BES deployment through a procedure known as "sideloading". This article explains how to sideload an application on any BlackBerry 10 device.
Sideloading an application requires the following:
Sideloading applications requires enabling Development Mode on your BlackBerry 10 device. If your device was provided by your employer, Development Mode may be forbidden by corporate policy: in that case, you will not be able to sideload applications. |
The procedure requires the following software to be installed on your PC/Mac:
The installation tool is part of the BlackBerry Native SDK. The Native SDK can either be downloaded as a stand-alone software or (if you have already installed it) from the Momentics development environment.
C:\bbndk
: open it. If you installed it in a different directory, right click the Momentics icon on the Desktop or Start menu, and click "Open file location"host_10_x_y_z
, where x.y.z
is the version of the SDKhost_10_3_1_29
. In the rest of this document, this directory will be referred to as host_10_x_y_z
bbndk.win32.tools.10.3.1.12
in the same directory as the bbndk.win32.tools.10.3.1.12.zip
file: open itbbndk.win32.tools.10.3.1.12
, you should have a directory named host_10_3_1_12
. In the rest of this document, this directory will be referred to as host_10_x_y_z
bbndk.macosx.tools.10.3.1.12.tar.gz
cd ~/Downloads
and press Enter⏎tar xf
bbndk.macosx.tools.10.3.1.12.tar.gz
and press Enter⏎. This could take a whilehost_10_3_1_12
in your Downloads directory. In the rest of this document, this directory will be referred to as host_10_x_y_z
Sideloading applications requires enabling Development Mode on your BlackBerry 10 device. If your device was provided by your employer, Development Mode may be forbidden by corporate policy: in that case, you will not be able to sideload applications. |
The BlackBerry 10 device needs to be prepared to enable sideloading of applications:
169.254.x.y
(usually, 169.254.0.1
)Once everything's ready on the device and your PC/Mac, we can proceed with the installation:
cmd
in the text box and press Enter⏎. This should open a command windowcd <full path to the host_10_x_y_z directory>
and press Enter⏎. To easily enter the full path to the host_10_x_y_z
directory, you can drag and drop it on the command windowcd win32\x86\usr\bin
and press Enter⏎cd darwin/x86/usr/bin
and press Enter⏎blackberry-deploy -installApp -device 169.254.x.y -password <device password> <full path to the BAR file>
(where 169.254.x.y
is the IP address of the device), and press Enter⏎. To easily enter the full path of the BAR file, you can drag and drop it on the command windowInfo: Application-Development-Mode is false, sync disabled Info: Sending request: INSTALL Info: Action: Install Info: File size: 3277221 Info: Installing ... Info: Processing 3277221 bytes Info: Progress 6%... Info: Progress 11%... Info: Progress 16%... Info: Progress 100%... Info: Progress 100%... actual_dname::com.privatewave.svoip.demo.gYABgIOlC5Mm_YdgsYtIT58APtU actual_id::gYABgIOlC5Mm_YdgsYtIT58APtU actual_version::1.0.0.1 result::success |