title: Change characteristics of USB host mode programatically in android?
body: <p>I'm working in <strong>serial communication</strong> project using <strong>USB</strong> in host mode device won't charge, found some unsafe solutions for this is like <strong>Type-c USB cord</strong> or  <strong>OTG-Y connector</strong>.</p>
  
  <p>Another solution is rooting mobile and setting </p>
  
  <pre><code> rp.usb_host = 0
  </code></pre>
  
  <p>what would happen if we change <strong>rp.usb_host=0</strong> will the device act as the host and will charge the device or the device wont act as the host at all? will serial communication get interrupts? 
  is there any better solution for this using coding?</p>