That doesn't make it legal or safe. Re-distributing copyrighted material is questionable even in Portugal.
But more importantly there's no guarantee the app binary was not modified and repackaged to include malicious code.
https://android-developers.googleblog.com/2018/06/google-pla...
They specifically cite being able to do this peer to peer.
Legality of distributing "free as in beer" stuff that isn't "free as in speech" is always an interesting topic, in the case of Europe, I suspect we'll see more revision on that front as these cases regarding the Play Store and the license changes develop. It's possible, for instance, that the EU might feel that preventing sideloading of a Google app "ties" it to the Play Store in a way they find distasteful.
It's interesting to me that as of yet, Google has tolerated APKMirror, likely because it's run by Google/Android enthusiasts, and not intended for circumventing Google's business model. I'd be very curious how Google distinguishes Aptoide as something to be stopped, but APKMirror as something to be permitted.
https://www.xda-developers.com/google-blocks-gapps-uncertifi...
As Google seems to explicitly allow that, does it actually matter if I download opengapps and flash it myself versus getting it from APK mirror or Aptiode?
Google's behavior would also generally lead one to believe they are not concerned about what enthusiasts/tech pros do with their phones, as that's a niche quantity of users who don't really negatively impact their bottom line. They're chiefly concerned with ensuring manufacturers are only selling devices with their apps installed and set as default.
I mainly bring it up as if an app is "free" (as in beer), does it really matter where you get it from (assuming it is untampered with)? I know they can forbid redistribution in their ToS, but is that actually enforceable legally?
Most people accept that "free" apps should be able to be installed any way that people like. The difference is that Google doesn't consider their apps to be "free", they're a licensed component of Google Apps, which manufacturers license for their phones.