尽管不久的七月底应该就出第三个preview了,仍是忍不住当了回小白,把nexus6刷成android M了,没有尝试nexus5,但就网上资料看,状况大体同样。首先看下google官方的timeline吧,传说中的M第三季度即将正式到来。html
目前为止preview2的下载位置是这里。选择合适的版本,好比nexus6是shamu。android
解压下载包后,里边的东西是这样的:bash
bootloader和radio的文件名跟设备和版本有关。image-shamu-**.zip压缩包里是这些东西:工具
android developer网站上有详尽的指南,本来按照这些步骤,应该就衣食无忧了。但实际上fastboot工具无法直接找到image-shamu-MPZ79M下的几个img文件,很明显flash-all脚本写的不够人性化。网上有修改该脚本的讨论,没有仔细去研究,由于手动操做几下整体上比较省时间。参考网上的这篇文章后,大体的操做步骤变动为以下:网站
fastboot flash bootloader bootloader-***.img fastboot flash radio radio-***.img fastboot reboot-bootloader fastboot flash recovery recovery.img fastboot flash boot boot.img fastboot flash system system.img
其间,只有system.img的导入会稍微耗时一些:google
$ fastboot flash system system.img target reported max download size of 536870912 bytes sending sparse 'system' (517175 KB)... OKAY [ 19.143s] writing 'system'... OKAY [ 6.862s] sending sparse 'system' (523942 KB)... OKAY [ 20.071s] writing 'system'... OKAY [ 7.175s] sending sparse 'system' (506839 KB)... OKAY [ 21.062s] writing 'system'... OKAY [ 6.758s] sending sparse 'system' (434117 KB)... OKAY [ 17.244s] writing 'system'... OKAY [ 5.779s] finished. total time: 104.093s $ fastboot reboot rebooting...
ok,就是这样了。spa