1 package it.skarafaz.xposed.nwmonblocker;
3 import de.robv.android.xposed.IXposedHookZygoteInit;
4 import de.robv.android.xposed.XC_MethodReplacement;
5 import de.robv.android.xposed.XposedHelpers;
7 public class Mod implements IXposedHookZygoteInit {
8 private static final String CLASS_DEVICE_POLICY_MANAGER = "android.app.admin.DevicePolicyManager";
11 public void initZygote(StartupParam startupParam) throws Throwable {
12 final Class<?> devicePolicyManager = XposedHelpers.findClass(CLASS_DEVICE_POLICY_MANAGER, null);
14 XposedHelpers.findAndHookMethod(devicePolicyManager, "hasAnyCaCertsInstalled", new XC_MethodReplacement() {
16 protected Object replaceHookedMethod(MethodHookParam methodHookParam) throws Throwable {