Do not crash root service in stub

This commit is contained in:
topjohnwu 2022-08-23 05:10:18 -07:00
parent a54114f149
commit 38ab6858f0

View File

@ -60,6 +60,7 @@ public class DynLoad {
// Copy from external for easier development
if (BuildConfig.DEBUG) {
try {
File external = new File(context.getExternalFilesDir(null), "magisk.apk");
if (external.exists()) {
try {
@ -75,6 +76,9 @@ public class DynLoad {
external.delete();
}
}
} catch (SecurityException e) {
// Do not crash in root service
}
}
if (apk.exists()) {