After struggling with this for one day, the answer for me was related to disabling SuperUser permissions for the ADB shell on my Android device.
If you root your device and use an application such as SuperSU, try disabling the SU permission for the ADB shell in the application view list.
- First disconnect the Android device from the computer running Android Studio
- On your Android device, open SuperSU and select the apps tab.
- Click on the ADB shell and select Access: 'deny'
- Connect your device to your computer using a USB cable
- In Android Studio, open Device File Browser.
Now you should see a list of files on the device, including files in / data / data / and its subfolders
You might think that having SU permissions would be nice, but not in this case.
Disable SU permissions for the ADB shell in SuperSU
source share