Skip to main content

Install origin

The purpose of this library is to ensure that packages are not installed from anywhere other than the configured appstores.

note

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)

Configuration​


// With amazon and google play store configured

installOriginCheckWithDefaultsCheck("com.example.installer")

// Without amazon and google play store configured by default
installOriginCheckWithoutDefaultsCheck("com.example.installer")