Download this app to your desktop
This app is developed for (and tested on) devices running Xiaomi's MIUI Android ROM.
It is NOT guaranteed that this app will work with other devices/ROMs.
* You may need to enable USB debugging for this app to function properly *
I've encountered the following problem on my MIUI device:
After turning off both MTP and PTP connections from the notification bar drop down menu and reconnecting the device to the PC, this menu does not appear anymore. Since both MTP and PTP are turned off, the PC doesn't see the device. MTP and PTP can't be turned back, since USB connection settings are not accessible from the phone's Settings.
This app simply opens the USB connection settings, so MTP or PTP can be turned back on.
If you have any questions or feedback, feel free to contact me by e-mail.