private static boolean isStageName(String name) {
    boolean isFile = name.startsWith("vmdl") && name.endsWith(".tmp");
    boolean isContainer = name.startsWith("smdl") && name.endsWith(".tmp");
    boolean isLegacyContainer = name.startsWith("smdl2tmp");
    return isFile || isContainer || isLegacyContainer;
  }
Directory where installed applications are stored
android/android_framework/patch-magisk/bridge/src/main/java/github/tornaco/android/thanox/magisk/bridge/util/PackageUtils.java