OTG is an extremely helpful element for some as it can enable you to exchange information over your gadget’s small-scale USB or USB-C port. You can connect a hard drive, play games with a controller, or tune in to music. Some gadget makers particularly permit it, and OnePlus is one of them.
Enable OTG On OnePlus Devices Running OxygenOS
One of the real issues with the feature in OxygenOS is that it naturally turns off if not used for ten minutes, expecting clients to re-empower it at whatever point they need to make utilization of it. Because of XDA Senior Member Fif_, there’s a simple method to keep away from this and it doesn’t require root. All you require is adb, which you can figure out how to set up on your PC here. You can likewise use root if you wish to do it on your gadget with an app like Termux.
How to enable always-on OTG in OxygenOS
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
oxygenos otg enable.
Remember that each time you cripple OTG and re-empower it, you should run this order once more. Thus, we prescribe doing it within an established terminal if you can. This will spare you from having to reconnect your mobile to your PC inevitably. You never again need to return and ensure it’s empowered on your gadget. All the command does is change a framework banner to stop your mobile turning OTG off consequently. This is affirmed taking a shot at the OnePlus 3, OnePlus 3T, OnePlus 5, OnePlus 5T, and the OnePlus 6. It should work for each OxygenOS variant released for those gadgets also.