Verify your APK files using the apk2barVerifier tool

  1. On the command line, navigate to the bin subfolder where you installed the BlackBerry SDK.
  2. Run the apk2barVerifier tool using the following syntax:
    apk2barVerifier <Android_app_or_folder> [<compatibility_exceptions>] [<Android_SDK_folder>] [blacklist file] [-v] [-r] [-b [-o]] [-os <version>] [-t <target-dir>]

    This table explains the values the of the arguments used in the above syntax.

    Argument

    Description

    <Android_app_or_folder>

    This argument specifies either a single APK or a folder that contains one or more APK files.

    <compatibility_exceptions>

    This argument specifies the path to the compatibility exceptions file. This file contains a list of the APIs and features that the BlackBerry Tablet OS and BlackBerry 10 OS do not support. If this argument is not specified, the apk2barVerifier tool uses the default value of ../blackberry/Apk2Bar_compatibility_excepts.xml.

    <Android_SDK_folder>

    This argument specifies the location of the Android SDK. Alternatively, you can use the environment variable %ANDROID_HOME%, if it was set.

    -v

    This argument prints the version of the tool.

    -r

    This argument lets you find .apk files recursively in specified folder(s).

    -b

    This argument searches for APK files that are inside already packaged BAR files.

    -o

    This argument overwrites existing APK files during their extraction (together with the -b option.

    -os <version>

    This optional argument specifies the minimal target tablet OS version; e.g. 2.1, 10, or 10.0.9.

    -t <target dir>

    This optional argument specifies where the warning file(s) will be generated. Otherwise, the APK source folder is used.

    Impact Legend: 5= Severe; 4 = High/context; 3 = Medium/context; 2 = Medium-low/context; 1 = Minor

After the apk2barVerifier screens the APK files, you can view the warning files generated for each app.
comments powered by Disqus