@Override public Object call(Object who, Method method, Object... args) throws Throwable { Intent intent = (Intent) args[1]; String type = (String) args[2]; intent.setDataAndType(intent.getData(), type); if (VirtualCore.get().getComponentDelegate() != null) { VirtualCore.get().getComponentDelegate().onSendBroadcast(intent); } Intent newIntent = handleIntent(intent); if (newIntent != null) { args[1] = newIntent; } else { return 0; } if (args[7] instanceof String || args[7] instanceof String[]) { // clear the permission args[7] = null; } return method.invoke(who, args); }
@Override public Object call(Object who, Method method, Object... args) throws Throwable { Intent intent = (Intent) args[1]; String type = (String) args[2]; intent.setDataAndType(intent.getData(), type); if (VirtualCore.get().getComponentDelegate() != null) { VirtualCore.get().getComponentDelegate().onSendBroadcast(intent); } Intent newIntent = handleIntent(intent); if (newIntent != null) { args[1] = newIntent; } else { return 0; } if (args[7] instanceof String || args[7] instanceof String[]) { // clear the permission args[7] = null; } return method.invoke(who, args); }
@Override public Object call(Object who, Method method, Object... args) throws Throwable { Intent intent = (Intent) args[1]; String type = (String) args[2]; intent.setDataAndType(intent.getData(), type); if (VirtualCore.get().getComponentDelegate() != null) { VirtualCore.get().getComponentDelegate().onSendBroadcast(intent); } Intent newIntent = handleIntent(intent); if (newIntent != null) { args[1] = newIntent; } else { return 0; } if (args[7] instanceof String || args[7] instanceof String[]) { // clear the permission args[7] = null; } return method.invoke(who, args); }