diff --git a/ndk-gdb b/ndk-gdb
index 8028068..9cc25b8 100755
|
a
|
b
|
fi |
| 327 | 327 | # And check that they are supported by the application |
| 328 | 328 | # |
| 329 | 329 | COMPAT_ABI=none |
| 330 | | CPU_ABI=`$ADB_CMD shell getprop ro.product.cpu.abi | sed -e 's!\\r!!g'` |
| | 330 | CPU_ABI=`$ADB_CMD shell getprop ro.product.cpu.abi | sed -e 's![[:cntrl:]]!!g'` |
| 331 | 331 | echo "$APP_ABIS" | grep -q -F "$CPU_ABI" |
| 332 | 332 | if [ $? = 0 ] ; then |
| 333 | 333 | COMPAT_ABI=$CPU_ABI |
| 334 | 334 | fi |
| 335 | 335 | |
| 336 | | CPU_ABI2=`$ADB_CMD shell getprop ro.product.cpu.abi2 | sed -e 's!\\r!!g'` |
| | 336 | CPU_ABI2=`$ADB_CMD shell getprop ro.product.cpu.abi2 | sed -e 's![[:cntrl:]]!!g'` |
| 337 | 337 | if [ -z "$CPU_ABI2" ] ; then |
| 338 | 338 | log "Device CPU ABI: $CPU_ABI" |
| 339 | 339 | else |
| … |
… |
log "Using app out directory: $APP_OUT" |
| 389 | 389 | # Find the <dataDir> of the package on the device |
| 390 | 390 | DATA_DIR=`$ADB_CMD shell run-as $PACKAGE_NAME /system/bin/sh -c pwd` |
| 391 | 391 | # mmm, a rogue \r at the end, get rid of it. |
| 392 | | DATA_DIR=`echo "$DATA_DIR" | sed -e 's!\\r!!g'` |
| | 392 | DATA_DIR=`echo "$DATA_DIR" | sed -e 's![[:cntrl:]]!!g'` |
| 393 | 393 | log "Found data directory: '$DATA_DIR'" |
| 394 | 394 | if [ $? != 0 ] ; then |
| 395 | 395 | echo "ERROR: Could not extract package's data directory. Are you sure that" |