private function &detectCamouflagedAndroidBrowser($ua)
{
if (preg_match('/Mac OS X 10_6_3; ([^;]+); [a-z]{2}(?:-[a-z]{2})?\\)/u', $ua, $match)) {
$this->data->browser->name = 'Android Browser';
$this->data->browser->version = null;
$this->data->browser->mode = 'desktop';
$this->data->os->name = 'Android';
$this->data->os->alias = null;
$this->data->os->version = null;
$this->data->engine->name = 'Webkit';
$this->data->engine->version = null;
$this->data->device->type = 'mobile';
$device = Data\DeviceModels::identify('android', $match[1]);
if ($device->identified) {
$device->identified |= $this->data->device->identified;
$this->data->device = $device;
}
$this->data->features[] = 'foundDevice';
}
if (preg_match('/Mac OS X 10_5_7; [^\\/\\);]+\\/([^\\/\\);]+)\\//u', $ua, $match)) {
$this->data->browser->name = 'Android Browser';
$this->data->browser->version = null;
$this->data->browser->mode = 'desktop';
$this->data->os->name = 'Android';
$this->data->os->alias = null;
$this->data->os->version = null;
$this->data->engine->name = 'Webkit';
$this->data->engine->version = null;
$this->data->device->type = 'mobile';
$device = Data\DeviceModels::identify('android', $match[1]);
if ($device->identified) {
$device->identified |= $this->data->device->identified;
$this->data->device = $device;
}
$this->data->features[] = 'foundDevice';
}
return $this;
}