Page 1 of 1

Patch for Samsung S8300

PostPosted: Mon Jun 14, 2010 12:17 pm
by playadz
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

Re: Patch for Samsung S8300

PostPosted: Mon Jun 14, 2010 12:20 pm
by kamermans
I will prepare one right now.

Re: Patch for Samsung S8300

PostPosted: Mon Jun 14, 2010 12:31 pm
by kamermans
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.

Re: Patch for Samsung S8300

PostPosted: Mon Jun 14, 2010 12:39 pm
by playadz
Awesome, thanks a lot, I'll try this tomorrow

Re: Patch for Samsung S8300

PostPosted: Mon Jun 14, 2010 12:43 pm
by kamermans
No problem! I'll get this UA added to the main WURFL.