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

Commit

Permalink
Fix ClipboardManager
Browse files Browse the repository at this point in the history
Refs #1757
  • Loading branch information
M66B committed Feb 14, 2015
1 parent 7cdd431 commit 9e91860
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/biz/bokhorst/xprivacy/XClipboardManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import java.util.ArrayList;
import java.util.List;

import android.os.Build;

public class XClipboardManager extends XHook {
private Methods mMethod;
private String mClassName;
Expand All @@ -11,7 +13,10 @@ public class XClipboardManager extends XHook {
private XClipboardManager(Methods method, String restrictionName) {
super(restrictionName, method.name().replace("Srv_", ""), method.name());
mMethod = method;
mClassName = "com.android.server.ClipboardService";
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
mClassName = "com.android.server.clipboard.ClipboardService";
else
mClassName = "com.android.server.ClipboardService";
}

private XClipboardManager(Methods method, String restrictionName, String className) {
Expand Down

0 comments on commit 9e91860

Please sign in to comment.