verifiedPackageFromIntent

fun verifiedPackageFromIntent(context: Context, packageName: String): String

Confirms that packageName is owned by the calling UID and returns it.

Throws

if the package is not owned by the caller.