OK, the example of plugin is below. Just pack xoom.xml and xoom.php into single archive and install it like usual joomla plugin.
xoom.xml:
<?xml version="1.0" encoding="utf-8"?>
<install version="1.5" type="plugin" group="mobile" method="upgrade">
<name>Mobile - Xoom</name>
<files>
<filename plugin="xoom">xoom.php</filename>
</files>
</install>
xoom.php:
<?php
defined('_JEXEC') or die('Restricted access');
jimport('joomla.plugin.plugin');
class plgMobileXoom extends JPlugin{
function plgMobileXoom(&$subject,$config){parent::__construct($subject,$config);}
function onDeviceDetection(&$MobileJoomla_Settings, &$MobileJoomla_Device)
{
if(strpos($_SERVER['HTTP_USER_AGENT'], 'Mozilla/5.0 (Linux; U; Android 3.1; en-us; sdk Build/MASTER)')===0)
$MobileJoomla_Device['markup'] = '';
}
}