Fix crash when using other su
This commit is contained in:
parent
018c0064cd
commit
01e7dff1a0
@ -80,7 +80,7 @@ public class MagiskDatabaseHelper {
|
||||
Context de = Build.VERSION.SDK_INT >= Build.VERSION_CODES.N
|
||||
? mm.createDeviceProtectedStorageContext() : mm;
|
||||
if (!MANAGER_DB.canWrite()) {
|
||||
if (!Shell.rootAccess()) {
|
||||
if (!Shell.rootAccess() || Data.magiskVersionCode < 0) {
|
||||
// We don't want the app to crash, create a db and return
|
||||
return mm.openOrCreateDatabase("su.db", Context.MODE_PRIVATE, null);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user