According to the comments below currently the only way to notice a malicious but signed app would be updating an existing version from the play store. That requires access to the play store and installing an app from there first.
Allowing random 3rd parties to publish high profile apps stolen from the Play store seems a very bad idea. Especially if the OS doesn’t check apk signature against that same play store.
They aren't serving the apps, and you would expect ads if that were there business model. They developed free software to make app stores, and their business is making app stores for people.
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.
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?
Note all the high profile apps like Google Photos, Nest, WhatsApp, Instagram? None of these have been uploaded by Google, FB, etc. These could easily have been modified to include additional malicious code to steal your personal data.
None of this is mentioned of course in the press. But it seems like this company mainly survives on copyright infringement and serving malicious apps.