@ Nullable public static String getPackageInstaller ( @ NonNull final Context context ) { final PackageManager packageManager = context . getPackageManager ( ) ; return packageManager . getInstallerPackageName ( context . getPackageName ( ) ) ; }
Returns the package name of the application installer .