Safe to run

Install origin check

The purpose of this function is to ensure that packages are not installed from anywhere other than the configured appstores.
// With amazon and google play store configured
// Without amazon and google play store configured by default
When installing from android studio or adb, this check will naturally fail - you might want to wrap it for debug builds to let you develop; e.g with if (!BuildConfig.DEBUG)