Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
loadLibrary cannot be restricted in any Android version
Browse files Browse the repository at this point in the history
(this will always result in a bootloop)

Refs #2202
  • Loading branch information
M66B committed May 24, 2015
1 parent 200967d commit b71f2cd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/biz/bokhorst/xprivacy/PrivacyManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b71f2cd

Please sign in to comment.