I do not know how to get rid of these messages. But they do not allow working with the Android NDK ndk-gdbscript. I found this question while searching for a way to get the debugger to work after receiving this error:
ERROR: Could not setup network redirection to gdbserver?
Maybe using --port=<port> to use a different TCP port might help?
, - , Samsung , , , , Samsung Galaxy Note 2. (, run-as) selinux stderr.
ndk-gdb script , , , , . selinux . , $NDK_HOME/ndk-gdb :
diff --git a/ndk-gdb b/ndk-gdb
index 537808e..c8561e5 100755
--- a/ndk-gdb
+++ b/ndk-gdb
@@ -620,7 +620,7 @@ else
fi
-adb_var_shell2 DATA_DIR run-as $PACKAGE_NAME /system/bin/sh -c pwd
+adb_var_shell DATA_DIR "run-as $PACKAGE_NAME /system/bin/sh -c pwd 2>/dev/null"
if [ $? != 0 -o -z "$DATA_DIR" ] ; then
echo "ERROR: Could not extract package data directory. Are you sure that"
echo " your installed application is debuggable?"