mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-26 00:47:43 +00:00
Change unhide app temp location
This commit is contained in:
parent
657f4ab303
commit
36cf32dc42
@ -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> {
|
|||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user