Except this agreement was 30 years old and hasn't been effect for over a decade. Even if you think doing everything else right, how do you know some EU court next year won't find that something you did decades ago where you asked the local regulators for approval and they gave it won't be found to be illegal.
If you think Apple and Google are the only two "shady companies" who work with the governments of the countries they operate in to optimize their taxes, I'm not sure what to tell you.
If you think Apple and Google are the only two "shady companies" who work with the governments of the countries they operate in to optimize their taxes, I'm not sure what to tell you.