@Override protected void onBindMethods() { super.onBindMethods(); addMethodProxy(new Set()); addMethodProxy(new SetTime()); addMethodProxy(new SetTimeZone()); }
@Override public boolean beforeCall(Object who, Method method, Object... args) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N && args[0] instanceof String) { args[0] = getHostPkg(); } int index = ArrayUtils.indexOfFirst(args, WorkSource.class); if (index >= 0) { args[index] = null; } return true; } }
addInjector(new AlarmManagerStub()); addInjector(new AppOpsManagerStub()); addInjector(new MediaRouterServiceStub());
@Override protected void onBindMethods() { super.onBindMethods(); addMethodProxy(new Set()); addMethodProxy(new SetTime()); addMethodProxy(new SetTimeZone()); }
@Override public boolean beforeCall(Object who, Method method, Object... args) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N && args[0] instanceof String) { args[0] = getHostPkg(); } int index = ArrayUtils.indexOfFirst(args, WorkSource.class); if (index >= 0) { args[index] = null; } return true; } }
addInjector(new AlarmManagerStub()); addInjector(new AppOpsManagerStub()); addInjector(new MediaRouterServiceStub());
@Override protected void onBindMethods() { super.onBindMethods(); addMethodProxy(new Set()); addMethodProxy(new SetTime()); addMethodProxy(new SetTimeZone()); }
@Override public boolean beforeCall(Object who, Method method, Object... args) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N && args[0] instanceof String) { args[0] = getHostPkg(); } int index = ArrayUtils.indexOfFirst(args, WorkSource.class); if (index >= 0) { args[index] = null; } return true; } }
addInjector(new AlarmManagerStub()); addInjector(new AppOpsManagerStub()); addInjector(new MediaRouterServiceStub());