Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Commit

Permalink
Revert "androdeb: Improve adb-root failure message"
Browse files Browse the repository at this point in the history
This reverts commit 7d8f1ba.
  • Loading branch information
joelagnel committed Jul 9, 2018
1 parent 7d8f1ba commit 12839a9
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions androdeb
Original file line number Diff line number Diff line change
Expand Up @@ -112,18 +112,12 @@ fi
if [[ ! -z ${TARDIR+x} ]] && [[ ! -d $TARDIR ]]; then die 7 "Tar dir specified doesn't exist"; fi

if [ -z "$BUILD_IMAGE" ]; then
do_adb_root "$ADB"
do_adb_root "$ADB" || die 3 "adb root failed, make sure:
- If multiple devices connected, provide --device <serialno> (or -s <serialno>)
- Try to run \"adb root\" manually and see if it works. Typically this needs a userdebug build.
if [ $? -ne 0 ]; then

c_error "adb root failed, make sure:"
c_error " * If multiple devices connected, provide --device <serialno> (or -s <serialno>)"
c_error " * Try to run \"adb root\" manually and see if it works. Typically this needs a userdebug build."
c_error ""
c_error "Note: adb can be typically obtained using the android-tools-adb or the adb"
c_error "packages on your distro, or by installing the Android SDK."

die 3 "Exiting."
Note: adb can be typically obtained using the android-tools-adb or the adb
packages on your distro, or by installing the Android SDK."
fi

if [ ! -z "$REMOVE" ]; then
Expand Down

0 comments on commit 12839a9

Please sign in to comment.