title: How to disable android device usb port
body: <p>I am trying to search if there is a way to disable android device usb port, software level mainly. So users can still charge android device but cannot communicate with PC anymore.</p>
  
  <p>I got some clues in <a href="https://groups.google.com/forum/#!topic/android-developers/TALppd8EYnM" rel="noreferrer">link1</a>. But it looks there is not an easy way for this.</p>
  
  <p>Android OS is a Linux based OS. So I am wondering if there is a config file in Android OS that allows root users to disable usb port, like files under path /etc in Linux OS.</p>