Enabling the debugger (adb)

By default, the Android Debug Bridge (adb) is included on a QNX platform with the Runtime for APK.

adb enables loading, execution, breakpoints, and single-stepping through application code. If you want to use adb, but it is not already started, you need to edit the build configuration file and then restart your target.

To start adb:
  1. Check whether the file apk_app_path/native/system/build.cfg contains the following line:
    Note that apk_app_path is the path to the APK runtime application, for example:
  2. Edit the build.cfg file to enable the debugger.
    • If the "enable" line isn't present, add it using the following command:
      "persist.service.adb.enable=1" >> <apk_app_path>/native/system/build.cfg
    • If the "enable" line is present, edit it to ensure that the value is set to 1.
  3. Restart the target.