exists

fun exists(context: Context, packages: List<String>): Boolean

Checks if any of the specified packages are installed on the device.

This method iterates through the provided list of package names and uses the Android PackageManager to determine if each package is installed. Returns true as soon as any suspicious package is found.

Return

true if any of the specified packages are installed, false otherwise

Parameters

context

The Android context used to access the PackageManager

packages

List of package names to check for installation