我当初是用这种方式:
http://www.igao7.com/news/201406/nexus-root-ota.html
https://goo.im/devs/WugFresh/NexusRootToolkit/
来root的5.0,结果ota不行,
据说只能线刷5.01.
========
备份 塔机配件大全
=======
刷机精灵,想刷个cm的4.4,结果rom 脚本错误,让换ROM,
提供了一个救砖教程:http://www.shuame.com/faq/restore-tutorial/3396-google-nexus5.html 貌似是4.4.2的。
但是这次失败的刷机,在重启,等待很久开机后,发现是5.0,且清空了所有数据,
启动的的时候,会让你设置很多,谷歌的服务就不要开启了,不要当小白。
有个输入姓名的地方,我输入了中文,结果死活过不去。
检查网络连接,用了很长时间!
=========
参考 http://www.weand.com/rom/2013-12-06/LG_Nexus_5_official_Brush_tutorial_570502.shtml
下载https://developers.google.com/android/nexus/images
镜像文件。

=================
双击那个flash all的bat文件:
< waiting for device >
target reported max download size of 1073741824 bytes
sending 'bootloader' (2579 KB)...
OKAY [ 0.195s]
writing '
bootloader'...
OKAY [ 0.506s]
finished. total time: 0.703s
rebooting into bootloader...
OKAY [ 0.113s]
finished. total time: 0.114s
target reported max download size of 1073741824 bytes
sending '
radio' (45521 KB)...
OKAY [ 1.556s]
writing 'radio'...
OKAY [ 3.130s]
finished. total time: 4.689s
rebooting into bootloader...
OKAY [ 0.115s]
finished. total time: 0.117s
target reported max download size of 1073741824 bytes
archive does not contain 'boot.sig'
archive does not contain 'recovery.sig'
archive does not contain 'system.sig'
archive does not contain 'vendor.img'
Creating filesystem with parameters:
Size: 13725835264
Block size: 4096
Blocks per group: 32768
Inodes per group: 8144
Inode size: 256
Journal blocks: 32768
Label:
Blocks: 3351034
Block groups: 103
Reserved block group size: 823
Created filesystem with 11/838832 inodes and 93654/3351034 blocks
Cannot read image.
Creating filesystem with parameters:
Size: 734003200
Block size: 4096
Blocks per group: 32768
Inodes per group: 7472
Inode size: 256
Journal blocks: 2800
Label:
Blocks: 179200
Block groups: 6
Reserved block group size: 47
Created filesystem with 11/44832 inodes and 5813/179200 blocks
--------------------------------------------
Bootloader Version...: HHZ12d
Baseband Version.....: M8974A-2.0.50.2.22
Serial Number........: 062390c30acd5e45
--------------------------------------------
checking product...
OKAY [ 0.100s]
checking version-bootloader...
OKAY [ 0.099s]
checking version-baseband...
OKAY [ 0.099s]
sending 'boot' (8852 KB)...
OKAY [ 0.499s]
writing 'boot'...
OKAY [ 0.760s]
sending 'recovery' (9552 KB)...
OKAY [ 0.557s]
writing 'recovery'...
OKAY [ 0.801s]
erasing 'system'...
OKAY [ 1.347s]
sending 'system' (981472 KB)...
OKAY [ 31.463s]
writing 'system'...
OKAY [ 86.642s]
erasing 'userdata'...
OKAY [ 15.367s]
erasing 'cache'...
OKAY [ 0.569s]
sending 'cache' (13348 KB)...
OKAY [ 0.639s]
writing 'cache'...
OKAY [ 1.080s]
rebooting...
finished. total time: 140.550s
Press any key to exit...
============
重启就是5.0.1了
====移动网络待机掉电厉害的问题====
http://xn--yet824cpd.xn--fiqs8s/45.html
adb shell su -c "settings put global captive_portal_server www.265.com"
==============================