QNX platforms include a command-line tool for converting APK apps to the BAR file format.
To repackage your app in the BAR file format so you can use it on the QNX platforms, you should use the blackberry-apkpackager command-line packaging tool. This tool is provided with the QNX platform.
Not all APIs are supported, so you may need to modify your app before you can run it on QNX platforms. The blackberry-apkpackager packaging tool provides a list of exceptions which you may need to address. There may be entries in the BAR file that you need to fix manually.
See the chapter "Compatibility and compliance", and the documentation included with the tools for more information.
Here's a short summary or what you need to do to repackage your app in the APK format to the BAR file format: