Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Update functions.sh #7

Merged
merged 1 commit into from

2 participants

@darKpoiSon

stopping and restarting the adb server to ensure it runs as root and the devices are shown

@darKpoiSon darKpoiSon Update functions.sh
stopping and restarting the adb server to ensure it runs as root and the devices are shown
b65a95c
@kosborn
Owner

Looks good for the most part. In my experience, though, 'su' on its own drops you into a root shell, doesn't elevate privs. Might I suggest su -c 'adb start-server'? Should start the server as root, and fork. Either way, I'll push this in tonight.

@kosborn kosborn merged commit cd4c906 into from
@kosborn
Owner

Pushed a fix to this merge, 4b05e85

Just changed invocation of su to su -c 'commands' and dropped the codeblock below where testing that adb is in $PATH.

This should resolve issue #6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 6, 2012
  1. @darKpoiSon

    Update functions.sh

    darKpoiSon authored
    stopping and restarting the adb server to ensure it runs as root and the devices are shown
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 0 deletions.
  1. +4 −0 functions.sh
View
4 functions.sh
@@ -11,6 +11,10 @@ none="\033[0m"
bold="\033[1m"
red="\033[0;31m"
+adb kill-server
+#either su, which helps afterwords for being root
+#or just starting the server with root permissions, which would be: sudo adb start-server
+su
adb start-server
# Check to see if local /tmp/ exists (machine)
Something went wrong with that request. Please try again.