Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [eugene@eugene ~]$ strace /home/eugene/sdk/platform-tools/adb
- execve("/home/eugene/sdk/platform-tools/adb", ["/home/eugene/sdk/platform-tools/"...], [/* 49 vars */]) = 0
- [ Process PID=15300 runs in 32 bit mode. ]
- brk(0) = 0x95b9000
- mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf77e0000
- readlink("/proc/self/exe", "/home/eugene/sdk/platform-tools/"..., 4096) = 35
- open("/usr/lib64/freetype-infinality/libfreetype.so.6", O_RDONLY|O_CLOEXEC) = 3
- read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\332\240\3752\0\0\0"..., 512) = 512
- close(3) = 0
- writev(2, [{"ERROR: ld.so: object '", 22}, {"/usr/lib64/freetype-infinality/l"..., 47}, {"' from ", 7}, {"LD_PRELOAD", 10}, {" cannot be preloaded: ignored.\n", 31}], 5ERROR: ld.so: object '/usr/lib64/freetype-infinality/libfreetype.so.6' from LD_PRELOAD cannot be preloaded: ignored.
- ) = 117
- open("/usr/lib64/freetype-infinality/libfreetype.so.6", O_RDONLY|O_CLOEXEC) = 3
- read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\332\240\3752\0\0\0"..., 512) = 512
- close(3) = 0
- writev(2, [{"ERROR: ld.so: object '", 22}, {"/usr/lib64/freetype-infinality/l"..., 47}, {"' from ", 7}, {"LD_PRELOAD", 10}, {" cannot be preloaded: ignored.\n", 31}], 5ERROR: ld.so: object '/usr/lib64/freetype-infinality/libfreetype.so.6' from LD_PRELOAD cannot be preloaded: ignored.
- ) = 117
- access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
- open("/home/eugene/sdk/platform-tools/../lib/tls/i686/sse2/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
- stat64("/home/eugene/sdk/platform-tools/../lib/tls/i686/sse2", 0xffffffffffc889e0) = -1 ENOENT (No such file or directory)
- open("/home/eugene/sdk/platform-tools/../lib/tls/i686/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
- stat64("/home/eugene/sdk/platform-tools/../lib/tls/i686", 0xffffffffffc889e0) = -1 ENOENT (No such file or directory)
- open("/home/eugene/sdk/platform-tools/../lib/tls/sse2/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
- stat64("/home/eugene/sdk/platform-tools/../lib/tls/sse2", 0xffffffffffc889e0) = -1 ENOENT (No such file or directory)
- open("/home/eugene/sdk/platform-tools/../lib/tls/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
- stat64("/home/eugene/sdk/platform-tools/../lib/tls", 0xffffffffffc889e0) = -1 ENOENT (No such file or directory)
- open("/home/eugene/sdk/platform-tools/../lib/i686/sse2/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
- stat64("/home/eugene/sdk/platform-tools/../lib/i686/sse2", 0xffffffffffc889e0) = -1 ENOENT (No such file or directory)
- open("/home/eugene/sdk/platform-tools/../lib/i686/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
- stat64("/home/eugene/sdk/platform-tools/../lib/i686", 0xffffffffffc889e0) = -1 ENOENT (No such file or directory)
- open("/home/eugene/sdk/platform-tools/../lib/sse2/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
- stat64("/home/eugene/sdk/platform-tools/../lib/sse2", 0xffffffffffc889e0) = -1 ENOENT (No such file or directory)
- open("/home/eugene/sdk/platform-tools/../lib/librt.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
- stat64("/home/eugene/sdk/platform-tools/../lib", 0xffffffffffc889e0) = -1 ENOENT (No such file or directory)
- open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
- fstat64(3, {st_mode=S_IFREG|0644, st_size=101445, ...}) = 0
- mmap2(NULL, 101445, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf77c7000
- close(3) = 0
- open("/lib/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
- read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \311oL4\0\0\0"..., 512) = 512
- fstat64(3, {st_mode=S_IFREG|0755, st_size=42224, ...}) = 0
- mmap2(0x4c6fb000, 33324, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4c6fb000
- mmap2(0x4c702000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6) = 0x4c702000
- close(3) = 0
- open("/lib/libncurses.so.5", O_RDONLY|O_CLOEXEC) = 3
- read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200O\0\0004\0\0\0"..., 512) = 512
- fstat64(3, {st_mode=S_IFREG|0755, st_size=145584, ...}) = 0
- mmap2(NULL, 148724, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xf77a2000
- mmap2(0xfffffffff77c5000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22) = 0xf77c5000
- close(3) = 0
- open("/lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
- read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\211rL4\0\0\0"..., 512) = 512
- fstat64(3, {st_mode=S_IFREG|0755, st_size=131156, ...}) = 0
- mmap2(0x4c723000, 102908, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4c723000
- mmap2(0x4c739000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15) = 0x4c739000
- mmap2(0x4c73b000, 4604, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4c73b000
- close(3) = 0
- open("/lib/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = 3
- read(3, "\177ELF\1\1\1\3\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0f\4\0004\0\0\0"..., 512) = 512
- fstat64(3, {st_mode=S_IFREG|0755, st_size=926280, ...}) = 0
- mmap2(NULL, 951828, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xf76b9000
- mmap2(0xfffffffff7796000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xdd) = 0xf7796000
- mmap2(0xfffffffff779b000, 26132, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xf779b000
- close(3) = 0
- open("/lib/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
- read(3, "\177ELF\1\1\1\3\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p$\216L4\0\0\0"..., 512) = 512
- fstat64(3, {st_mode=S_IFREG|0755, st_size=212568, ...}) = 0
- mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf76b8000
- mmap2(0x4c8de000, 172160, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4c8de000
- mmap2(0x4c907000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x29) = 0x4c907000
- close(3) = 0
- open("/lib/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 3
- read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \0\0004\0\0\0"..., 512) = 512
- fstat64(3, {st_mode=S_IFREG|0755, st_size=114508, ...}) = 0
- mmap2(NULL, 117360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xf769b000
- mmap2(0xfffffffff76b7000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b) = 0xf76b7000
- close(3) = 0
- open("/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
- read(3, "\177ELF\1\1\1\3\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\7VL4\0\0\0"..., 512) = 512
- fstat64(3, {st_mode=S_IFREG|0755, st_size=2011688, ...}) = 0
- mmap2(0x4c547000, 1776316, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4c547000
- mprotect(0x4c6f2000, 4096, PROT_NONE) = 0
- mmap2(0x4c6f3000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1ab) = 0x4c6f3000
- mmap2(0x4c6f6000, 10940, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4c6f6000
- close(3) = 0
- open("/lib/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
- read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320zqL4\0\0\0"..., 512) = 512
- fstat64(3, {st_mode=S_IFREG|0755, st_size=19780, ...}) = 0
- mmap2(0x4c717000, 16496, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4c717000
- mmap2(0x4c71a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0x4c71a000
- close(3) = 0
- open("/lib/libtinfo.so.5", O_RDONLY|O_CLOEXEC) = 3
- read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`^\0\0004\0\0\0"..., 512) = 512
- fstat64(3, {st_mode=S_IFREG|0755, st_size=125232, ...}) = 0
- mmap2(NULL, 129200, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xf767b000
- mmap2(0xfffffffff7698000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c) = 0xf7698000
- close(3) = 0
- mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf767a000
- mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf7679000
- set_thread_area(0xffffffffffc88ea0) = 0
- mprotect(0x4c6f3000, 8192, PROT_READ) = 0
- mprotect(0xfffffffff7698000, 8192, PROT_READ) = 0
- mprotect(0x4c71a000, 4096, PROT_READ) = 0
- mprotect(0x4c907000, 4096, PROT_READ) = 0
- mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xf7678000
- mprotect(0xfffffffff7796000, 16384, PROT_READ) = 0
- mprotect(0x4c739000, 4096, PROT_READ) = 0
- mprotect(0xfffffffff77c5000, 4096, PROT_READ) = 0
- mprotect(0x4c702000, 4096, PROT_READ) = 0
- mprotect(0x4c543000, 4096, PROT_READ) = 0
- munmap(0xfffffffff77c7000, 101445) = 0
- set_tid_address(0xfffffffff7679768) = 15300
- set_robust_list(0xfffffffff7679770, 12) = 0
- rt_sigaction(SIGRTMIN, {0x4c7283f0, [], SA_SIGINFO}, NULL, 8) = 0
- rt_sigaction(SIGRT_1, {0x4c728480, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0
- rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
- getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
- uname({sys="Linux", node="eugene.home", ...}) = 0
- write(2, "Android Debug Bridge version 1.0"..., 36Android Debug Bridge version 1.0.31
- ) = 36
- write(2, "\n -d "..., 7197
- -d - directs command to the only connected USB device
- returns an error if more than one USB device is present.
- -e - directs command to the only running emulator.
- returns an error if more than one emulator is running.
- -s <specific device> - directs command to the device or emulator with the given
- serial number or qualifier. Overrides ANDROID_SERIAL
- environment variable.
- -p <product name or path> - simple product name like 'sooner', or
- a relative/absolute path to a product
- out directory like 'out/target/product/sooner'.
- If -p is not specified, the ANDROID_PRODUCT_OUT
- environment variable is used, which must
- be an absolute path.
- devices [-l] - list all connected devices
- ('-l' will also list device qualifiers)
- connect <host>[:<port>] - connect to a device via TCP/IP
- Port 5555 is used by default if no port number is specified.
- disconnect [<host>[:<port>]] - disconnect from a TCP/IP device.
- Port 5555 is used by default if no port number is specified.
- Using this command with no additional arguments
- will disconnect from all connected TCP/IP devices.
- device commands:
- adb push <local> <remote> - copy file/dir to device
- adb pull <remote> [<local>] - copy file/dir from device
- adb sync [ <directory> ] - copy host->device only if changed
- (-l means list but don't copy)
- (see 'adb help all')
- adb shell - run remote shell interactively
- adb shell <command> - run remote shell command
- adb emu <command> - run emulator console command
- adb logcat [ <filter-spec> ] - View device log
- adb forward <local> <remote> - forward socket connections
- forward specs are one of:
- tcp:<port>
- localabstract:<unix domain socket name>
- localreserved:<unix domain socket name>
- localfilesystem:<unix domain socket name>
- dev:<character device name>
- jdwp:<process pid> (remote only)
- adb jdwp - list PIDs of processes hosting a JDWP transport
- adb install [-l] [-r] [-s] [--algo <algorithm name> --key <hex-encoded key> --iv <hex-encoded iv>] <file>
- - push this package file to the device and install it
- ('-l' means forward-lock the app)
- ('-r' means reinstall the app, keeping its data)
- ('-s' means install on SD card instead of internal storage)
- ('--algo', '--key', and '--iv' mean the file is encrypted already)
- adb uninstall [-k] <package> - remove this app package from the device
- ('-k' means keep the data and cache directories)
- adb bugreport - return all information from the device
- that should be included in a bug report.
- adb backup [-f <file>] [-apk|-noapk] [-shared|-noshared] [-all] [-system|-nosystem] [<packages...>]
- - write an archive of the device's data to <file>.
- If no -f option is supplied then the data is written
- to "backup.ab" in the current directory.
- (-apk|-noapk enable/disable backup of the .apks themselves
- in the archive; the default is noapk.)
- (-shared|-noshared enable/disable backup of the device's
- shared storage / SD card contents; the default is noshared.)
- (-all means to back up all installed applications)
- (-system|-nosystem toggles whether -all automatically includes
- system applications; the default is to include system apps)
- (<packages...> is the list of applications to be backed up. If
- the -all or -shared flags are passed, then the package
- list is optional. Applications explicitly given on the
- command line will be included even if -nosystem would
- ordinarily cause them to be omitted.)
- adb restore <file> - restore device contents from the <file> backup archive
- adb help - show this help message
- adb version - show version num
- scripting:
- adb wait-for-device - block until device is online
- adb start-server - ensure that there is a server running
- adb kill-server - kill the server if it is running
- adb get-state - prints: offline | bootloader | device
- adb get-serialno - prints: <serial-number>
- adb get-devpath - prints: <device-path>
- adb status-window - continuously print device status for a specified device
- adb remount - remounts the /system partition on the device read-write
- adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program
- adb reboot-bootloader - reboots the device into the bootloader
- adb root - restarts the adbd daemon with root permissions
- adb usb - restarts the adbd daemon listening on USB
- adb tcpip <port> - restarts the adbd daemon listening on TCP on the specified port
- networking:
- adb ppp <tty> [parameters] - Run PPP over USB.
- Note: you should not automatically start a PPP connection.
- <tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
- [parameters] - Eg. defaultroute debug dump local notty usepeerdns
- adb sync notes: adb sync [ <directory> ]
- <localdir> can be interpreted in several ways:
- - If <directory> is not specified, both /system and /data partitions will be updated.
- - If it is "system" or "data", only the corresponding partition
- is updated.
- environmental variables:
- ADB_TRACE - Print debug information. A comma separated list of the following values
- 1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp
- ANDROID_SERIAL - The serial number to connect to. -s takes priority over this if given.
- ANDROID_LOG_TAGS - When used with the logcat option, only these debug tags are printed.
- ) = 7197
- exit_group(1) = ?
- +++ exited with 1 +++
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement