2017-12-29 20 views
0

私は現在、データベースファイルにアクセスするためにadb端末を使用しています。私はそれがはるかに便利いくつかのショートカットのためであるとしてbashにSHから切り替えたいShellの代わりにadb(アンドロイド)でBashを使用するには?

./adb shell 

:しかし、私はこれだけを使用して、端末にアクセスすることができます。それ、どうやったら出来るの?

+1

あなたの 'Android'デバイスに' bash'バイナリがありますか? –

答えて

0

私はあなたがADB助けを入力すると、あなたが共有することができた場合には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のオプションを持っていると思ういけませんあなたはまだbashのでADBを使用したい場合

しかしショートカットやコマンドを実行するには、あなたは下のリンクで見ることができます

https://android.stackexchange.com/questions/19315/how-to-set-bash-as-default-shell

関連する問題