op: better adb SSH (#35135)

* op: better adb SSH

* fix
pull/35136/head
Adeeb Shihadeh 4 days ago committed by GitHub
parent 5c1f28591f
commit ddb19cc074
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      tools/adb_shell.sh
  2. 2
      tools/op.sh
  3. 7
      tools/scripts/adb_ssh.sh

@ -1,8 +0,0 @@
#!/usr/bin/env expect
spawn adb shell
expect "#"
send "cd data/openpilot\r"
send "export TERM=xterm-256color\r"
send "su comma\r"
send "clear\r"
interact

@ -275,7 +275,7 @@ function op_venv() {
function op_adb() { function op_adb() {
op_before_cmd op_before_cmd
op_run_command tools/adb_shell.sh op_run_command tools/scripts/adb_ssh.sh
} }
function op_check() { function op_check() {

@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -e
# this is a little nicer than "adb shell" since
# "adb shell" doesn't do full terminal emulation
adb forward tcp:2222 tcp:22
ssh comma@localhost -p 2222
Loading…
Cancel
Save