diff --git a/src/main/java/com/ninjaflip/androidrevenge/core/apktool/updater/PackageNameChanger.java b/src/main/java/com/ninjaflip/androidrevenge/core/apktool/updater/PackageNameChanger.java index eea8f32..d14cbbd 100644 --- a/src/main/java/com/ninjaflip/androidrevenge/core/apktool/updater/PackageNameChanger.java +++ b/src/main/java/com/ninjaflip/androidrevenge/core/apktool/updater/PackageNameChanger.java @@ -313,7 +313,7 @@ private void updateFilesAndFolders() throws Exception { Thread.currentThread().interrupt(); throw new InterruptedException("APKTool thread was aborted abnormally!"); } - if (!iteratorNewPackage.getCanonicalPath().startsWith(iteratorOldPackage.getCanonicalPath())) { + if (!iteratorNewPackage.getCanonicalFile().toPath().startsWith(iteratorOldPackage.getCanonicalFile().toPath())) { LOGGER.info("---> moving from " + iteratorOldPackage.getPath() + " >>>>>> " + iteratorNewPackage.getPath()); if (iteratorOldPackage.exists()) { FileComputingManager.getInstance().