From b71f2cdf7dde313186c1a7f0899f624992de6c77 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 24 May 2015 20:27:13 +0200 Subject: [PATCH] loadLibrary cannot be restricted in any Android version (this will always result in a bootloop) Refs #2202 --- src/biz/bokhorst/xprivacy/PrivacyManager.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/biz/bokhorst/xprivacy/PrivacyManager.java b/src/biz/bokhorst/xprivacy/PrivacyManager.java index 3e731d12a..b6a1facb7 100644 --- a/src/biz/bokhorst/xprivacy/PrivacyManager.java +++ b/src/biz/bokhorst/xprivacy/PrivacyManager.java @@ -465,10 +465,8 @@ public static boolean canRestrict(int uid, int xuid, String restrictionName, Str if (_uid == Process.SYSTEM_UID) { if (PrivacyManager.cIdentification.equals(restrictionName)) return false; - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { - if (PrivacyManager.cShell.equals(restrictionName) && "loadLibrary".equals(methodName)) - return false; - } + if (PrivacyManager.cShell.equals(restrictionName) && "loadLibrary".equals(methodName)) + return false; } if (system)