Android plugged into car gives annoying popup "The connected device is unable to access data on this device." Every time that I connect via USB my not-rooted Galaxy S6 (SM-G920F with stock Android 7.0) to my car (a Kia Soul 2015), this popup annoys me:
"The connected device is unable to access data on this device. Reconnect the USB cable and try again. Android File Transfer or Samsung Smart Switch..." and I have to touch "OK" to dismiss it.

I dismissed it so many times that at this point I have nightmares at night about this popup that tries to kill me wrapping itself around me and taking my breath away.

What I tried is to set "USB configuration" to "Charge this phone". In this case the popup doesn't appear when I plug the USB cable, but after a while, if I also have enabled "USB debugging" (that I need), the "USB configuration" reverts to "MTP (Media Transfer Protocol)" by itself and the popup reappear at the next cable plug. Double annoyance!

Any way to kill that popup definitely?

(My car in this case: Kia Soul 2015)
I have been dealing with this all year and finally figured out a solution! Here's the steps:

On your phone, go to settings.
Scroll down to and click on &quot;about phone&quot;
Click on &quot;Software information&quot;
Find &quot;Build number&quot;, and click on it until you get a message that says that you're a developer. I think it's 10 times.
Go back
Go back
Scroll to the bottom and you should now see &quot;developer options&quot;
Scroll down and click on &quot;default usb configuration&quot;
Select &quot;charging phone only&quot;
Go back
DONE!