I'm running Android Pie on a rooted OnePlus 6, and I wanted to know how I can enable OTG with a shell command. I need this in order to automate some tasks.
There is a setting that can toggle OTG, found in settings > system > OTG storage
, so I figured something like this would work:
settings put global otg_enabled 1
However I'm unsure what the setting for OTG is actually called; I tried a bunch of possibilities but none seemed to work. Also tried googling it, but found nothing.
Anyone able to help me out here?