"gearhead"
fun isAndroidAutoAvailable(): Boolean { val packageManager = this.packageManager val packages = packageManager.getInstalledPackages(PackageManager.GET_SERVICES) for (packageInfo in packages) { packageInfo.services?.forEach { serviceInfo -> val serviceName = serviceInfo.name if (serviceName.contains("gearhead")) { return true } } } return false }
"gearhead"
package check: