Why can't Windows detect phones, even when the USB driver is installed? After reinstalling Windows, both two of my Samsung phones cannot be recognized by the OS. In Device Manager it shows this:

I tried to install:

Samsung USB Driver for Windows
Android Studio and SDK
Samsung Smart Switch

And activated USB Debugging mode, but none of this still work.
Despite of that Odin can still detect it:

Using adb devices -l yields this result:
List of devices attached
420039c4de446300       device product:j1x3gxx model:SM_J120H device:j1x3g

or
List of devices attached
504bc61e               device product:j2y18ltedx model:SM_J250F device:j2y18lte

Do you know why?
Often you first have to install the driver and then connect the device. If you do it the other way around the driver will not be applied correctly. Delete the shown MTP entry and disconnect + reconnect your phone. Also run Windows update with enabled &quot;updates for all Microsoft products&quot;.
Regarding adb your new PC is unknown to the device (because the stored adb RSA key has been lost because of the new installation) and therefore it denies adb access (device unauthorized).
You first have to unlock the device (enter pin/password/pattern) and then accept the dialog that asks you if your device is allowed to connect via adb.
And that Odin works at the same time is because Odin uses different drivers. From the perspective of your computer you have 3 USB devices, one for MTP, one for adb and one for Odin. Check it out by selecting the MTP device and then changing the device manager &quot;View&quot; -&gt; &quot;Devices by connection&quot;.
You will see al the USB device endpoints from your device.