全部博文(160)
分类: Android平台
2015-04-09 16:50:49
To flash a device using one of the system images below (or one of your own), you need the fastboot tool. You can get thefastboot tool either:
Once you have the fastboot tool, add it to your PATH environment variable (the flash-all script below must be able to find it). Also be certain that you've set up USB access for your device, as described in the Using Hardware Devices guide.
Caution: Flashing a new system image deletes all user data. Be certain to first backup any personal data such as photos.
To flash a system image:
adb reboot bootloader
fastboot oem unlockThe target device will show you a confirmation screen. (This erases all data on the target device.)
Once the script finishes, your device reboots. You should now lock the bootloader for security:
fastboot oem lock
Locking bootloader will wipe the data on some devices. After locking the bootloader, if you want to flash the device again, you must runfastboot oem unlock again, which will wipe the data.
https://developers.google.com/android/nexus/drivers#hammerheadlmy47i