head.daveops.net

Snippets for yer computer needs

BlackBerry

BlackBerry

Compile via command-line

source bbndk-env.sh
export PROJECT_DIR=<project directory>
qcc main.c -o main

View logs via SSH

blackberry-connect 169.254.0.1 -password ssh devuser@169.254.0.1

Create developer certificate

blackberry-keytool -genkeypair -keystore ~/.rim/author.p12 -storepass -author

Create debug token

blackberry-debugtokenrequest -bbidtoken ~/.rim/bbidtoken.csk -storepass -deviceid ~/.rim/debug_token.bar

Deploy debug token

blackberry-deploy -installDebugToken ~/.rim/debug_token.bar -device -password

Build a native package

# build with a debug token blackberry-nativepackager -package .bar bar-descriptor.xml -devMode -debugToken ~/.rim/debug_token.bar

Deploy native app

blackberry-deploy -installApp 169.254.0.1 -password .bar

Reference documentation