title: bypass android usb host permission confirmation dialog
body: <p>I want to use android in industry,</p>
  
  <p>I can connect to Profilic and Ftdi USB to Serial chips with slickdevlabs.com library without any problem.</p>
  
  <p>The application has a service and it starts on boot,connect to the usb serial port and do the other things.</p>
  
  <p>my problem is that the host device does not have any interaction with user,</p>
  
  <p>so when the android asks </p>
  
  <pre><code>Allow the app "MyAPP" to access the USB device ?
  [checkmark]Use by default for this USB device
  Cancel            OK
  </code></pre>
  
  <p>there is no person to click on ok.</p>
  
  <p>even when I check the use by default... checkbox,If I reinsert the USB ,or reboot the host device, it asks again on next boot.</p>
  
  <p>I ran the service and app with SuperUser mode,but no difference,it asks again.</p>
  
  <p>I added intent filter but no difference,it asks me every time.</p>
  
  <pre><code>        &lt;intent-filter&gt;
              &lt;action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" /&gt;
              &lt;action android:name="android.hardware.usb.action.USB_DEVICE_DETACHED" /&gt;
          &lt;/intent-filter&gt;
  
          &lt;meta-data
              android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
              android:resource="@xml/device_filter" /&gt;
          &lt;meta-data
              android:name="android.hardware.usb.action.USB_DEVICE_DETACHED"
              android:resource="@xml/device_filter" /&gt;
  </code></pre>
  
  <p>Any opinion how to bypass or disable it ?</p>
  
  <p>I have root and SU access.</p>