Same problem
Im facing the same problem here. And its happened only when i upgrade to android 9. First i try the developer options and enable the USB debugging option and chose the MTP
and its work but after one day its not even when i try the same coz its by default its go back to charge only...