Patch for Samsung S8300

Discussion about devices being detected incorrectly. You can submit incorrectly detected user agents online at http://www.tera-wurfl.com/ua_submission

Patch for Samsung S8300

Postby playadz » Mon Jun 14, 2010 12:17 pm

Hi all,

could someone please provide me with a patch (and optionnaly an explanation on how to use it :-)) for this user agent

SAMSUNG-S8300-Bouygues/S8300AGIC1 SHP/VPP/R5 NetFront/3.5 NexPlayer/2.9.1 SMM-MMS/1.2.0 profile/MIDP-2.1 configuration/CLDC-1.1

It has to be detected as a Samsung S8300

Thanks a lot
playadz
 
Posts: 11
Joined: Mon Jun 14, 2010 12:14 pm

Re: Patch for Samsung S8300

Postby kamermans » Mon Jun 14, 2010 12:20 pm

I will prepare one right now.
Thanks,

Steve Kamerman
Tera-WURFL Author
COO of ScientiaMobile

IMPORTANT ANNOUNCEMENT! Tera-WURFL and WURFL have joined forces! We have launched ScientiaMobile to provide commercial support for our device detection solutions.

Tera-WURFL.com | Device Explorer
kamermans
Site Admin
 
Posts: 323
Joined: Wed Mar 10, 2010 12:06 pm
Location: Fort Worth, TX

Re: Patch for Samsung S8300

Postby kamermans » Mon Jun 14, 2010 12:31 pm

Here is an in-depth explanation of patch files: http://wurfl.sourceforge.net/patchfile.php

The first thing you need to do is figure out if your device is already in the WURFL. To do this, go to http://www.tera-wurfl.com/explore/browse/ and search for "Samsung S8300". It will lead you to this page: http://www.tera-wurfl.com/explore/?acti ... s8300_ver1 . The problem is that your device exists but is not being detected properly. To remedy this, you just need to add your user agent and point it to the existing Samsung S8300. You can see from the previous link that the WURFL ID for the S8300 is samsung_s8300_ver1 - we'll use this to point your user agent to the correct device. Here's how to do that with a patch file:

Code: Select all
<wurfl_patch>
  <devices>
    <device user_agent="SAMSUNG-S8300-Bouygues/S8300AGIC1 SHP/VPP/R5 NetFront/3.5 NexPlayer/2.9.1 SMM-MMS/1.2.0 profile/MIDP-2.1 configuration/CLDC-1.1" fall_back="samsung_s8300_ver1" id="custom_samsung_s8300"/>
  </devices>
</wurfl_patch>


In the patch file, the fall back tells Tera-WURFL to take all the capabilities from samsung_s8300_ver1 and the id is a unique name that you refer to this device as - I recommend starting it with "custom" so it doesn't conflict with anything else in the WURFL. Now you just need to put this in a file and call it something like "custom_patch.xml" (put this in your data/ directory) and add that filename to your TeraWurflConfig.php file under the PATCH_FILE directive. Now reload the WURFL from your Tera-WURFL admin page and your device will be detected properly.
Thanks,

Steve Kamerman
Tera-WURFL Author
COO of ScientiaMobile

IMPORTANT ANNOUNCEMENT! Tera-WURFL and WURFL have joined forces! We have launched ScientiaMobile to provide commercial support for our device detection solutions.

Tera-WURFL.com | Device Explorer
kamermans
Site Admin
 
Posts: 323
Joined: Wed Mar 10, 2010 12:06 pm
Location: Fort Worth, TX

Re: Patch for Samsung S8300

Postby playadz » Mon Jun 14, 2010 12:39 pm

Awesome, thanks a lot, I'll try this tomorrow
playadz
 
Posts: 11
Joined: Mon Jun 14, 2010 12:14 pm

Re: Patch for Samsung S8300

Postby kamermans » Mon Jun 14, 2010 12:43 pm

No problem! I'll get this UA added to the main WURFL.
Thanks,

Steve Kamerman
Tera-WURFL Author
COO of ScientiaMobile

IMPORTANT ANNOUNCEMENT! Tera-WURFL and WURFL have joined forces! We have launched ScientiaMobile to provide commercial support for our device detection solutions.

Tera-WURFL.com | Device Explorer
kamermans
Site Admin
 
Posts: 323
Joined: Wed Mar 10, 2010 12:06 pm
Location: Fort Worth, TX


Return to Device Detection Problems

Who is online

Users browsing this forum: No registered users and 1 guest

cron