static function identifyAndroid($model) { $result = DeviceModels::identifyList(DeviceModels::$ANDROID_MODELS, $model); if (!$result->identified) { $model = DeviceModels::cleanup($model); if (preg_match('/AndroVM/iu', $model) || $model == 'Emulator' || $model == 'x86 Emulator' || $model == 'x86 VirtualBox' || $model == 'vm') { return (object) array('type' => TYPE_EMULATOR, 'identified' => ID_PATTERN, 'manufacturer' => null, 'model' => null, 'generic' => false); } } return $result; }