Android Brush Machine Tutorial

Source: Internet
Author: User


My machine is Nexus 5
I. Installation drive

How to enter FastBoot mode1. Unplug the data cable and turn the hand machine
2. Press and hold the "Volume Down" and "switch" keys to enter FastBoot mode after the shutdown.
Turn on USB debugging-check USB debugging
ADB devices can see the device name


two. Download the brush packThis is the Android 4.4 Brush Pack, you can find the specific version of the brush package according to your needs https://dl.google.com/dl/android/aosp/hammerhead-kot49h-factory-02006b99.tgz
The file after download is as follows:


three. bootloader Lock and Unlock Nexus 5 unlock bootloader and re-lock bootloader

The lock status is as follows:

input CommandFastBoot oem unlock unlock fastboot OEM lock lock
When unlocking may require you to control the volume key move Select Yes, the Power key is OK

Effect after unlocking



four. Start the brush machine
In FastBoot mode, double-click the Flash-all.bat under the brush package to start a button brush machine after a period of time waiting for the brush machine good
Five. fastboot command Daquan List of commands:

Android Partition:


Common Command scenarios:1. Upgrading the SystemFastBoot Flash bootloader u-boot.binfastboot flash kernel uimagefastboot flash system System.imgfastboot Flash userdata US Erdata.imgfastboot Flash RAMDisk ramdisk-uboot.imgfastboot Erase cache
FastBoot Flash {partition} {*.img} example: FastBoot Flash boot boot.img or fastboot flash system system.img, etc. FastBoot flashall Note: This command finds all IMG files in the current directory, burns the IMG files to all corresponding partitions, and restarts the phone.
One burn write boot,system,recovery partition: (1) Create a ZIP package containing the boot.img,system.img,recovery.img file. (2) Execution: FastBoot update {*.zip}
Burn Write boot screen: fastboot flash splash1 boot screen
2. Rebooting the systemFastBoot reboot
3. Do not burn write flash in the case of debuggingFastBoot Boot Uimage or U-boot.bin
4. View the version numberFastBoot getver:version
5. Reset to BootloaderFastBoot Reboot-bootloader
6. Command FormatThe host side sends a string of commands, the string is less than or equal to 64 bytes, the client first returns four bytes of content, is okay, FAIL, data, info, followed by the information or the number of data.
7. Clear the partitionFastBoot Erase {Partition} example: FastBoot erase boot or fastboot erase system. FastBoot Erase Bootfastboot Erase systemfastboot erase datafastboot Erase Cache
The above command can also be simplified into a single command fastboot erase System-w
8. Get Client (mobile-side) variable informationFastBoot GetVar version:version-bootloader:version-baseband:product:serialno:secure Version Version number of the FastBoot protocol version Version-bootloader bootloader supported by the client Version-baseband baseband version product name Serialno production Product serial Number Secure returns YES indicates that a signature needs to be obtained at the brush machine
Supported ParametersOffsets and addresses are defined in U-boot, and to use good fastboot, it is necessary to know the corresponding relationship between the parameter name and the file.



9. Environment VariablesFastBoot supports environment variable files, typically when FastBoot writes NAND flash, the offset and size are written to the environment variable, named in the format: <partition name>_nand_offset<partition Name>_nand_size
For example, after kernel burning is complete printenv can see: kernel_nand_offset=0x140000kernel_nand_size=0x1f70000
10. View USB DevicesView USB devices connected to OTG, Lsusb:bus 008 device 030:id 0451:cafe Texas Instruments, Inc. <-----fastboot
More details View Cat/proc/bus/usb/devices
11. Static Module AddressFastBoot reuses the NAND address allocation of the kernel, and most of them can be changed, but the addresses listed below are invariant.      Name offset Sizexloader 0x00000000 0x00080000bootloader 0x00080000 0x00180000environment 0x001c0000 0x00040000
12. File Size LimitThe maximum download file size is 240M.
13. Erase Partition:FastBoot Erase {Partition} example: FastBoot erase boot or fastboot erase system.
14. Burn and write the specified partition:FastBoot Flash {partition} {*.img} example: FastBoot Flash boot boot.img or fastboot flash system system.img, etc.
15. Burn Write all partitions:FastBoot flashall Note: This command finds all IMG files in the current directory, burns the IMG files to all corresponding partitions, and restarts the phone.
16. Write Boot,system,recovery partition once:(1) Create a ZIP package that contains the boot.img,system.img,recovery.img file. (2) Execution: FastBoot update {*.zip}
17. Burn and write the splash screen:FastBoot Flash SPLASH1 splash screen
18. Restart your phone:FastBoot reboot FastBoot Reboot-bootloader




From for notes (Wiz)

Android Brush Machine Tutorial

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.