From: shingil.kang Date: Mon, 18 May 2015 04:55:18 +0000 (+0900) Subject: If status of tizen/android device is unauthorized, block sdb connection. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=55793fa9b2b02ef7ccab2d0dc7adeb3379b550cd;p=sdk%2Ftools%2Fsdb.git If status of tizen/android device is unauthorized, block sdb connection. Change-Id: Ibaf0f6cb6949af155bf47e69544dbc532cfe4417 Signed-off-by: shingil.kang --- diff --git a/src/transport.c b/src/transport.c index 3520421..de820a3 100755 --- a/src/transport.c +++ b/src/transport.c @@ -605,6 +605,13 @@ TRANSPORT *acquire_one_transport(transport_type ttype, const char* serial, char* if (result == NULL ) { *error_out = error_message(SDB_MESSAGE_ERROR, ERR_CONNECT_TARGET_NOT_FOUND, NULL); + } else { + if (result->connection_state == CS_UNAUTHORIZED) { + if (error_out) + *error_out = "device unauthorized. Please check the confirmation dialog on your device."; + result = NULL; + goto exit; + } } exit: