adbshell命令后出现error:devicenotfound错误提⽰
在cmd中输⼊adb shell进⼊linux shell环境前,需要把android模拟器打开(本⽂都是针对模拟器⽽⾔,并⾮真机)。如果启动好了模拟器,且输⼊adb shell命令后出现error: device not found错误提⽰,则可以杀掉adb进程然后重新启动该进程,在cmd中输⼊如下命令:
  adb kill-server
  adb start-server
注意:这⾥着重注意,要想adb shell命令执⾏成功,必须要同时打开android模拟器。
linux执行shell命令
这是执⾏成功后,以root权限进⼊Linux系统,可执⾏Linux命令。