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

Commit

Permalink
androdeb: Improve adb-root failure message
Browse files Browse the repository at this point in the history
Signed-off-by: Joel Fernandes <[email protected]>
  • Loading branch information
joelagnel committed Jul 9, 2018
1 parent ba7214e commit c26696d
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions androdeb
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,17 @@ 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" || 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.
do_adb_root "$ADB"

Note: adb can be typically obtained using the android-tools-adb or the adb
packages on your distro, or by installing the Android SDK."
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."
fi
fi

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

0 comments on commit c26696d

Please sign in to comment.