mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-27 20:15:29 +00:00
Do not crash root service in stub
This commit is contained in:
parent
a54114f149
commit
38ab6858f0
@ -60,6 +60,7 @@ public class DynLoad {
|
|||||||
|
|
||||||
// Copy from external for easier development
|
// Copy from external for easier development
|
||||||
if (BuildConfig.DEBUG) {
|
if (BuildConfig.DEBUG) {
|
||||||
|
try {
|
||||||
File external = new File(context.getExternalFilesDir(null), "magisk.apk");
|
File external = new File(context.getExternalFilesDir(null), "magisk.apk");
|
||||||
if (external.exists()) {
|
if (external.exists()) {
|
||||||
try {
|
try {
|
||||||
@ -75,6 +76,9 @@ public class DynLoad {
|
|||||||
external.delete();
|
external.delete();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} catch (SecurityException e) {
|
||||||
|
// Do not crash in root service
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (apk.exists()) {
|
if (apk.exists()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user