Switch internal download dir to cache dir

This commit is contained in:
topjohnwu 2018-12-31 16:05:29 +08:00
parent 6d27eb7f64
commit 267868c3b0
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ public class DownloadApp {
} }
private static void dlInstall(String name, ManagerDownloadListener listener) { 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); ProgressNotification progress = new ProgressNotification(name);
listener.setProgressNotification(progress); listener.setProgressNotification(progress);
Networking.get(Data.managerLink) Networking.get(Data.managerLink)

View File

@ -118,7 +118,7 @@ public abstract class MagiskInstaller {
console.add("- Device platform: " + Build.CPU_ABI); 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)) { if (!ShellUtils.checkSum("MD5", zip, Data.magiskMD5)) {
console.add("- Downloading zip"); console.add("- Downloading zip");