Preface has been in the brush machine, failure, brush machine, failure, fortunately today there is a task can use FastBoot brush machine, good fun, and finally do not have to switch the system. (Long time no code to write, as an Internet programmer, do not write code I easily nervous).
Development environment Ubuntu13.10, configure the Android development environment. Specific configuration can be consulted: http://blog.csdn.net/wzy_1988/article/details/37737255
FastBoot mode brush machine using FastBoot brush machine is mainly brush boot.img, system.img and userdata.img files, the following respectively describes the corresponding brush machine command. All of the following commands require the use of the sudo command.
Enter FastBoot mode First, make sure your phone is able to connect to ADB and then execute the following command via ADB to enter FastBoot mode, as follows:
sudo adb reboot-bootloader
Wait a moment, the phone will restart into fastboot mode, check the following command to confirm:
sudo fastboot devices
Swipe img file 1. Brush BOOT.IMG Instructions
sudo fastboot flash boot boot.img
Execution Result:
Sending ' boot ' (8628 KB) ... OKAY [ 0.483s]writing ' boot ' ... OKAY [ 0.734s]finished. Total time:1.225s
2. Brush SYSTEM.IMG Instructions
sudo fastboot flash system system.img
Execution Result:
Erasing ' system ' ... OKAY [ 0.829s]sending ' System ' (648865 KB) ... OKAY [20.588s]writing ' System ' ... OKAY [44.143s]finished. Total time:65.585s
3. Brush USERDATA.IMG Instructions
sudo fastboot flash userdata userdata.img
Execution Result:
Erasing ' UserData ' ... OKAY [ 7.427s]sending ' UserData ' (179803 KB) ... OKAY [ 5.881s]writing ' UserData ' ... OKAY [11.874s]finished. Total time:25.182s
4. Restart your phone
sudo fastboot reboot
PostScript img File No problem, after the restart can see the new system, enjoy!