Here you are.
From cf304bd2cedfd45452d2db3d55b7c92fd61110bd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marco=20Trevisan=20(Trevi=C3=B1o)?= <m...@3v1n0.net>
Date: Wed, 1 Dec 2010 19:58:27 +0100
Subject: [PATCH] eve: support Android useragent

---
 src/bin/chrome.c |    1 +
 src/bin/main.c   |    4 +++-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/bin/chrome.c b/src/bin/chrome.c
index 412e51c..c68b47f 100644
--- a/src/bin/chrome.c
+++ b/src/bin/chrome.c
@@ -296,6 +296,7 @@ static More_Menu_Item more_menu_config[] =
              .data = (More_Menu_Config_List[]) {
                { "Eve", "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3 " PACKAGE_NAME "/" PACKAGE_VERSION },
                { "iPhone", "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3" },
+               { "Android", "Mozilla/5.0 (Linux; U; Android 2.1; en-US;) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17" },
                { "Safari", "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-US) AppleWebKit/533.17.8 (KHTML, like Gecko) Version/5.0.1 Safari/533.17.8" },
                { "Chrome", "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.514.0 Safari/534.7" },
                { "Firefox", "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.2) Gecko/20121223 Firefox/3.8" },
diff --git a/src/bin/main.c b/src/bin/main.c
index 7e2ebdb..1d2af17 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -364,7 +364,7 @@ static const Ecore_Getopt options = {
       ECORE_GETOPT_STORE_DEF_BOOL('T', "disable-touch-interface",
                                   "disable touch interface handling of mouse events", 1),
       ECORE_GETOPT_STORE_STR('U', "user-agent",
-                             "user agent string to use. Special cases=iphone,safari,chrome,firefox,ie,ie9,ie8,ie7."),
+                             "user agent string to use. Special cases=iphone,safari,chrome,firefox,android,ie,ie9,ie8,ie7."),
       ECORE_GETOPT_STORE_DEF_UINT('R', "rotate", "Screen Rotation in degrees", 0),
       ECORE_GETOPT_VERSION('V', "version"),
       ECORE_GETOPT_COPYRIGHT('C', "copyright"),
@@ -731,6 +731,8 @@ elm_main(int argc, char **argv)
           user_agent_str = "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.514.0 Safari/534.7";
         else if (strcasecmp(user_agent_option, "firefox") == 0)
           user_agent_str = "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.2) Gecko/20121223 Firefox/3.8";
+        else if (strcasecmp(user_agent_option, "android") == 0)
+          user_agent_str = "Mozilla/5.0 (Linux; U; Android 2.1; en-US;) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17";
 
         else if (strcasecmp(user_agent_option, "ie") == 0) /* last */
           user_agent_str = "Mozilla/5.0 (Windows; U; MSIE 9.0; Windows NT 9.0; en-US)";
-- 
1.7.1

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to