-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathadb1.txt
65 lines (57 loc) · 2.93 KB
/
adb1.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
adb logcat -b main -b radio -b system -v threadtime > adblog.txt
用android源码编译adb和fastboot
make USE_MINGW=y adb
make USE_MINGW=y fastboot
输出目录:/out/host/windows-x86/bin
adb.exe
fastboot.exe
AdbWinApi.dll
AdbWinUsbApi.dll
adb/android debug bridge 调试工具
fastboot 和手机端的bootloader通信,烧录工具
adb shell
adb shell "command"
adb shell "dmesg" == adb shell "cat /proc/kmsg"查看kernel log内核日志文档
adb logcat 查看应用层的log
adb reboot [bootloader/recorvery] 手机的几种模式:正常/充电/recorvery/fastboot
adb devices
adb pull remote local
adb push local remote
adb push SystemUI.apk system/priv-app/SystemUI
adb kill-server
adb start-server
adb shell
md5sum system/priv-app/SystemUI/SystemUI.apk //检测该APK的MD5值
fastboot [<option>] <command>
fastboot flash <partition>分区 [filename] 对某一个分区进行刷机 然后在把指定的file写入这个分区
fastboot reboot
fastboot flashall 功能flashboot + recovery + system
commands:
update <filename> reflash device from update.zip
flashall flash boot + recovery + system
flash <partition> [ <filename> ] write a file to a flash partition
erase <partition> erase a flash partition
format <partition> format a flash partition
getvar <variable> display a bootloader variable
boot <kernel> [ <ramdisk> ] download and boot kernel
flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it
devices list all connected devices
continue continue with autoboot
reboot reboot device normally
reboot-bootloader reboot device into bootloader
help show this help message
options:
-w erase userdata and cache (and format
if supported by partition type)
-u do not first erase partition before
formatting
-s <specific device> specify device serial number
or path to device port
-l with "devices", lists device paths
-p <product> specify product name
-c <cmdline> override kernel commandline
-i <vendor id> specify a custom USB vendor id
-b <base_addr> specify a custom kernel base address. default: 0x10000000
-n <page size> specify the nand page size. default: 2048
-S <size>[K|M|G] automatically sparse files greater than
size. 0 to disable