@Override public void onBindMethods() { addMethodProxy(new BaseMethodProxy("add")); addMethodProxy(new BaseMethodProxy("addToDisplay")); addMethodProxy(new BaseMethodProxy("addToDisplayWithoutInputChannel")); addMethodProxy(new BaseMethodProxy("addWithoutInputChannel")); addMethodProxy(new BaseMethodProxy("relayout")); }
private Object proxySession(IInterface session) { WindowSessionPatch windowSessionPatch = new WindowSessionPatch(session); return windowSessionPatch.getInvocationStub().getProxyInterface(); } }
@Override public boolean isEnvBad() { return getInvocationStub().getProxyInterface() != null; } }
@Override public Object call(Object who, Method method, Object... args) throws Throwable { int index = ArrayUtils.indexOfFirst(args, WindowManager.LayoutParams.class); if (index != -1) { WindowManager.LayoutParams attrs = (WindowManager.LayoutParams) args[index]; if (attrs != null) { attrs.packageName = getHostPkg(); } } return method.invoke(who, args); } }
@Override public void onBindMethods() { addMethodProxy(new BaseMethodProxy("add")); addMethodProxy(new BaseMethodProxy("addToDisplay")); addMethodProxy(new BaseMethodProxy("addToDisplayWithoutInputChannel")); addMethodProxy(new BaseMethodProxy("addWithoutInputChannel")); addMethodProxy(new BaseMethodProxy("relayout")); }
private Object proxySession(IInterface session) { WindowSessionPatch windowSessionPatch = new WindowSessionPatch(session); return windowSessionPatch.getInvocationStub().getProxyInterface(); } }
@Override public boolean isEnvBad() { return getInvocationStub().getProxyInterface() != null; } }
@Override public Object call(Object who, Method method, Object... args) throws Throwable { int index = ArrayUtils.indexOfFirst(args, WindowManager.LayoutParams.class); if (index != -1) { WindowManager.LayoutParams attrs = (WindowManager.LayoutParams) args[index]; if (attrs != null) { attrs.packageName = getHostPkg(); } } return method.invoke(who, args); } }
@Override public void onBindMethods() { addMethodProxy(new BaseMethodProxy("add")); addMethodProxy(new BaseMethodProxy("addToDisplay")); addMethodProxy(new BaseMethodProxy("addToDisplayWithoutInputChannel")); addMethodProxy(new BaseMethodProxy("addWithoutInputChannel")); addMethodProxy(new BaseMethodProxy("relayout")); }
private Object proxySession(IInterface session) { WindowSessionPatch windowSessionPatch = new WindowSessionPatch(session); return windowSessionPatch.getInvocationStub().getProxyInterface(); } }
@Override public boolean isEnvBad() { return getInvocationStub().getProxyInterface() != null; } }
@Override public Object call(Object who, Method method, Object... args) throws Throwable { int index = ArrayUtils.indexOfFirst(args, WindowManager.LayoutParams.class); if (index != -1) { WindowManager.LayoutParams attrs = (WindowManager.LayoutParams) args[index]; if (attrs != null) { attrs.packageName = getHostPkg(); } } return method.invoke(who, args); } }