There's an open source project on Github licensed under Apache 2.0.
Its EULA states that corporations must purchase a license to use it.
When executing the compiled binary of the app, the user is prompted to accept the EULA.
Disregarding the obvious moral implications of this (corp asked me to do this, I have no choice, unless it's not legal of course) - is it technically legal to fork the repo, replace the text file containing the EULA let's say with blanks, and recompile the app?
My thinking is yes, because Apache 2.0 grants permission to freely modify the source code; whereas the EULA becomes binding only at run time after it's accepted.
Thanks.
In countries based on roman law (non-US, non-UK, non-Commonwealth):
When the code is on github marked as under the Apache-2.0 license by the copyright holder, then it is reasonable to assume that the Apache-2.0 license is applicable for your usage of that source code.
The compiled binaries are a different matter, especially when provided by the copyright holder themselves since they have the legal power to decide on different licenses for the same code.
So in principle a fork is legally possible with the intention of removing the EULA message. In case the copyright holders complain about such action, then the code should not be considered Apache-2.0 as advertised and such entities can be accused of fraud.