In practice, the check would either be built-in the OS's application installation system (Android checks) or built into every APK in a standard manner (a process not controllable by the developer).
But beyond that, this clearly implies such checks would also apply to applications installed through conventional manners on desktop systems (e.g. running an installer).
Also, KEK