nexus 5 刷机

nexus 5 刷机

that_is_this关注

2018.03.17 17:36:50字数 1,002阅读 1,594

源码编译和刷机

编译Android 4.4.4 r1的源码刷Nexus 5手机详细教程

  1. 下载镜像
    https://developers.google.com/android/images#hammerhead
    在这里寻找想要的系统版本

  2. 开始刷机,按照以下命令
    参考网址:https://www.25pp.com/news/news_76805.html

1、将N5或者N6插入电脑,这时如果你的电脑中安装有任一手机管理软件,它都会自动帮你安装ADB驱动。

2、自动安装好驱动后,连接电脑的状态下将手机关机,然后按住电键和音量下键重启,进入bootloader模式。

image

3、成功进入后再电脑CMD中输入fastboot oem unlock,然后手机会弹出确认窗口,点击确认等待解锁成功。

解锁成功后你的手机就可以刷机啦,现在进入烹饪主菜环节

4、将下载好的tgz格式的刷机包解压缩,解压缩后再将里面的文件名为“image-hammerxxxx”的zip压缩文件解压缩。

▼如图为两次解压缩后获得的全部文件

image

接下来的环节都要在CMD下面以命令的形式进行。

5、在CMD中进入解压后的刷机包目录,比如我将刷机包解压在了F盘下的android文件夹中的m文件夹,所以路径如下图所示。

image

然后依次输入下列命令:

fastboot flash bootloader bootloader文件名 .img

image

fastboot flash radio radio文件名.img

image

6、然后重启bootloader:

fastboot reboot-bootloader

image

7、然后依次刷入recovery、boot、system等:

fastboot flash recovery recovery.img

fastboot flash boot boot.img

fastboot flash system system.img

image

8、为了保险起见,以上步骤完成后还需要清除掉旧的数据:

fastboot flash cache cache.img
fastboot erase userdata
fastboot flash userdata userdata.img

9、全部结束后输入命令重启手机:

fastboot reboot

等待手机重启就会进入Android M啦,第一次启动会很慢,需要耐心等待。

image

Nexus 5x Android 7.0 刷机

针对Nexus 5x刷7.0:
7.0固件官方:https://pan.baidu.com/s/1cMICGm
步骤:
1.1 下载adb工具并解压 https://pan.baidu.com/s/1bK08CQ
1.2 打开文件夹,将 adb.exe、fastboot.exe 复制到 c:/windows/system32下
1.3 再将 adb.exe、AdbWinApi.dll、AdbWinUsbApi.dll 这个三个文件复制到 c:/windows/system文件夹下
2.将.tgz文件解压,再将里面的.zip文件再次解压,将得到的所有文件复制到adb文件夹。在adb文件夹下按Shift+鼠标右键,选择「在此处打开命令窗口」;
3.关机,最好在关机前备份数据、取消锁屏密码、退出谷歌帐户;
4.一定记得在开发者选项里面打开OEM解锁;
5.长按电源+音量减进入fastboot,用数据线连接电脑,输入 fastboot device 查看手机是否已经和电脑连接好。然后开始刷机,把其中「xxx」换成实际的文件名

具体步骤如下:
刷入bootloader
fastboot flash bootloader xxx.img
刷入radio
fastboot flash radio xxx.img
重启bootloader
fastboot reboot-bootloader
刷入系统镜像
fastboot flash system system.img
刷入驱动
fastboot flash vendor vendor.img
刷入内核
fastboot flash boot boot.img
刷入Recovery
fastboot flash recovery recovery.img
清空cache分区
fastboot erase cache
清除缓存
fastboot flash cache cache.img
格式化全部数据
fastboot -w
重启

fastboot reboot

Android Pixel 9.0 bate 版下载

https://www.androidsage.com/2018/06/06/download-install-android-p-developer-preview-3-beta-3/
https://developer.android.com/preview/download#images
https://developer.android.com/preview/devices/
https://www.google.com/android/beta

刷机步骤:
fi
fastboot flash bootloader bootloader-sailfish-8996-012001-1804121206.img
fastboot reboot-bootloader
sleep 5
fastboot flash radio radio-sailfish-8996-130181-1806061856.img
fastboot reboot-bootloader
sleep 5
fastboot -w update image-sailfish-ppp5.180610.010.zip

Pixel 2 XL 刷机

adb reboot bootloader
fastboot flashing unlock
fastboot flashing unlock_critical

下载最新的 platform-tools
下载 想要刷的 rom

解压后点击:flash_all.bat

I've updated my Pixel 2 XL to the latest version and I wanted to try out the P preview.. The problem is that apparently I have an newer version of the bootloader.

Device version-bootloader is 'TMZ12bb'.
Update requires 'TMZ20f'.

fastboot flashing unlock
fastboot flashing unlock_critical


>adb reboot bootloader
    >fastboot.exe oem unlock
        FAILED (remote: oem unlock is not allowed)
        finished. total time: 0.015s
    >fastboot.exe flashing unlock
        FAILED (remote: oem unlock is not allowed)
        finished. total time: 0.013s
    >fastboot.exe flashing unlock_critical
        FAILED (remote: oem unlock is not allowed)
        finished. total time: 0.015s
    >fastboot.exe flashing get_unlock_ability
        (bootloader) get_unlock_ability: 0
        OKAY [ 0.043s]
        finished. total time: 0.046s
    >fastboot.exe flashing get_unlock_bootloader_nonce
        (bootloader) Command is not supported.
        (bootloader) Please unlock device to enable this command.
        FAILED (remote failure)
        finished. total time: 0.098s

c382b65


"your device is corrupt. it can't be trusted and may not work properly.",



官网:
https://developers.google.cn/android/images
对应 ota
https://developers.google.com/android/ota

platform-tools
https://developer.android.google.cn/studio/releases/platform-tools


images
https://dl.google.com/dl/android/aosp/taimen-opm1.171019.021-factory-55f528f1.zip


https://forum.xda-developers.com/pixel-2/help/pixel-2-xl-device-corrupt-t3806503

0人点赞

日记本

更多精彩内容,就在简书APP

"小礼物走一走,来简书关注我"

赞赏支持还没有人赞赏,支持一下

that_is_this最大的努力

总资产2共写了3.7W字获得43个赞共14个粉丝

关注

推荐阅读更多精彩内容

that_is_this

关注

总资产2

nginx 服务搭建

阅读 53

macos gcc 安装

阅读 858

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值