diff --git a/app/src/full/java/com/topjohnwu/magisk/utils/DownloadApp.java b/app/src/full/java/com/topjohnwu/magisk/utils/DownloadApp.java index 9436f6897..f96bd5481 100644 --- a/app/src/full/java/com/topjohnwu/magisk/utils/DownloadApp.java +++ b/app/src/full/java/com/topjohnwu/magisk/utils/DownloadApp.java @@ -34,7 +34,7 @@ public class DownloadApp { } private static void dlInstall(String name, ManagerDownloadListener listener) { - File apk = new File(App.self.getFilesDir(), "manager.apk"); + File apk = new File(App.self.getCacheDir(), "manager.apk"); ProgressNotification progress = new ProgressNotification(name); listener.setProgressNotification(progress); Networking.get(Data.managerLink) diff --git a/core/src/main/java/com/topjohnwu/core/tasks/MagiskInstaller.java b/core/src/main/java/com/topjohnwu/core/tasks/MagiskInstaller.java index dd1241d65..60a7a7d21 100644 --- a/core/src/main/java/com/topjohnwu/core/tasks/MagiskInstaller.java +++ b/core/src/main/java/com/topjohnwu/core/tasks/MagiskInstaller.java @@ -118,7 +118,7 @@ public abstract class MagiskInstaller { console.add("- Device platform: " + Build.CPU_ABI); - File zip = new File(App.self.getFilesDir(), "magisk.zip"); + File zip = new File(App.self.getCacheDir(), "magisk.zip"); if (!ShellUtils.checkSum("MD5", zip, Data.magiskMD5)) { console.add("- Downloading zip");