diff --git a/app/src/main/java/org/lsposed/manager/ui/fragment/HomeFragment.java b/app/src/main/java/org/lsposed/manager/ui/fragment/HomeFragment.java index 1ca7e220..8913eb64 100644 --- a/app/src/main/java/org/lsposed/manager/ui/fragment/HomeFragment.java +++ b/app/src/main/java/org/lsposed/manager/ui/fragment/HomeFragment.java @@ -272,7 +272,12 @@ private boolean isDeveloper() { Os.kill(pid, 0); developer.set(true); } catch (ErrnoException e) { - if (e.errno != OsConstants.ESRCH) { + if (e.errno == OsConstants.ESRCH) { + try { + Files.delete(name); + } catch (IOException ignored) { + } + } else { developer.set(true); } }