2 PRAGMA foreign_keys = ON;
5 /*TODO: secure_by_default should be 0 by default*/
6 CREATE_TABLE(GlobalProperties)
7 COLUMN_NOT_NULL(secure_by_default, INT, DEFAULT 1)
8 COLUMN_NOT_NULL(home_network_data_usage, TINYINT, DEFAULT 1)
9 COLUMN_NOT_NULL(roaming_data_usage, TINYINT, DEFAULT 1)
10 COLUMN_NOT_NULL(cookie_sharing_mode, INT, DEFAULT 0)
14 INSERT INTO GlobalProperties DEFAULT VALUES;
17 CREATE_TABLE(WidgetInfo)
18 COLUMN_NOT_NULL(app_id, INTEGER, PRIMARY KEY AUTOINCREMENT)
19 COLUMN(widget_type, INT, DEFAULT 1)
20 COLUMN(widget_id, TEXT, DEFAULT '')
21 COLUMN(widget_version, TEXT, DEFAULT '')
22 COLUMN(widget_width, INT, DEFAULT 0)
23 COLUMN(widget_height, INT, DEFAULT 0)
24 COLUMN(author_name, TEXT, DEFAULT '')
25 COLUMN(author_email, TEXT, DEFAULT '')
26 COLUMN(author_href, TEXT, DEFAULT '')
27 COLUMN(base_folder, TEXT, DEFAULT '')
28 COLUMN(webkit_plugins_required, TINYINT, DEFAULT 0)
29 COLUMN(security_domain, INT, DEFAULT 0)
30 COLUMN(csp_policy, TEXT, DEFAULT '')
31 COLUMN(csp_policy_report_only, TEXT, DEFAULT '')
32 COLUMN(recognized, INT, DEFAULT 0)
33 COLUMN(wac_signed, INT, DEFAULT 0)
34 COLUMN(distributor_signed, INT, DEFAULT 0)
35 COLUMN(min_version, TEXT, DEFAULT '1.0')
36 COLUMN_NOT_NULL(back_supported, TINYINT, DEFAULT 0)
37 COLUMN(access_network, TINYINT, DEFAULT 0)
38 COLUMN(defaultlocale, TEXT, DEFAULT 0)
39 COLUMN_NOT_NULL(tizen_pkgid, TEXT, DEFAULT '')
40 COLUMN_NOT_NULL(tizen_appid, TEXT, DEFAULT 0 UNIQUE)
41 COLUMN(pkg_type, INT, DEFAULT 0)
42 COLUMN(security_model_version, INT, DEFAULT 0)
46 CREATE INDEX IF NOT EXISTS WidgetInfo_AppidIndex ON WidgetInfo(tizen_appid);
49 CREATE_TABLE(WidgetCertificate)
50 COLUMN_NOT_NULL(app_id, INT,)
51 COLUMN_NOT_NULL(cert_source, INT, CHECK(cert_source between 0 and 1))
52 COLUMN_NOT_NULL(encoded_chain, VARCHAR(16000),)
54 FOREIGN KEY (app_id) REFERENCES WidgetInfo (app_id) ON DELETE CASCADE
58 CREATE_TABLE(WidgetWindowModes)
59 COLUMN_NOT_NULL(app_id, INT,)
60 COLUMN_NOT_NULL(window_mode, VARCHAR(256),)
62 FOREIGN KEY (app_id) REFERENCES WidgetInfo (app_id) ON DELETE CASCADE
66 CREATE_TABLE(LocalizedWidgetInfo)
67 COLUMN_NOT_NULL(app_id, INT,)
68 COLUMN_NOT_NULL(widget_locale, TEXT,)
69 COLUMN(widget_name, TEXT,)
70 COLUMN(widget_shortname, TEXT,)
71 COLUMN(widget_description, TEXT,)
72 COLUMN(widget_license, TEXT,)
73 COLUMN(widget_license_file, TEXT,)
74 COLUMN(widget_license_href, TEXT,)
77 PRIMARY KEY (app_id, widget_locale),
78 FOREIGN KEY (app_id) REFERENCES WidgetInfo (app_id) ON DELETE CASCADE
82 CREATE_TABLE(WidgetExtendedInfo)
83 COLUMN_NOT_NULL(app_id, INTEGER, PRIMARY KEY)
84 COLUMN(last_update_time, BIGINT, DEFAULT 0)
85 COLUMN(install_time, BIGINT, DEFAULT 0)
86 COLUMN(option_state, INT, DEFAULT 0)
87 COLUMN(share_href, TEXT, DEFAULT '')
88 COLUMN(signature_type, INT, DEFAULT 0)
89 COLUMN(updated, INT, DEFAULT 0)
90 COLUMN(update_policy, INT, DEFAULT 0)
91 COLUMN_NOT_NULL(test_widget, INT, CHECK(test_widget between 0 and 1) DEFAULT 0)
92 COLUMN(splash_img_src, TEXT, DEFAULT '')
93 COLUMN(background_page, TEXT, DEFAULT '')
94 COLUMN(installed_path, TEXT, DEFAULT '')
96 FOREIGN KEY(app_id) REFERENCES WidgetInfo (app_id) ON DELETE CASCADE
100 CREATE_TABLE(WidgetPreference)
101 COLUMN_NOT_NULL(app_id, INTEGER,)
102 COLUMN_NOT_NULL(tizen_appid, TEXT, DEFAULT 0)
103 COLUMN_NOT_NULL(key_name, TEXT,)
104 COLUMN(key_value, TEXT, DEFAULT '')
105 COLUMN(readonly, INT, DEFAULT 0)
108 PRIMARY KEY(app_id, key_name),
109 FOREIGN KEY(app_id) REFERENCES WidgetInfo (app_id) ON DELETE CASCADE
113 CREATE_TABLE(WidgetFeature)
114 COLUMN_NOT_NULL(widget_feature_id, INTEGER, primary key autoincrement)
115 COLUMN_NOT_NULL(app_id, INT,)
116 COLUMN_NOT_NULL(name, TEXT,)
117 COLUMN_NOT_NULL(rejected, INT,)
119 FOREIGN KEY (app_id) REFERENCES WidgetInfo (app_id) ON DELETE CASCADE
123 CREATE_TABLE(WidgetPrivilege)
124 COLUMN_NOT_NULL(widget_privilege_id, INTEGER, primary key autoincrement)
125 COLUMN_NOT_NULL(app_id, INT,)
126 COLUMN_NOT_NULL(name, TEXT,)
128 FOREIGN KEY (app_id) REFERENCES WidgetInfo (app_id) ON DELETE CASCADE
132 CREATE_TABLE(WidgetIcon)
133 COLUMN_NOT_NULL(icon_id, INTEGER, primary key autoincrement)
134 COLUMN_NOT_NULL(app_id, INT,)
135 COLUMN_NOT_NULL(icon_src, TEXT,)
136 COLUMN(icon_width, INT, DEFAULT 0)
137 COLUMN(icon_height, INT, DEFAULT 0)
139 FOREIGN KEY(app_id) REFERENCES WidgetInfo (app_id) ON DELETE CASCADE
143 CREATE_TABLE(WidgetLocalizedIcon)
144 COLUMN_NOT_NULL(app_id, INT,) /* TODO key duplicated for efficiency - ORM doesn't support JOIN */
145 COLUMN_NOT_NULL(icon_id, INTEGER,)
146 COLUMN_NOT_NULL(widget_locale, TEXT,)
148 FOREIGN KEY(icon_id) REFERENCES WidgetIcon (icon_id) ON DELETE CASCADE,
149 PRIMARY KEY(icon_id, widget_locale)
153 CREATE_TABLE(WidgetStartFile)
154 COLUMN_NOT_NULL(start_file_id, INTEGER, primary key autoincrement)
155 COLUMN_NOT_NULL(app_id, INT,)
156 COLUMN_NOT_NULL(src, TEXT,)
158 FOREIGN KEY(app_id) REFERENCES WidgetInfo (app_id) ON DELETE CASCADE
162 CREATE_TABLE(WidgetLocalizedStartFile)
163 COLUMN_NOT_NULL(app_id, INT,) /* TODO key duplicated for efficiency - ORM doesn't support JOIN */
164 COLUMN_NOT_NULL(start_file_id, INTEGER,)
165 COLUMN_NOT_NULL(widget_locale, TEXT,)
166 COLUMN_NOT_NULL(type, TEXT,)
167 COLUMN_NOT_NULL(encoding, TEXT,)
169 FOREIGN KEY(start_file_id) REFERENCES WidgetStartFile (start_file_id) ON DELETE CASCADE,
170 PRIMARY KEY(start_file_id, widget_locale)
174 CREATE_TABLE(WidgetExternalLocations)
175 COLUMN_NOT_NULL(app_id, INT,)
176 COLUMN_NOT_NULL(path, TEXT,)
178 FOREIGN KEY(app_id) REFERENCES WidgetInfo (app_id) ON DELETE CASCADE,
179 PRIMARY KEY(app_id, path)
183 CREATE_TABLE(WidgetAccessHost)
184 COLUMN_NOT_NULL(app_id, INT,)
185 COLUMN_NOT_NULL(host, TEXT,)
188 PRIMARY KEY(app_id, host)
189 FOREIGN KEY (app_id) REFERENCES WidgetInfo (app_id) ON DELETE CASCADE)
192 CREATE_TABLE(WidgetCertificateFingerprint)
193 COLUMN_NOT_NULL(app_id, INT,)
194 COLUMN_NOT_NULL(owner, INT,)
195 COLUMN_NOT_NULL(chainid, INT,)
196 COLUMN_NOT_NULL(type, INT,)
197 COLUMN(md5_fingerprint, TEXT,)
198 COLUMN(sha1_fingerprint, TEXT,)
199 COLUMN(common_name, VARCHAR(64),)
202 PRIMARY KEY(app_id, chainid, owner, type)
203 FOREIGN KEY (app_id) REFERENCES WidgetInfo (app_id) ON DELETE CASCADE
207 CREATE_TABLE(WidgetWARPInfo)
208 COLUMN_NOT_NULL(app_id, INT,)
209 COLUMN_NOT_NULL(iri, TEXT,)
210 COLUMN(subdomain_access, INT, CHECK(subdomain_access between 0 and 1))
213 PRIMARY KEY(app_id, iri)
214 FOREIGN KEY (app_id) REFERENCES WidgetInfo (app_id) ON DELETE CASCADE
218 CREATE_TABLE(WidgetAllowNavigation)
219 COLUMN_NOT_NULL(app_id, INT,)
220 COLUMN_NOT_NULL(scheme, TEXT,)
221 COLUMN_NOT_NULL(host, TEXT,)
224 PRIMARY KEY(app_id, scheme, host)
225 FOREIGN KEY (app_id) REFERENCES WidgetInfo (app_id) ON DELETE CASCADE
229 CREATE_TABLE(WidgetSecuritySettings)
230 COLUMN_NOT_NULL(app_id, INT,)
231 COLUMN_NOT_NULL(security_popup_usage, INT, DEFAULT 1)
232 COLUMN_NOT_NULL(geolocation_usage, INT, DEFAULT 1)
233 COLUMN_NOT_NULL(web_notification_usage, INT, DEFAULT 1)
234 COLUMN_NOT_NULL(web_database_usage, INT, DEFAULT 1)
236 FOREIGN KEY (app_id) REFERENCES WidgetInfo (app_id) ON DELETE CASCADE
240 CREATE_TABLE(FeaturesList)
241 COLUMN_NOT_NULL(FeatureUUID, INTEGER, primary key autoincrement)
242 COLUMN_NOT_NULL(FeatureName, TEXT, unique)
243 COLUMN_NOT_NULL(PluginPropertiesId, INT,)
246 FOREIGN KEY (PluginPropertiesId) REFERENCES PluginProperties (PluginPropertiesId) ON DELETE CASCADE
250 CREATE_TABLE(PluginProperties)
251 COLUMN_NOT_NULL(PluginPropertiesId, INTEGER, primary key autoincrement)
252 COLUMN_NOT_NULL(InstallationState, INTEGER, DEFAULT 0)
253 COLUMN_NOT_NULL(PluginLibraryName, TEXT, unique)
254 COLUMN(PluginLibraryPath, TEXT,)
257 CREATE_TABLE(PluginDependencies)
258 COLUMN_NOT_NULL(PluginPropertiesId, INTEGER, not null)
259 COLUMN_NOT_NULL(RequiredPluginPropertiesId, INTEGER, not null)
262 FOREIGN KEY (PluginPropertiesId) REFERENCES PluginProperties (PluginPropertiesId) ON DELETE CASCADE
266 CREATE_TABLE(PluginImplementedObjects)
267 COLUMN_NOT_NULL(PluginObject, TEXT, unique)
268 COLUMN_NOT_NULL(PluginPropertiesId, INTEGER, not null)
271 FOREIGN KEY (PluginPropertiesId) REFERENCES PluginProperties (PluginPropertiesId) ON DELETE CASCADE
275 CREATE_TABLE(PluginRequiredObjects)
276 COLUMN_NOT_NULL(PluginPropertiesId, INTEGER, not null)
277 COLUMN_NOT_NULL(PluginObject, TEXT, not null)
280 FOREIGN KEY (PluginPropertiesId) REFERENCES PluginProperties (PluginPropertiesId) ON DELETE CASCADE
284 CREATE_TABLE(DeviceCapabilities)
285 COLUMN_NOT_NULL(DeviceCapID, INTEGER, primary key autoincrement)
286 COLUMN_NOT_NULL(DeviceCapName, TEXT, unique)
287 COLUMN(DeviceCapDefaultValue, INT,)
290 CREATE_TABLE(FeatureDeviceCapProxy)
291 COLUMN_NOT_NULL(FeatureUUID, INT, not null)
292 COLUMN_NOT_NULL(DeviceCapID, INT, not null)
295 FOREIGN KEY (FeatureUUID) REFERENCES FeaturesList (FeatureUUID) ON DELETE CASCADE
296 FOREIGN KEY (DeviceCapID) REFERENCES DeviceCapabilities (DeviceCapID) ON DELETE CASCADE
297 PRIMARY KEY(FeatureUUID,DeviceCapID)
301 CREATE_TABLE(OCSPResponseStorage)
302 COLUMN_NOT_NULL(cert_chain, TEXT, primary key)
303 COLUMN(end_entity_check, INT,)
304 COLUMN(ocsp_status, INT,)
305 COLUMN(next_update_time, BIGINT,)
308 CREATE_TABLE(CRLResponseStorage)
309 COLUMN_NOT_NULL(distribution_point,TEXT, primary key)
310 COLUMN_NOT_NULL(crl_body, TEXT,)
311 COLUMN(next_update_time, BIGINT,)
314 CREATE_TABLE(SettingsList)
315 COLUMN_NOT_NULL(appId, INT,)
316 COLUMN_NOT_NULL(settingName, TEXT,)
317 COLUMN_NOT_NULL(settingValue, TEXT,)
319 FOREIGN KEY (appId) REFERENCES WidgetInfo (app_id) ON DELETE CASCADE
323 CREATE_TABLE(AppControlInfo)
324 COLUMN_NOT_NULL(app_id, INT,)
325 COLUMN_NOT_NULL(execute_index, INT,)
326 COLUMN_NOT_NULL(src, TEXT,)
327 COLUMN_NOT_NULL(operation, TEXT,)
328 COLUMN_NOT_NULL(uri, TEXT,)
329 COLUMN_NOT_NULL(mime, TEXT,)
330 COLUMN_NOT_NULL(disposition, TINYINT, DEFAULT 0)
333 PRIMARY KEY(app_id, operation, uri, mime)
334 FOREIGN KEY(app_id) REFERENCES WidgetInfo (app_id) ON DELETE CASCADE
338 CREATE_TABLE(WidgetWhiteURIList)
339 COLUMN_NOT_NULL(uri, VARCHAR(65536), primary key)
340 COLUMN_NOT_NULL(subdomain_access, INT, CHECK(subdomain_access between 0 and 1))
343 CREATE_TABLE(EncryptedResourceList)
344 COLUMN_NOT_NULL(app_id, INT,)
345 COLUMN_NOT_NULL(resource, TEXT,)
346 COLUMN_NOT_NULL(size, INT,)
349 FOREIGN KEY (app_id) REFERENCES WidgetInfo (app_id) ON DELETE CASCADE
354 INSERT INTO WidgetWhiteURIList VALUES("http://samsung.com", 1);
355 INSERT INTO WidgetWhiteURIList VALUES("http://orange.fr", 1);
356 INSERT INTO WidgetWhiteURIList VALUES("http://orange.co.uk", 1);
359 /*TODO: It will be removed when user agent is fixed. User agent MUST be configurable in development...*/
360 CREATE_TABLE(UserAgents)
361 COLUMN_NOT_NULL(key_name, TEXT,)
362 COLUMN(key_value, TEXT, DEFAULT '')
364 TABLE_CONSTRAINTS(PRIMARY KEY(key_name))
368 INSERT INTO UserAgents VALUES("Galaxy S", "Mozilla/5.0 (Linux; U; Android 2.3.7; en-gb; GT-I9000 Build/GRJ22) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1");
369 INSERT INTO UserAgents VALUES("Galaxy S II", "Mozilla/5.0 (Linux; U; Android 2.3.5; en-gb; GT-I9100 Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1");
370 INSERT INTO UserAgents VALUES("Galaxy S III", "Mozilla/5.0 (Linux; U; Android 4.0.4; en-gb; GT-I9300 Build/IMM76D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30");
371 INSERT INTO UserAgents VALUES("SLP Galaxy", "Mozilla/5.0 (Linux; U; Android 2.3.4; en-us; GT-I9500 Build/GINGERBREAD) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1");
372 INSERT INTO UserAgents VALUES("Tizen", "Mozilla/5.0 (Linux; U; Tizen 2.1; en-us; SAMSUNG GT-I8800) AppleWebKit/537.1 (KHTML, like Gecko) Version/2.1.0 Mobile");
373 INSERT INTO UserAgents VALUES("Galaxy Nexus", "Mozilla/5.0 (Linux; U; Android 4.0.3; en-us; Galaxy Nexus Build/IML74K) AppleWebKit/535.7 (KHTML, like Gecko) Mobile Safari/535.7");
374 INSERT INTO UserAgents VALUES("Samsung", "Mozilla/5.0 (SAMSUNG; SAMSUNG-GT-I9200/1.0; U; Linux/SLP/2.0; ko-kr) AppleWebKit/534.4 (KHTML, like Gecko) Dolfin/2.0 Mobile");
375 INSERT INTO UserAgents VALUES("Samsung Dolfin", "SAMSUNG-GT-S8500/S8500XXJD2 SHP/VPP/R5 Dolfin/2.0 Nextreaming SMM-MMS/1.2.0 profile/MIDP-2.1 configuration/CLDC-1.1");
376 INSERT INTO UserAgents VALUES("Apple iPhone 3", "Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_1_3 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7E18 Safari/528.16");
377 INSERT INTO UserAgents VALUES("Apple iPhone 4", "Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_5 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8L1 Safari/6533.18.5");
378 INSERT INTO UserAgents VALUES("Apple iOS 5", "Mozilla/5.0 (iPhone; CPU iPhone OS 5_0_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A405 Safari/7534.48.3");
379 INSERT INTO UserAgents VALUES("Android 2.3 (Nexus One)", "Mozilla/5.0 (Linux; U; Android 2.3.4; en-us; Nexus One Build/GRJ22) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1");
380 INSERT INTO UserAgents VALUES("Opera Mobi", "Opera/9.80 (Windows NT 6.1; U; Edition IBIS; en) Presto/2.6.30 Version/10.63");
381 INSERT INTO UserAgents VALUES("Samsung Bada", "Mozilla/5.0 (SAMSUNG; SAMSUNG-GT-S8500/1.0; U; Bada/1.0; en-us) AppleWebKit/533.1 (KHTML, like Gecko) Dolfin/2.0 Mobile WVGA SMM-MMS/1.2.0 OPN-B");
382 INSERT INTO UserAgents VALUES("Orange TV 3.2 iPhone", "Mozilla/5.0 (OrangeTVPlayer4iPhone/iPhone2,1; U; CPU iPhone OS 4_3 like Mac OS X; fr) AppleWebKit/525.18.1 (KHTML, like Gecko) Version/3.1.1 Mobile/5F136 Safari/525.20 OrangeAppliTVHTTPLS/3.2.16");
383 INSERT INTO UserAgents VALUES("Orange TV 3.2 iPad", "Mozilla/5.0 (OrangeTVPlayer4iPhone/iPad1,1; U; CPU iPhone OS 4_3 like Mac OS X; fr) AppleWebKit/525.18.1 (KHTML, like Gecko) Version/3.1.1 Mobile/5F136 Safari/525.20 iPad=SIMENABLED OrangeAppliTVHTTPLS/3.2.16");
384 INSERT INTO UserAgents VALUES("Orange TV 3.3 iOS", "OrangeTVPlayer4iPhone/_iOS_3.3.3_Apple_iPhone2,1_4.1_OrangeAppliTVHTTPLS/3.3.3");
385 INSERT INTO UserAgents VALUES("Chrome Browser for android", "Mozilla/5.0 (Linux; U; Android 4.0.1; ko-kr; Galaxy Nexus Build/ITL41F) AppleWebKit/535.7 (KHTML, like Gecko) CrMo/16.0.912.75 Mobile Safari/535.7");
386 INSERT INTO UserAgents VALUES("MANGO(Nokia 800C)", "Mozilla/5.0 (compatible; MSIE 9.0; Windows Phone OS 7.5; Trident/5.0; IEMobile/9.0; Nokia; 800C)");
387 INSERT INTO UserAgents VALUES("Orange TV 3.2 Tizen", "Mozilla/5.0 (Linux; U; Tizen 1.0; fr-fr; GT-I8800) AppleWebKit/534.46 (KHTML, like Gecko) Mobile Tizen Browser/1.0 OrangeAppliTV/3.2.0");
388 INSERT INTO UserAgents VALUES("System user agent", "");
389 INSERT INTO UserAgents VALUES("Samsung Bada 2.0", "Mozilla/5.0 (SAMSUNG; SAMSUNG-GT-S8500/1.0; U; Bada/2.0; en-us) AppleWebKit/534.20 (KHTML, like Gecko) Mobile WVGA SMM-MMS/1.2.0 OPN-B Dolfin/3.0");
390 INSERT INTO UserAgents VALUES("Samsung Desktop", "Mozilla/5.0 (U; Linux/SLP/2.0; ko-kr) AppleWebKit/533.1 (KHTML, like Gecko)");
391 INSERT INTO UserAgents VALUES("Firefox 5", "Mozilla/5.0 (Windows NT 6.1; rv:9.0.1) Gecko/20100101 Firefox/9.0.1");
392 INSERT INTO UserAgents VALUES("Firefox 5 Fennec(Mobile)", "Mozilla/5.0 (Android; Linux armv7l; rv:5.0) Gecko/20110615 Firefox/5.0 Fennec/5.0");
393 INSERT INTO UserAgents VALUES("Safari 5.0", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/534.52.7 (KHTML, like Gecko) Version/5.1.2 Safari/534.52.7");
394 INSERT INTO UserAgents VALUES("Google Chrome 18.0", "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.16 (KHTML, like Gecko) Chrome/18.0.1003.1 Safari/535.16");
395 INSERT INTO UserAgents VALUES("Internet Explorer 9", "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)");
396 INSERT INTO UserAgents VALUES("Galaxy Tab 10.1", "Mozilla/5.0 (Linux; U; Android 3.0.1; en-us; GT-P7100 Build/HRI83) AppleWebKit/534.13 (KHTML, like Gecko) Version/4.0 Safari/534.13");
397 INSERT INTO UserAgents VALUES("iPad 2", "Mozilla/5.0 (iPad; U; CPU OS 4_3_5 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8L1 Safari/6533.18.5");