forked from google/python-adb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfastboot_protocol.txt
More file actions
32 lines (26 loc) · 822 Bytes
/
fastboot_protocol.txt
File metadata and controls
32 lines (26 loc) · 822 Bytes
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
Fastboot Protocol Documentation
Fastboot's protocol is similar to ADB in only a few ways. However, to make the
code simpler to be inside a bootloader, it basically was completely altered.
Commands:
getvar:%(variable)s
download:%08x
verify:%08x
flash:%(partition)s
erase:%(partition)s
oem %(stuff)s
boot
continue
reboot
reboot-bootloader
Responses:
These are 4-64 bytes long. The first 4 bytes is the header, the rest is
header-specific but only up to 60 bytes.
INFO + data[0-60]
Arbitrary data returned from the bootloader.
OKAY + reason[0-60]
Last response, says the command succeeded.
FAIL + reason[0-60]
Last response, says the command failed.
DATA + size[8]
Only in response to a download command, says the bootloader is ready to
accept `size` amount of data.