public static boolean hasArchiveSuffix(String fileName) {
    return fileName.endsWith(".zip") || fileName.endsWith(".jar") || fileName.endsWith(".apk");
  }
Returns true if {@code fileName} names a .zip, .jar, or .apk.
android/android_framework/dex-maker/src/main/java/com/android/dex/util/FileUtils.java