android - 如何在一行中输入 adb shell 命令?

标签 android shell unix cmd adb

我想在一行中键入多个 adb shell 命令,
例如,我想键入 adb shellsucd sys 在一起。我尝试将它们与 &&&
bzw.adb shell && su && cd sys 连接起来,
但它似乎不适用于 adb 命令,但适用于 windows 命令。
有人知道问题出在哪里吗?

最佳答案

自己解决 adb shell "su -c 'cd sys'"

关于android - 如何在一行中输入 adb shell 命令?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24486887/

相关文章:

windows - 在 shell 脚本中检测 windows 操作系统版本

regex - grep 或命令不工作 unix solaris

regex - 不能在 awk 命令中使用 "("

android - 协程CancellationException预期行为

android - Phongap config.xml 和 Cordova config.xml 之间有区别吗?

shell - 通过脚本调用 Alt+F2

shell - 使用hadoop命令显示子目录

java - IOException : Permission Denied

Android:Webview 性能

linux - 在 bash shell 中获取圆的半径