Lines Matching full:adb
31 #include "adb.h"
99 { "adb", TRACE_ADB },
149 * Implements ADB tracing inside the emulator.
169 /* A handle to adb-debug qemud service in the emulator. */
172 /* Initializes connection with the adb-debug qemud service in the emulator. */
181 /* adb debugging QEMUD service connection request. */
182 snprintf(con_name, sizeof(con_name), "qemud:adb-debug");
215 D("adb: online\n");
221 D("adb: offline\n");
724 // It's non-sensical to support the "reserved" space on the adb host side
922 strcat( temp, "adb.log" );
937 fprintf(stderr,"--- adb starting (pid %d) ---\n", getpid());
945 fd = unix_open("/tmp/adb.log", O_WRONLY | O_CREAT | O_APPEND, 0640);
952 fprintf(stderr,"--- adb starting (pid %d) ---\n", getpid());
965 // read the trace mask from persistent property persist.adb.trace_mask
967 property_get("persist.adb.trace_mask", value, "");
971 adb_mkdir("/data/adb", 0775);
976 "/data/adb/adb-%Y-%m-%d-%H-%M-%S.txt",
985 fprintf(stderr,"--- adb starting (pid %d) ---\n", getpid());
1050 /* Some programs want to launch an adb command and collect its output by
1053 * handles passed to the adb client process will also be inheritable.
1054 * When starting the adb server here, care must be taken to reset them
1056 * Otherwise, something bad happens: even if the adb command completes,
1059 * adb server process (even if the latter never uses/writes to them).
1084 "adb fork-server server",
1115 fprintf(stderr, "could not read ok from ADB Server, error = %ld\n", GetLastError() );
1119 fprintf(stderr, "ADB server didn't ACK\n" );
1149 int result = execl(path, "adb", "-P", str_port, "fork-server", "server", NULL);
1164 fprintf(stderr, "could not read ok from ADB Server, errno = %d\n", saved_errno);
1168 fprintf(stderr, "ADB server didn't ACK\n" );
1236 // service.adb.root property has been set by the "adb root" command
1239 property_get("service.adb.root", value, "");
1287 property_get("ro.adb.secure", value, "0");
1309 ** AID_LOG to read system logs (adb logcat)
1352 property_get("service.adb.tcp.port", value, "");
1354 property_get("persist.adb.tcp.port", value, "");
1358 // listen on TCP port specified by service.adb.tcp.port property
1396 fprintf(stderr,"adb server killed by remote request\n");
1634 /* If adbd runs inside the emulator this will enable adb tracing via
1635 * adb-debug qemud service in the emulator. */