When developing apps, I face often a problem of managing files in my own app private directory, under Android/data/com.package.name/... - to copy, create, edit, delete test files there. On Android 11 (possibly newer versions in the future) it is only possible on physical devices when connected with a USB cable. In emulators, it's utterly impossible to access that directory - adb shell or the mediocre "Device File Explorer" in Android studio, currently give me only "Permission denied" error, when trying to enter or list Android/data folder. Even on older versions of Android using adb shell or "Device File Explorer" is not convenient, and the device file explorer does not even list "hidden" files and folders (names starting with a dot), which I also need to manage.
What is the best solution to this problem? On older versions of Android I was using a WebDAV server app from Google Play, that lets me mount the entire storage of the emulator (or device) as a virtual directory or drive on my developer computer, but on Android 11 it cannot access my app's sandbox directory.