Android Studio 3 (All Versions) - device for viewing device files does not show anything

When I open the Device file explorer window in Android Studio Preview 3, I don’t see the device files (the message "Do not show anything" appears).
I searched a lot for this topic, but could not find anything suitable for this problem.

I am using my test device:

Android Galaxy S5 running Android OS 6 (API 23) - rooted

The specific build of Android Studio that I use:

Android Studio 3.0 Beta 6
Assembly No. AI-171.4333198, built September 13, 2017.
JRE: 1.8.0_152-release-915-b01 amd64
JVM: JetBrains sro 64-bit OpenJDK virtual machine
Windows 10 10.0

Any ideas how to solve this problem?

+14
source share
2 answers

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.

  1. First disconnect the Android device from the computer running Android Studio
  2. On your Android device, open SuperSU and select the apps tab.
  3. Click on the ADB shell and select Access: 'deny'
  4. Connect your device to your computer using a USB cable
  5. 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

+22
source

AS file explorer will execute su 0 sh -c 'ls -l/' to make su 0 sh -c 'ls -l/' list of files. For some unknown reason, SuperSu removes single quotes, and the actual command is su 0 sh -c ls -l/ . In this case, -l will not work. The AS file manager may have some problems analyzing the output. So there is nothing to show. You can check the AS log to get this behavior. Open the log from: help -> show log in explorer

+4
source

Source: https://habr.com/ru/post/1272180/


All Articles