简体   繁体   English

无法在 adb shell 中使用 su 命令

[英]Can't use su command in adb shell

Trying to become super user to access the /data/data directory but command not working试图成为访问 /data/data 目录的超级用户,但命令不起作用

I'm trying it on the virtual device in android studio to access the file system but permission was denied tried to become super user but command does not work.我正在 android studio 中的虚拟设备上尝试访问文件系统,但权限被拒绝尝试成为超级用户,但命令不起作用。

generic_x86:/data/data $ su
sh: su: not found

Is there anyway to fix this so that i can become the super user to view the files.有没有办法解决这个问题,这样我就可以成为查看文件的超级用户。

i dont know why but su does not work when you use the Nexus 5X emulator.我不知道为什么,但是当您使用 Nexus 5X 模拟器时su不起作用。 If you use any other emulator the command works and you become super user.如果您使用任何其他模拟器,该命令将起作用并且您成为超级用户。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM