Enable Always-On OTG on OnePlus Devices (3/3T/5/5T/6) devices running OxygenOS.
OTG or USB On-the-go is a feature that allows USB devices to acts as a host when communicating with other USB devices. This feature allows users to access USB devices such as pen drives, keyboard etc to their smartphone or tablet. Using OTG, you can also connect a hard drive with your smartphone, a controller to play games or other uses.
Permanently Enable Always on OTG in OxygenOS
One of the major issues with the feature in OxygenOS is that it automatically switches off if not used for ten minutes, requiring users to re-enable it whenever they want to make use of it. Thanks to XDA Senior Member Fif_, there’s an easy way to avoid this and it doesn’t even require root
How to enable always-on OTG in OxygenOS
Easily enable always-on OTG on your OnePlus 6/5T/5/3T/3 devices running OxygenOS with the steps below:
Step 1: Enable OTG in Settings
Firstly, you’ll need to enable OTG on your device. You can do that by opening Settings -> Advanced and enable “OTG storage.”
Step 2: Permanently enable OTG
Next, you’ll need to run an adb command. Remove the “adb shell” prefix if you are running this command in a terminal emulator on your device
adb shell settings put global oneplus_otg_auto_disable 0
You can verify that the setting has changed with the following command.
adb shell settings get global oneplus_otg_auto_disable