stucki
I can't speak for @GOSbert, but for what you're appearantly trying to achieve
I use adb and usb-debugging regularly to mount my phone as a drive on my computer.
you can just connect your device to a computer for file transfer via USB (if necessary change Settings> Security & privacy> Exploit protection> USB-C port acordingly beforehand) and
- Unlock your device.
- With a USB cable, connect your device to your computer.
- On your device, tap the "Charging this device via USB" notification.
- Under "Use USB for," select File Transfer.
- A file transfer window will open on your computer. Use it to drag files.
- When you're done, eject your device from Windows.
- Unplug the USB cable.
source: https://support.google.com/pixelphone/answer/2840804?hl=en
ADB and USB-debugging are not only unnecessary for what you seem to intend to achieve but also pose an unnecessary risk:
ADB exposes an enormous amount of attack surface.
If you have ADB access, you can enable perf events, but there's a lot more attack surface via ADB than that and it's as close as it gets to having root access without an exploit.
ADB has near full control of the device, but isn't meant to actually have root access on a production build. It can be used to do everything you can do via the UI but also far more which expose a lot of attack surface.
ADB isn't advisable on a production device either way.
source: https://discuss.grapheneos.org/d/28966-granting-root-access-to-adb-shell-only/13