varnish/varnish-devicedetect — pull request #8 by jacobcoens (2013-05-21 07:56:57+00:00)
Title: Fix for incorrect detection of Opera Mobile on Android

Opera Mobile on Android is incorrectly detected as Android Tablet.

An example user agent string is "Opera/9.80 (Android 4.1.2; Linux; Opera Mobi/ADR-1301080958) Presto/2.11.355 Version/12.10", which would result in successfully passing the "(?i)android" regex, before the "Opera Mobi" regex is checked.

To fix this, I've moved the "Opera Mobi" regex up to just before the check for Android Tablets.

As already mentioned in the comment, this was a false positive for Android Tablet.