If I recall, BMW parts make a wire with the female connector. You'd need to wire the other end yourself (and it is quite tight in there) but then it would be a drop in solution.
I was thinking of doing it myself but then said bugger it, cut it off and replaced it with an SAE connector to connect a USB adapter.