设备已root,用usb线插电脑上,会弹出选项,选择了查看文件后,就在AndroidStudio中看不到文件目录结构了。
网上搜了搜,说是打开了root权限,要关闭,就是下载一个SuperSU的apk,然后关闭SU权限,
具体内容见下:
After struggling with this for a day, the answer for me was associated with disabling SuperUser permissions for the ADB shell on my Android Device.
If you have rooted your device and are using an app like SuperSU, try disabling the SU permission for ADB shell in the apps view list.
- First disconnect your Android device from the computer running Android Studio
- On your Android device open SuperSU and select the apps tab.
- Click on ADB shell and select Access:'deny'
- Reconnect your device to your dev computer using a USB cable
- In Android Studio open the "Device File Explorer".
You should now see a list of files on the device, including files in /data/data/ and its subfolders
You would think that having SU permissions would be a good thing: but in this case, no.