[英]How to use Bash in adb (android ) instead of Shell?
我目前正在使用 adb 终端访问我的数据库文件。 但是,我只能使用以下方法访问终端:
./adb shell
我想从 sh 切换到 bash,因为它对于某些快捷方式更方便。 我该怎么做?
我不认为 adb 有 bash 选项,如果您键入adb help ,您将看到 shell 选项而不是 bash 选项
shell:
shell [-e ESCAPE] [-n] [-Tt] [-x] [COMMAND...]
run remote shell command (interactive shell if no command given)
-e: choose escape character, or "none"; default '~'
-n: don't read from stdin
-T: disable PTY allocation
-t: force PTY allocation
-x: disable remote exit codes and stdout/stderr separation
emu COMMAND run emulator console command
可能是如果您可以分享,您在运行快捷方式或命令时遇到了哪些具体困难
但是,如果您仍然想将 adb 与 bash 一起使用,您可以查看以下链接
https://android.stackexchange.com/questions/19315/how-to-set-bash-as-default-shell
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.