Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ? fastboot
- C:\android-sdk-windows\tools>fastboot flash recovery recovery.img
- sending 'recovery' (4416 KB)...
- OKAY [ 0.472s]
- writing 'recovery'...
- OKAY [ 1.279s]
- finished. total time: 1.751s
- C:\android-sdk-windows\tools>fastboot reboot
- rebooting...
- finished. total time: 0.001s
- C:\android-sdk-windows\tools>fastboot devices
- C:\android-sdk-windows\tools>fastboot devices
- C:\android-sdk-windows\tools>fastboot devices
- C:\android-sdk-windows\tools>fastboot devices
- ? fastboot
- C:\android-sdk-windows\tools>fastboot flash recovery recovery.img
- sending 'recovery' (4416 KB)...
- OKAY [ 0.470s]
- writing 'recovery'...
- OKAY [ 0.483s]
- finished. total time: 0.953s
- C:\android-sdk-windows\tools>fastboot reboot
- rebooting...
- finished. total time: -0.000s
- C:\android-sdk-windows\tools> cd..
- C:\android-sdk-windows>cd plator~1
- The system cannot find the path specified.
- C:\android-sdk-windows>DIR
- Volume in drive C is OS
- Volume Serial Number is 204D-4189
- Directory of C:\android-sdk-windows
- 02/26/2011 06:51 PM <DIR> .
- 02/26/2011 06:51 PM <DIR> ..
- 02/12/2011 09:45 AM <DIR> add-ons
- 02/26/2011 06:43 PM <DIR> docs
- 02/22/2011 04:32 PM <DIR> Drivers
- 01/07/2011 04:02 PM 16,628,105 Drivers.zip
- 02/22/2011 05:25 PM <DIR> google-market_billing
- 02/22/2011 05:25 PM <DIR> google-market_licensing
- 02/12/2011 09:45 AM <DIR> google-usb_driver
- 03/09/2011 01:50 PM <DIR> platform-tools
- 02/26/2011 06:52 PM <DIR> platforms
- 02/26/2011 06:44 PM <DIR> samples
- 01/19/2011 06:45 PM 361,758 SDK Manager.exe
- 01/20/2011 02:31 PM 1,129 SDK Readme.txt
- 02/26/2011 06:53 PM <DIR> temp
- 03/16/2011 07:21 PM <DIR> tools
- 02/12/2011 09:25 AM 70,966 uninstall.exe
- 4 File(s) 17,061,958 bytes
- 13 Dir(s) 306,034,851,840 bytes free
- C:\android-sdk-windows>CD PLATFO~1
- C:\android-sdk-windows\PLATFO~1>adb shell
- 'adb' is not recognized as an internal or external command,
- operable program or batch file.
- C:\android-sdk-windows\PLATFO~1>ls
- 'ls' is not recognized as an internal or external command,
- operable program or batch file.
- C:\android-sdk-windows\PLATFO~1>dir
- Volume in drive C is OS
- Volume Serial Number is 204D-4189
- Directory of C:\android-sdk-windows\PLATFO~1
- 02/26/2011 06:52 PM <DIR> .
- 02/26/2011 06:52 PM <DIR> ..
- 02/22/2011 05:14 PM <DIR> android-10
- 02/26/2011 06:52 PM <DIR> android-11
- 02/22/2011 05:24 PM <DIR> android-2
- 02/22/2011 05:23 PM <DIR> android-3
- 02/22/2011 05:22 PM <DIR> android-4
- 02/22/2011 05:21 PM <DIR> android-5
- 02/22/2011 05:20 PM <DIR> android-6
- 02/22/2011 05:18 PM <DIR> android-7
- 02/22/2011 05:17 PM <DIR> android-8
- 02/22/2011 05:16 PM <DIR> android-9
- 02/22/2011 05:13 PM <DIR> android-Honeycomb
- 0 File(s) 0 bytes
- 13 Dir(s) 306,034,851,840 bytes free
- C:\android-sdk-windows\PLATFO~1>cd..
- C:\android-sdk-windows>cd platfo~2
- C:\android-sdk-windows\PLATFO~2>DIR
- Volume in drive C is OS
- Volume Serial Number is 204D-4189
- Directory of C:\android-sdk-windows\PLATFO~2
- 03/09/2011 01:50 PM <DIR> .
- 03/09/2011 01:50 PM <DIR> ..
- 02/26/2011 06:41 PM 5,381,520 aapt.exe
- 02/26/2011 06:41 PM 410,911 adb.exe
- 02/26/2011 06:41 PM 96,256 AdbWinApi.dll
- 02/26/2011 06:41 PM 60,928 AdbWinUsbApi.dll
- 02/26/2011 06:41 PM 1,344,051 aidl.exe
- 02/26/2011 05:37 PM 2,827 build.prop
- 02/24/2011 11:58 PM 3,492 build_mt.prop
- 02/26/2011 06:41 PM 422,962 dexdump.exe
- 03/08/2011 06:25 PM 391 dsmesg.txt
- 02/26/2011 06:41 PM 2,682 dx.bat
- 11/30/2010 03:10 AM 411 embedwpthis.pl
- 12/11/2010 09:57 AM 134,401 gfree
- 12/11/2010 09:57 AM 20,506 gfree.c
- 12/06/2010 12:22 AM 8,552 gopt.c
- 12/06/2010 12:23 AM 2,576 gopt.h
- 12/11/2010 09:57 AM 7,732 gopt.o
- 03/04/2011 08:30 PM 1,048,576 hboot_dhd.nb0
- 02/26/2011 06:41 PM <DIR> lib
- 12/01/2010 09:07 PM 35,147 LICENSE
- 02/26/2011 06:41 PM 15,424,512 llvm-rs-cc.exe
- 02/26/2011 06:41 PM 10,800 NOTICE.txt
- 12/13/2010 04:12 AM 2,720,988 poweramp.apk
- 12/13/2010 04:12 AM 25,103 powerampunlock.apk
- 02/26/2011 06:52 PM 840,827 sl4a_r3.apk
- 02/26/2011 06:41 PM 301 source.properties
- 12/09/2010 05:43 PM 416,175 wpthis.h
- 12/09/2010 05:30 PM 109,259 wpthis.ko
- 26 File(s) 28,531,886 bytes
- 3 Dir(s) 306,034,847,744 bytes free
- C:\android-sdk-windows\PLATFO~2>ADB SHELL
- Android Debug Bridge version 1.0.26
- -d - directs command to the only connected USB devic
- e
- 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 r
- unning.
- -s <serial number> - directs command to the USB device or emulator w
- ith
- the given serial number. Overrides ANDROID_SERI
- AL
- 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 - list all connected devices
- 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 ocmmand with no additional arguments
- will disconnect from all connected TCP/IP devic
- es.
- 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] <file> - push this package file to the device and i
- nstall it
- ('-l' means forward-lock the app)
- ('-r' means reinstall the app, keeping its data
- )
- ('-s' means install on SD card instead of inter
- nal storage)
- 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 help - show this help message
- adb version - show version num
- DATAOPTS:
- (no option) - don't touch the data partition
- -w - wipe the data partition
- -d - flash the data partition
- 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 status-window - continuously print device status for a specifie
- d device
- adb remount - remounts the /system partition on the device re
- ad-write
- adb reboot [bootloader|recovery] - reboots the device, optionally into the boo
- tloader 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 th
- e 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 u
- pdated.
- - 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 prior
- ity over this if given.
- ANDROID_LOG_TAGS - When used with the logcat option, only these de
- bug tags are printed.
- C:\android-sdk-windows\PLATFO~2>adb devices
- * daemon not running. starting it now on port 5037 *
- * daemon started successfully *
- List of devices attached
- 027c100941001517 recovery
- C:\android-sdk-windows\PLATFO~2>adb shell
- ~ # su
- su
- /sbin/sh: su: not found
- ~ # ls -l /dev/block
- ls -l /dev/block
- brw------- 1 root root 7, 0 Mar 17 06:56 loop0
- brw------- 1 root root 7, 1 Mar 17 06:56 loop1
- brw------- 1 root root 7, 2 Mar 17 06:56 loop2
- brw------- 1 root root 7, 3 Mar 17 06:56 loop3
- brw------- 1 root root 7, 4 Mar 17 06:56 loop4
- brw------- 1 root root 7, 5 Mar 17 06:56 loop5
- brw------- 1 root root 7, 6 Mar 17 06:56 loop6
- brw------- 1 root root 7, 7 Mar 17 06:56 loop7
- brw------- 1 root root 179, 128 Mar 17 06:56 mmcblk2
- brw------- 1 root root 179, 129 Mar 17 06:56 mmcblk2p1
- brw------- 1 root root 179, 192 Mar 17 06:56 mmcblk3
- brw------- 1 root root 179, 193 Mar 17 06:56 mmcblk3p1
- brw------- 1 root root 179, 202 Mar 17 06:56 mmcblk3p10
- brw------- 1 root root 179, 203 Mar 17 06:56 mmcblk3p11
- brw------- 1 root root 179, 204 Mar 17 06:56 mmcblk3p12
- brw------- 1 root root 179, 205 Mar 17 06:56 mmcblk3p13
- brw------- 1 root root 179, 206 Mar 17 06:56 mmcblk3p14
- brw------- 1 root root 179, 207 Mar 17 06:56 mmcblk3p15
- brw------- 1 root root 179, 208 Mar 17 06:56 mmcblk3p16
- brw------- 1 root root 179, 194 Mar 17 06:56 mmcblk3p2
- brw------- 1 root root 179, 195 Mar 17 06:56 mmcblk3p3
- brw------- 1 root root 179, 196 Mar 17 06:56 mmcblk3p4
- brw------- 1 root root 179, 197 Mar 17 06:56 mmcblk3p5
- brw------- 1 root root 179, 198 Mar 17 06:56 mmcblk3p6
- brw------- 1 root root 179, 199 Mar 17 06:56 mmcblk3p7
- brw------- 1 root root 179, 200 Mar 17 06:56 mmcblk3p8
- brw------- 1 root root 179, 201 Mar 17 06:56 mmcblk3p9
- drwxr-xr-x 4 root root 80 Mar 17 06:56 platform
- ~ #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement