public static function identifyAndroid($model)
{
$result = self::identifyList(self::$ANDROID_INDEX, self::$ANDROID_MODELS, $model);
if (!$result->identified) {
$model = self::cleanup($model);
if (preg_match('/AndroVM/iu', $model) || $model == 'Emulator' || $model == 'x86 Emulator' || $model == 'x86 VirtualBox' || $model == 'vm') {
return new Device(['type' => Constants\DeviceType::EMULATOR, 'identified' => Constants\Id::PATTERN, 'manufacturer' => null, 'model' => null, 'generic' => false]);
}
}
return $result;
}