From 392f53d41104f849a4ee88c9e179e7dad2fd647a Mon Sep 17 00:00:00 2001 From: Amogh Munikote Date: Sat, 23 Nov 2024 11:47:36 -0800 Subject: [PATCH] Added adb service to startup --- userspace/usr/comma/adb.sh | 11 +++++++++++ userspace/usr/comma/comma.sh | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 userspace/usr/comma/adb.sh diff --git a/userspace/usr/comma/adb.sh b/userspace/usr/comma/adb.sh new file mode 100644 index 00000000..91b4ea8d --- /dev/null +++ b/userspace/usr/comma/adb.sh @@ -0,0 +1,11 @@ +#!/usr/bin/bash +set -e + +PORT=5555 + +setprop service.adb.tcp.port $PORT +sudo systemctl start adbd + +IP=$(echo $SSH_CONNECTION | awk '{ print $3}') +echo "then, connect on your computer:" +echo "adb connect $IP:$PORT" \ No newline at end of file diff --git a/userspace/usr/comma/comma.sh b/userspace/usr/comma/comma.sh index 0f8006e5..ef586d72 100755 --- a/userspace/usr/comma/comma.sh +++ b/userspace/usr/comma/comma.sh @@ -25,6 +25,9 @@ fi sudo chown comma: /data sudo chown comma: /data/media +# run adb service +./adb.sh + handle_setup_keys () { # install default SSH key while still in setup if [[ ! -e /data/params/d/GithubSshKeys && ! -e /data/continue.sh ]]; then