private static PackageParser.PackageLite parseApk(File file) {
    try {
      return PackageParser.parsePackageLite(file, 0 /* No flags */);
    } catch (PackageParser.PackageParserException e) {
      Log.e("parseApk got error: %s", Log.getStackTraceString(e));
    }
    return null;
  }
Directory where installed applications are stored
android/android_framework/patch-magisk/bridge/src/main/java/github/tornaco/android/thanox/magisk/bridge/util/PackageUtils.java