This is a simple patch to fix USB MTP feature when connecting your Redmi Note 4X into your computer using its USB cable. This flashable .zip file needs no additional setup. Simply download, transfer it to your phone’s internal storage, and flash it through custom recovery (TWRP is recommended). The one who shared it, Helmiau, stated that this patch contains additional text for build.prop file inside the system partition. Therefore, it should also work on all Xiaomi devices.
Inside this patch file:
#MTP FIXES persist.service.adb.enable=1 persist.service.debuggable=1 persist.sys.usb.config=mtp,adb
Original download link:
Mirror link from our server. The link is direct download and supports resume-able multiple connections: