1 package de.ralfj.xposed.nofudroid;
3 import de.robv.android.xposed.IXposedHookZygoteInit;
4 import de.robv.android.xposed.XC_MethodReplacement;
5 import de.robv.android.xposed.XposedHelpers;
7 /* "Network May Be Monitored" blocker for Android 4.4. */
9 public class Mod4 implements IXposedHookZygoteInit {
10 private static final String CLASS_DEVICE_POLICY_MANAGER = "android.app.admin.DevicePolicyManager";
13 public void initZygote(StartupParam startupParam) throws Throwable {
14 final Class<?> devicePolicyManager = XposedHelpers.findClass(CLASS_DEVICE_POLICY_MANAGER, null);
16 XposedHelpers.findAndHookMethod(devicePolicyManager, "hasAnyCaCertsInstalled", new XC_MethodReplacement() {
18 protected Object replaceHookedMethod(MethodHookParam methodHookParam) throws Throwable {