Commit 36cf32dc authored by topjohnwu's avatar topjohnwu

Change unhide app temp location

parent 657f4ab3
...@@ -2,6 +2,7 @@ package com.topjohnwu.magisk.asyncs; ...@@ -2,6 +2,7 @@ package com.topjohnwu.magisk.asyncs;
import android.content.Context; import android.content.Context;
import android.content.pm.PackageManager; import android.content.pm.PackageManager;
import android.os.Environment;
import android.widget.Toast; import android.widget.Toast;
import com.topjohnwu.magisk.MagiskManager; import com.topjohnwu.magisk.MagiskManager;
...@@ -31,7 +32,8 @@ public class HideManager extends ParallelTask<Void, Void, Boolean> { ...@@ -31,7 +32,8 @@ public class HideManager extends ParallelTask<Void, Void, Boolean> {
return false; return false;
// Generate a new unhide app with random package name // Generate a new unhide app with random package name
File unhideAPK = new File(magiskManager.getCacheDir(), "unhide.apk"); File unhideAPK = new File(Environment.getExternalStorageDirectory() + "/MagiskManager", "unhide.apk");
unhideAPK.getParentFile().mkdirs();
String pkg = ZipUtils.generateUnhide(magiskManager, unhideAPK); String pkg = ZipUtils.generateUnhide(magiskManager, unhideAPK);
// Install the application // Install the application
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment