In case MTP mode isn’t working on your Redmi 4X device, and your PC can’t find your device when it’s connected via USB cable, then you might want to try this simple solution. This was tested on MULTIROM firmware, but will probably work on other versions as well.
Solution for not working MTP Mode on Redmi 4X
Open “system/build.prop” and add these lines in the bottom of the file.
Save and confirm changes.
That’s it! MTP mode should now work perfectly fine!
Here you can find more detailed guide (it’s written for Redmi 4 Prime, but works pretty much the same way): Fix MTP mode on Redmi 4 Prime
Download MTP Fix for 22.214.171.124 and 126.96.36.199 ROM versions
Below you can also download and try the following patches for Official MIUI Global ROMS 188.8.131.52 and 184.108.40.206. Install via TWRP. This patch will only fix MTP on your phone.