1- Download and setup Android SDk |
2- Download and configure BB Tools from https://developer.blackberry.com/android/documentation/cmd_line_tools.html#alk1340635279567 |
3- Open terminal and move to blackberry.tools.SDK/bin directory |
cd /path_to_dir/blackberry.tools.SDK/bin |
4- Convert apk to bar |
./apk2bar /path_to_apk/myApp.apk '/path_to_android_sdk/sdk' |
5- Sign generated bar file with developer credentials setup while configration of tools |
./batchbar-signer /path_to_bar/myApp.bar /path_to_saved_file/author.p12 PASSWORD_HERE |
6- For testing you can deploy the bar file to device |
./blackberry-deploy -installApp -launchApp -device DEVICE_IP_HERE -package /path_to_bar/myApp.bar -password DEVICE_PASSWORD_HERE |
Dont forget to follow me on github :) |