Home | History | Annotate | Download | only in adb

Lines Matching refs:ADB

17 #define TRACE_TAG ADB
49 #include "adb.h"
73 fprintf(stderr, "adb: Product directory not specified; "
86 " -a - directs adb to listen on all interfaces for a connection\n"
100 " -H - Name of adb server host (default: localhost)\n"
101 " -P - Port of adb server (default: 5037)\n"
112 " adb push <local>... <remote>\n"
114 " adb pull [-a] <remote>... <local>\n"
117 " adb sync [ <directory> ] - copy host->device only if changed\n"
119 " adb shell [-e escape] [-n] [-Tt] [-x] [command]\n"
126 " adb emu <command> - run emulator console command\n"
127 " adb logcat [ <filter-spec> ] - View device log\n"
128 " adb forward --list - list all forward socket connections.\n"
131 " adb forward <local> <remote> - forward socket connections\n"
139 " adb forward --no-rebind <local> <remote>\n"
140 " - same as 'adb forward <local> <remote>' but fails\n"
142 " adb forward --remove <local> - remove a specific forward socket connection\n"
143 " adb forward --remove-all - remove all forward socket connections\n"
144 " adb reverse --list - list all reverse socket connections from device\n"
145 " adb reverse <remote> <local> - reverse socket connections\n"
151 " adb reverse --no-rebind <remote> <local>\n"
152 " - same as 'adb reverse <remote> <local>' but fails\n"
154 " adb reverse --remove <remote>\n"
156 " adb reverse --remove-all - remove all reversed socket connections from device\n"
157 " adb jdwp - list PIDs of processes hosting a JDWP transport\n"
158 " adb install [-lrtsdg] <file>\n"
166 " adb install-multiple [-lrtsdpg] <file...>\n"
175 " adb uninstall [-k] <package> - remove this app package from the device\n"
177 " adb bugreport [<path>] - return all information from the device that should be included in a zipped bug report.\n"
182 " adb backup [-f <file>] [-apk|-noapk] [-obb|-noobb] [-shared|-noshared] [-all] [-system|-nosystem] [<packages...>]\n"
202 " adb restore <file> - restore device contents from the <file> backup archive\n"
204 " adb disable-verity - disable dm-verity checking on USERDEBUG builds\n"
205 " adb enable-verity - re-enable dm-verity checking on USERDEBUG builds\n"
206 " adb keygen <file> - generate adb public/private key. The private key is stored in <file>,\n"
209 " adb help - show this help message\n"
210 " adb version - show version num\n"
213 " adb wait-for[-<transport>]-<state>\n"
217 " adb start-server - ensure that there is a server running\n"
218 " adb kill-server - kill the server if it is running\n"
219 " adb get-state - prints: offline | bootloader | device\n"
220 " adb get-serialno - prints: <serial-number>\n"
221 " adb get-devpath - prints: <device-path>\n"
222 " adb remount - remounts the /system, /vendor (if present) and /oem (if present) partitions on the device read-write\n"
223 " adb reboot [bootloader|recovery]\n"
225 " adb reboot sideload - reboots the device into the sideload mode in recovery program (adb root required).\n"
226 " adb reboot sideload-auto-reboot\n"
228 " adb sideload <file> - sideloads the given package\n"
229 " adb root - restarts the adbd daemon with root permissions\n"
230 " adb unroot - restarts the adbd daemon without root permissions\n"
231 " adb usb - restarts the adbd daemon listening on USB\n"
232 " adb tcpip <port> - restarts the adbd daemon listening on TCP on the specified port\n"
235 " adb ppp <tty> [parameters] - Run PPP over USB.\n"
240 "adb sync notes: adb sync [ <directory> ]\n"
249 " adb reconnect Kick current connection from host side and make it reconnect.\n"
250 " adb reconnect device Kick current connection from device side and make it reconnect.\n"
253 " 1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp\n"
635 // FD connected to the adb server is never closed and the stdin read thread
785 // things like `adb shell < my_script.sh` work as expected.
985 fprintf(stderr, "error: adb %s not implemented on Win32\n", argv[0]);
989 fprintf(stderr, "usage: adb %s <adb service name> [ppp opts]\n",
999 fprintf(stderr,"Error: Could not open adb service: %s. Error: %s\n",
1048 fprintf(stderr, "adb: couldn't parse 'wait-for' command: %s\n", service);
1064 fprintf(stderr, "adb: unknown type %s; expected 'any', 'local', or 'usb'\n",
1072 "adb: unknown state %s; "
1088 fprintf(stderr, "adb: unable to connect for %s: %s\n", command, error.c_str());
1101 fprintf(stderr, "adb: error while reading for %s: %s\n", command, strerror(errno));
1109 fprintf(stderr, "adb: unexpected output length for %s\n", command);
1223 fprintf(stderr, "adb: backup -f passed with no filename.\n");
1235 // Bare "adb backup" or "adb backup -f filename" are not valid invocations ---
1238 fprintf(stderr, "adb: backup either needs a list of packages or -all/-shared.\n");
1245 fprintf(stderr, "adb: backup unable to create file '%s': %s\n", filename, strerror(errno));
1260 fprintf(stderr, "adb: unable to connect for backup: %s\n", error.c_str());
1281 fprintf(stderr, "adb: unable to open file %s: %s\n", filename, strerror(errno));
1288 fprintf(stderr, "adb: unable to connect for restore: %s\n", error.c_str());
1333 perror("adb: getcwd failed");
1345 fprintf(stderr, "adb: ANDROID_BUILD_TOP not set!\n");
1359 fprintf(stderr, "adb: Couldn't find a product dir based on -p %s; "
1384 fprintf(stderr, "adb: unrecognized option '%s'\n", *arg);
1458 // for a particular product. If not defined, and the adb
1474 "adb: Env var ANDROID_ADB_SERVER_PORT must be a positive number less than 65536. Got \"%s\"\n",
1489 /* this is a special flag used only when the ADB client launches the ADB Server */
1498 fprintf(stderr, "adb: invalid reply fd \"%s\"\n", reply_fd_str);
1513 fprintf(stderr, "adb: could not resolve \"-p %s\"\n", product);
1556 "adb: port number must be a positive number less than 65536. Got \"%s\"\n",
1562 "adb: port number must be a positive number less than 65536. Got empty string.\n");
1584 fprintf(stderr, "reply fd for adb server to client communication not specified.\n");
1610 // e.g. 'adb wait-for-device shell'.
1628 fprintf(stderr, "Usage: adb devices [-l]\n");
1638 fprintf(stderr, "Usage: adb connect <host>[:<port>]\n");
1647 fprintf(stderr, "Usage: adb disconnect [<host>[:<port>]]\n");
1908 /* "adb /?" is a common idiom under Windows */
1918 // Only list the features common to both the adb client and the device.
1947 // 'adb uninstall' takes the same arguments as 'cmd package uninstall' on device
1950 // deny the '-k' option until the remaining data/cache can be removed with adb/UI
1956 "If you truly wish to continue, execute 'adb shell cmd package uninstall -k'.\n");
2171 out with the option to uninstall the remaining data somehow (adb/ui) */
2179 "If you truly wish to continue, execute 'adb shell pm uninstall -k'\n.");
2184 /* 'adb uninstall' takes the same arguments as 'pm uninstall' on device */