When I connect my Google Pixel 6 to my Windows 11 laptop via a USB cable, it only charges by default and does not allow me to transfer files without first enabling file transfers on the handheld, in USB preferences.
Unfortunately, every time I undock my laptop then redock, I need to reconfigure that setting, which constantly resets to "No data transfer". I am not alone in this situation, as this forum post (and another question) shows, but this happens on a fully up-to-date Android 15 (and takes more than 5 s each time).
Is there no way to remember the value of "Use USB for" with my laptop? Note that I am not an Android developer and store potentially confidential data on the handheld, so granting an unsafe allow all as Developer options lets me configure (regardless of which computer is plugged) is not an option.