Having an app store does literally nothing to prevent adware. Almost all apps currently on the Apple app store or Google play store are adware.