File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change 1212# as well.
1313source $ANDROID_BUILD_TOP /build/envsetup.sh
1414
15- function adb_get_product_device() {
16- local candidate=` adb shell getprop ro.product.device | tr -d ' \r\n' `
17- if [ -z $candidate ]; then
18- candidate=` adb shell getprop ro.hardware | tr -d ' \r\n' `
19- fi
20- echo $candidate
21- }
22-
2315# returns 0 when process is not traced
2416function adb_get_traced_by() {
2517 echo ` adb shell cat /proc/$1 /status | grep -e " ^TracerPid:" | sed " s/^TracerPid:\t//" | tr -d ' \r\n' `
@@ -45,7 +37,7 @@ function gdbclient() {
4537 echo " Usage: gdbclient <pid|processname> [port number]"
4638 return -1
4739 fi
48- local DEVICE=$( adb_get_product_device )
40+ local DEVICE=` adb shell getprop ro.hardware | tr -d ' \r\n ' `
4941
5042 if [ -z " $DEVICE " ]; then
5143 echo " Error: Unable to get device name. Please check if device is connected and ANDROID_SERIAL is set."
You can’t perform that action at this time.
0 commit comments