예제 #1
0
  public static int getAppLevel(String path, String ns) {
    File fApk = new File(path);
    String apkName = fApk.getName();

    int applevel = 3;
    if (ApkUtils.isAndroidApp(apkName)) {
      applevel = 0;
    }
    if (applevel == 3) {
      if (ApkUtils.isGoogleApp(ns)) {
        applevel = 1;
      }
    }
    if (applevel == 3) {
      if (ApkUtils.isHtcApp(ns)) {
        applevel = 2;
      }
    }
    return applevel;
  }