private static int getVersion(Context context, String packageName) {
        try {
            return context.getPackageManager().getPackageInfo(packageName, 0).versionCode;
        } catch (PackageManager.NameNotFoundException e) {
            return 0;
        }
    }
Makes a best-effort guess about which navigation bar color will be used when the Trusted Web
Activity is launched. Returns null if not possible to predict.
customtabs/src/android/support/customtabs/trusted/splashscreens/SystemBarColorPredictor.java