Are you asking how to get file transfer instead of charging when you connect the device to a PC USB port? If so, then you'll want to pull down the notification panel on the phone and tap so you get other options. Here's how it looks on my S10+ running Android 12.