mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-26 09:57:45 +00:00
Switch internal download dir to cache dir
This commit is contained in:
parent
6d27eb7f64
commit
267868c3b0
@ -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)
|
||||||
|
@ -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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user