品尝棉花糖之Nexus5线刷Android6 0攻略

分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow

也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!

                       

自从我的四太子带着刚刚升级不久的Android5.0辞世后,我就购置了性价比超高的五太子替代之。系统一直是4.4.4,没有得到升级推送,就懒得手动升级,一直到4个月的今天。
几天前看到Android M的第三个预览版推出,正式命名棉花糖(Marshmallow)和版本号6.0也都尘埃落定。看的我有些心动,看来搞机之事就是当前我最想做的事了。

准备工作

备份:做好个人信息的备份,通讯录、照片和短信等等。
工具:adb、fastboot、系统固件
手机:我的五太子
其他:我的笔记本是Ubuntu14.04系统,外加数据线一条

系统固件需要到developer.android.com去找,这个问题呢就八仙过海各显其能了,链接:http://storage.googleapis.com/androiddevelopers/shareables/preview/hammerhead-MPA44I-preview-2ebbc049.tgz

网上看到一个帖子说升级到6要先确认一下当前的bootloader版本和baseband版本,需要分别大于HHZ12h和M8974A-2.0.50.2.26。为了避免不必要的失败,我姑且相信这个说法,解决办法是将系统先升级到5.1.1,然后再刷6.0.

tgz文件解压到一个简单的路径中,等待使用。内容如下:

hammerhead-MPA44I$ lltotal 607868drwxr-x--- 2 linc linc      4096  819 03:17 ./drwxrwxr-x 3 linc linc      4096  821 09:05 ../-rw-r----- 1 linc linc   3194452  819 03:17 bootloader-hammerhead-HHZ12i.img-rw-r----- 1 linc linc       974  819 03:17 flash-all.bat-rwxr-x--x 1 linc linc       845  819 03:17 flash-all.sh*-rwxr-x--x 1 linc linc       798  819 03:17 flash-base.sh*-rw-r----- 1 linc linc 572718099  819 03:17 image-hammerhead-MPA44I.zip-rw-r----- 1 linc linc  46515712  819 03:17 radio-hammerhead-M8974A-2.0.50.2.27.img
   
   
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11

刷机过程

1.进入fastboot模式

倾向于命令行的方式:

adb reboot bootloader
   
   
  • 1

扫描二维码关注公众号,回复: 4048197 查看本文章

2.解锁

fastboot oem unlock
   
   
  • 1

如果遇到等待设备的错误,

$ fastboot oem unlock< waiting for device >
   
   
  • 1
  • 2

就先试试fastboot设备能否找到。

$ fastboot devicesno permissions  fastboot
   
   
  • 1
  • 2

如果是权限问题,那么可以直接用sudo或直接切换到root执行,也可以直接修改fastboot的所有者和权限。如下:
将fastboot的所有者改成root:

$ ll /opt/sdk/platform-tools/fastboot-rwxrwxr-x 1 linc linc 556700  818 22:19 /opt/sdk/platform-tools/fastboot*$ sudo chown root:root /opt/sdk/platform-tools/fastboot$ ll /opt/sdk/platform-tools/fastboot-rwxrwxr-x 1 root root 556700  818 22:19 /opt/sdk/platform-tools/fastboot*
   
   
  • 1
  • 2
  • 3
  • 4
  • 5

修改权限:

$ sudo chmod +s /opt/sdk/platform-tools/fastboot$ ll /opt/sdk/platform-tools/fastboot-rwsrwsr-x 1 root root 556700  818 22:19 /opt/sdk/platform-tools/fastboot*
   
   
  • 1
  • 2
  • 3
  • 4

再次尝试:

$ fastboot devices0484c51a437cd6b9    fastboot
   
   
  • 1
  • 2

解锁操作为用音量键上下选择,电源键确认。如下图:

3.烧写5.1

$ ./flash-all.sh sending 'bootloader' (3119 KB)...OKAY [  0.307s]...--------------------------------------------Bootloader Version...: HHZ12hBaseband Version.....: M8974A-2.0.50.2.26Serial Number........: 0484c51a437cd6b9--------------------------------------------...sending 'system' (1021840 KB)...OKAY [ 32.204s]writing 'system'...OKAY [ 68.889s]...rebooting...finished. total time: 134.852s
   
   
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18

这样就提升了bootloader版本和baseband版本,为升级棉花糖做好了准备。

小绿人开始工作了,下面列出一些Android 5.1.1系统的图片,以供后续与6.0做对比。




4.烧写棉花糖

Android就这样做个过度吧,既然bootloader和baseband版本都满足要求,那就继续烧吧。

/hammerhead-MPA44I$ ./flash-all.sh target reported max download size of 1073741824 bytessending 'bootloader' (3119 KB)...OKAY [  0.266s]writing 'bootloader'...OKAY [  0.527s]finished. total time: 0.793srebooting into bootloader...OKAY [  0.056s]finished. total time: 0.107starget reported max download size of 1073741824 bytessending 'radio' (45425 KB)...OKAY [  1.533s]writing 'radio'...OKAY [  3.122s]finished. total time: 4.655srebooting into bootloader...OKAY [  0.039s]finished. total time: 0.090starget reported max download size of 1073741824 bytesarchive does not contain 'boot.sig'archive does not contain 'recovery.sig'archive does not contain 'system.sig'archive does not contain 'vendor.img'...--------------------------------------------Bootloader Version...: HHZ12iBaseband Version.....: M8974A-2.0.50.2.27Serial Number........: 0484c51a437cd6b9--------------------------------------------checking product...OKAY [  0.100s]checking version-bootloader...OKAY [  0.100s]checking version-baseband...OKAY [  0.100s]sending 'boot' (9156 KB)...OKAY [  0.500s]writing 'boot'...OKAY [  0.780s]sending 'recovery' (10016 KB)...OKAY [  0.570s]writing 'recovery'...OKAY [  0.825s]erasing 'system'...OKAY [  1.045s]sending 'system' (1018117 KB)...OKAY [ 32.084s]writing 'system'...OKAY [ 68.703s]erasing 'userdata'...OKAY [ 14.520s]sending 'userdata' (139109 KB)...OKAY [  4.570s]writing 'userdata'...OKAY [  9.352s]erasing 'cache'...OKAY [  0.591s]sending 'cache' (13348 KB)...OKAY [  0.630s]writing 'cache'...OKAY [  1.071s]rebooting...finished. total time: 136.111s
   
   
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64

5.bootloader上锁

fastboot oem lock
   
   
  • 1

启动

烧写顺利完成,剩下焦急的等待,等待它顺利的启动。
启动界面又换了一个有爱的动画。大概等了10分钟之久吧,系统才启动。
Tips:我们连不上google服务器,将sim卸掉再启动,避免卡到检查连接界面,等正式进入系统后在插上卡。



系统风格与主界面等一些用户可以看到的,变化不大。应用列表从左右滑动变成了向下滑动,并且在第一栏留了4个最近使用的图标。
增加了一些动画,配合上系统的流畅,用起来让人赏心悦目。



无法使用的App

目前有些主流app对新系统不兼容,启动后闪退。比如:
微信;
工行app;
百度外卖;
12306;
新浪微博。

正常使用的App

小结

从看的见和看不见的地方去感受这个新系统,改动并不是很大。个人觉得将版本号定为5.2更为合适一些。(6.0这步子有点大)
吸引我的地方是操控感受更加细腻柔和,很多细节地方确实令我心动。用起来很舒服,很顺心。

           

给我老师的人工智能教程打call!http://blog.csdn.net/jiangjunshow

这里写图片描述

猜你喜欢

转载自blog.csdn.net/yttyffggh/article/details/83991281
今日推荐