nexus 手动增加_如何使用Google的工厂图像手动升级Nexus设备

nexus 手动增加

nexus 手动增加

android-fastboot

Google’s Nexus devices are supposed to receive timely updates, but the staggered rollout means it can take weeks for devices to receive over-the-air (OTA) updates. Luckily, there’s a faster (and geekier) way to install the latest version of Android.

Google的Nexus设备应该会及时收到更新,但分阶段推出意味着设备可能需要数周的时间才能收到空中(OTA)更新。 幸运的是,有一种更快(更怪异)的方法来安装最新版本的Android。

Google provides official system images for their Nexus devices, which anyone can download and flash on their own. This is an easy way to skip the wait when a new version of Android is released for Nexus devices.

Google为Nexus设备提供了官方的系统映像,任何人都可以自行下载并刷新。 当为Nexus设备发布新版本的Android时,这是跳过等待的简单方法。

Note that this process is more complicated than simply waiting for an over-the-air update. If you’re a normal person and not a geek with an itchy trigger finger, you’ll probably just want to wait.

请注意,此过程比仅等待无线更新更为复杂。 如果您是普通人,而不是触发手指发痒的怪胎,您可能只想等待。

第一步:解锁设备的引导程序 (Step One: Unlock Your Device’s Bootloader)

To flash a system image, your device will need to be unlocked. Nexus devices allow you to unlock their bootloader with a single command. If you’ve already unlocked your device to root it or install a custom ROM, you can skip this part. If you haven’t yet, you should be warned the unlocking your device will wipe its data, as if you had performed a factory reset.

要刷新系统映像,您的设备将需要解锁。 Nexus设备可让您通过一个命令解锁其引导程序。 如果您已经解锁了设备以使其成为root用户或安装了自定义ROM,则可以跳过此部分。 如果尚未开始,则应警告您,解锁设备将擦除其数据,就像您已恢复出厂设置一样。

You can unlock your boot loader in several different ways. The official method is through a simple teriminal command, but for an even easier method, you can use the Nexus Root Toolkit, which will walk you through the process.

您可以通过几种不同的方式解锁引导加载程序。 官方方法是通过一个简单的终止命令,但对于更简单的方法,您可以使用Nexus Root Toolkit ,它将逐步引导您完成该过程。

第二步:安装ADB和Fastboot (Step Two: Install ADB and Fastboot)

You’ll need two other things for this process: the Android Debug Bridge, which is a command line tool for your computer that lets you interface with your phone, and your phone’s USB drivers. Even if you’ve installed these before, you should get the latest versions now.

此过程还需要另外两件事:Android调试桥,这是计算机的命令行工具,可让您与手机连接;以及手机的USB驱动程序。 即使您以前已经安装了这些,也应该立即获取最新版本。

We’ve detailed how to install both before, but here’s the brief version:

在此之前,我们已经详细介绍了如何安装这两种方法,但是这是简短的版本:

  1. Head to the Android SDK download page and scroll down to “SDK Tools Only”. Download the ZIP file for your platform and unzip it wherever you want to store the ADB files.

    转到Android SDK下载页面,然后向下滚动到“仅SDK工具”。 下载适合您平台的ZIP文件,然后将其解压缩到要存储ADB文件的位置。

  2. Start the SDK Manager and deselect everything except “Android SDK Platform-tools”. If you are using a Nexus phone, you can also select “Google USB Driver” to download Google’s drivers.

    启动SDK Manager,然后取消选择除“ Android SDK Platform-tools”以外的所有内容。 如果您使用的是Nexus手机,则还可以选择“ Google USB驱动程序”来下载Google的驱动程序。
  3. After it’s finished installing, you can close the SDK manager.

    安装完成后,您可以关闭SDK管理器。
  4. Install the USB drivers for your phone. You can find these on your phone manufacturer’s website (e.g. Motorola or HTC). If you have a Nexus, you can install the Google drivers you downloaded in step 2 using these instructions.

    安装手机的USB驱动程序。 您可以在电话制造商的网站(例如Motorola或HTC )上找到它们。 如果您有Nexus,则可以按照以下说明安装在步骤2中下载的Google驱动程序。

  5. Reboot your computer if prompted.

    如果出现提示,请重新启动计算机。
2016-03-24_09h57_20

第三步:下载系统映像 (Step Three: Download the System Image)

Visit Google’s Factory Images for Nexus Devices page and download the appropriate image for your device. Note that you’ll need the image for your specific hardware. For example, there are separate images for the Nexus 7 (2013) with Wi-Fi only and for the Nexus 7 (2013) with cellular data. Make sure you download the right one.

访问Google的Nexus设备出厂图像页面,并下载适合您设备的图像。 请注意,您将需要特定硬件的映像。 例如,对于仅具有Wi-Fi的Nexus 7(2013)和具有蜂窝数据的Nexus 7(2013),存在单独的图像。 确保下载正确的一个。

Download the file to your computer and use a file-extraction program, like the free 7-Zip, to extract its contents to your ADB folder.

将文件下载到计算机,并使用文件提取程序(例如免费的7-Zip )将其内容提取到您的ADB文件夹中。

2016-03-24_10h33_13

第四步:确定是否擦除数据 (Step Four: Decide Whether to Wipe Your Data)

Flashing the system image in the normal way will wipe your device, essentially performing a factory reset. You can try to update without wiping your device, although you may encounter problems. However, this process should work fine when going from one Android version to the next version.

以正常方式刷新系统映像将擦除您的设备,实质上是恢复出厂设置。 尽管您可能会遇到问题,但是您可以尝试在不擦除设备的情况下进行更新。 但是,当从一个Android版本转到下一版本时,此过程应该可以正常工作。

To prevent your device from being wiped, open the flash-all.bat file in a text editor like Notepad++. Edit the line containing “fastboot -w update” and remove the -w switch before saving the file.

为防止设备被擦拭,请在文本编辑器(如Notepad ++)中打开flash-all.bat文件。 在保存文件之前,编辑包含“ fastboot -w update”的行,并删除-w开关。

2016-03-24_10h07_31

第五步:刷新系统映像 (Step Five: Flash the System Image)

Copy the system image files into the same folder as ADB. Then hold the Shift key, right-click in that folder, and select “Open command window here” to open a Command Prompt window in that folder.

将系统映像文件复制到与ADB相同的文件夹中。 然后按住Shift键,右键单击该文件夹,然后选择“在此处打开命令窗口”以在该文件夹中打开命令提示符窗口。

2016-03-24_10h08_10

Enable USB debugging on your Nexus device by accessing the hidden Developer Options menu and turning on the USB debugging option.

通过访问隐藏的“开发人员选项”菜单并打开USB调试选项,在Nexus设备上启用USB调试。

Connect your Nexus device to your computer with its included USB cable, and then run the following command to reboot the device into the boot loader:

使用随附的USB电缆将Nexus设备连接到计算机,然后运行以下命令将设备重新引导到引导加载程序中:

adb reboot bootloader

If there’s a problem, you may need to fix your device’s drivers. Read this guide for more information on setting up ADB and ensuring it’s working properly. Bear in mind that you’ll have to accept the authentication prompt on the device before the adb command can do anything.

如果有问题,则可能需要修复设备的驱动程序。 阅读本指南以获取有关设置ADB并确保其正常运行的更多信息。 请记住,在adb命令可以执行任何操作之前,您必须接受设备上的身份验证提示。

2016-03-24_10h09_17

Once the device displays the boot loader on its screen–you’ll see an Android with its front panel open–double-click the flash-all.bat file. The script should flash your device with the new system image.

设备在屏幕上显示引导加载程序后,您会看到一个前面板打开的Android设备,双击flash-all.bat文件。 该脚本应使用新的系统映像刷新设备。

2016-03-24_10h15_16

When the process is complete, your device will reboot automatically. If you didn’t remove the -w option, you’ll have to go through the first-time setup process again.

该过程完成后,您的设备将自动重启。 如果未删除-w选项,则必须再次执行首次设置过程。

如果脚本不起作用怎么办 (What to Do If the Script Doesn’t Work)

Sometimes, however, flash-all.bat will generate an error about missing resources or lack of space. In that situation, it’s generally better to just manually flash everything piece by piece. This trick is also useful if you only want to flash part of the factory image–like the bootloader or the recovery–without flashing the rest.

但是,有时flash-all.bat会生成有关资源丢失或空间不足的错误。 在这种情况下,通常最好逐个手动刷新所有内容。 如果您只想刷新部分工厂映像(如引导加载程序或恢复映像)而又不刷新其余部分,则此技巧也很有用。

The first thing you’ll need to do before inputting the manual commands is unzip the image file, which typically uses the “image-device-build.zip” naming format. It’s easier to unzip the contents of the file directly into the folder you’re already working in so all the required files are in the same location. Once unzipped, there should be five or six additional files in your working folder (depending on the device): android-info.txt, boot.img, cache.img, recovery.img, system.img, radio.img (for devices with mobile connections only), and vendor.img (Nexus 9 only).

输入手动命令之前,您需要做的第一件事是解压缩图像文件,该文件通常使用“ image -device-build .zip”命名格式。 将文件内容直接解压缩到您已经在使用的文件夹中比较容易,因此所有必需的文件都位于同一位置。 解压缩后,工作文件夹中应有五个或六个其他文件(取决于设备):android-info.txt,boot.img,cache.img,recovery.img,system.img,radio.img(针对设备) (仅限移动设备)和vendor.img(仅限Nexus 9)。

2016-03-24_10h06_13

Once everything is unpacked, reboot back into the bootloader–using the adb reboot bootloader command from earlier–and run the following commands, pressing Enter after each one, to manually flash each item to your device.

解压缩所有内容后,使用较早版本的adb reboot bootloader命令重新引导回adb reboot bootloader ,然后运行以下命令,每输入一个命令后按Enter键,以手动将每个项目刷新到设备中。

fastboot erase boot
fastboot erase cache
fastboot erase recovery
fastboot erase system
fastboot flash bootloader "name-of-bootloader.img"
fastboot reboot-bootloader
fastboot flash radio "name-of-radio.img" (if present)
fastboot reboot-bootloader
fastboot flash system system.img
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash cache cache.img
fastboot flash vendor vendor.img (Nexus 9 only)

If you’re doing a clean install of Android and want to wipe everything, use the following commands next:

如果您要全新安装Android并想擦除所有内容,请在下面使用以下命令:

fastboot erase userdata
fastboot flash userdata userdata.img
fastboot reboot

Keep in mind that some of these commands can take time some to flash—namely system.img and userdata.img—so don’t worry if the command prompt seems to be unresponsive. Once it’s ready for the next command, the cursor will re-appear.

请记住,其中一些命令可能需要一些时间才能刷新(即system.img和userdata.img),因此请不要担心命令提示符似乎没有响应。 一旦准备好执行下一个命令,光标就会重新出现。



This process is also useful if you’ve flashed a custom ROM and need to get back to the standard Android system image that comes with your device. This option is largely intended for developers and Android geeks, so it’s more complicated than simply waiting for a normal OTA (over-the-air) update.

如果您已经刷新了自定义ROM并且需要返回到设备随附的标准Android系统映像,则此过程也很有用。 此选项主要用于开发人员和Android极客,因此它比简单地等待正常的OTA(空中下载)更新要复杂得多。

翻译自: https://www.howtogeek.com/176284/how-to-upgrade-your-nexus-device-without-waiting-by-flashing-a-factory-image/

nexus 手动增加

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/280811.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

WPF-16 图形处理

我们这节主要介绍WPF常用画图标签,由于WPF图形处理设计大量篇幅 ,我们在这里抛砖引玉,具体更多的学习资料链接https://github.com/microsoft/WPF-Samples/tree/master/Graphics 该链接中微软提供了大量的学习Demo,WPF图形处理最大的区别在于…

纯CSS制作各种各样的网页图标(三角形、暂停按钮、下载箭头、加号等)

三角形 <div class"box"></div> <style>.box{ width: 0;height: 0;border-top: 50px solid transparent;border-bottom: 50px solid transparent;border-left: 50px solid transparent;border-right: 50px solid red; } </style> 平行四边形…

您的MyFitnessPal帐户几乎肯定已被黑客入侵,请立即更改密码

If you’re one of the millions of the 150 million MyFitnessPal users, bad news: hackers have your email address, your user name, and your hashed password. 如果您是1.5亿MyFitnessPal用户中的数百万用户之一&#xff0c;那么这是个坏消息&#xff1a;黑客拥有您的电…

ios 启用 证书_如何在iOS 10中启用就寝提醒,轻柔的唤醒和睡眠跟踪

ios 启用 证书If you have trouble regularly getting a full night’s sleep, the new Bedtime feature in iOS 10 might just help. Set a wake up time and how many hours of sleep you need, and iOS offers bedtime reminders, more gentle alarms, and basic sleep trac…

struts OGNL表达式

OGNLContext对象有两部分构成 一部分是ROOT&#xff1a;可以放置任何对象作为ROOT 另外一部分Context&#xff1a;必须是Map形式&#xff08;键值对&#xff09; OGNL表达式操作 package cn.future.a_ognl;import java.util.HashMap; import java.util.Map;import ognl.Ognl; i…

制作一个用户头像选择器仿 WeGame

制作一个用户头像选择器仿 WeGameCropAvatar作者&#xff1a;WPFDevelopersOrg - 驚鏵原文链接&#xff1a;https://github.com/WPFDevelopersOrg/WPFDevelopers框架使用.NET40&#xff1b;Visual Studio 2019;制作一个用户头像选择Canvas为父控件所实现&#xff0c;展示图片使…

网曝南方电网搞末位淘汰和裁员,给各下属单位强制规定辞退率和降岗降级率!...

电网作为垄断性国企&#xff0c;在人们心中一向是好单位的代名词&#xff0c;但最近却有网友曝光南方电网搞末位淘汰和裁员&#xff0c;给各单位下了辞退率和降岗降级率&#xff0c;每个单位都要开除一部分人&#xff0c;或者把一部分人岗级降下来。有南方电网员工马上跑出来辟…

二维数组中的查找

2019独角兽企业重金招聘Python工程师标准>>> 题目 在一个二维数组中&#xff0c;每一行中的数都按照从左到右、从上到下的递增顺序排列。要求输入一个整数&#xff0c;判断数组中是否存在该整数 实现代码 function find($matrix, $rows, $columns, $key) {//TODO 参…

蓝牙追踪_如何使用蓝牙追踪器跟踪您的东西

蓝牙追踪We’ve all done it: you misplace something important and you spend a lot of time (with a lot of stress) backtracking to locate it again. With Bluetooth tracking devices you can make the hunt a lot easier, less stressful, and even avoid losing the t…

vba发送邮件 签名_如何更改“从Windows 10的邮件发送”签名

vba发送邮件 签名The Windows 10 Mail app is a decent email client that allows you to add other email accounts in addition to your Microsoft accounts. You’ll notice, though, that any emails you write in the Mail app have a default signature. Windows 10 Mail…

JAVA_SE基础——24.面向对象的内存分析

黑马程序猿入学blog ... 接着上一章的代码&#xff1a; //车类 class Car{//事物的公共属性使用成员变量描写叙述。String name; //名字的属性 String color; //颜色属性 int wheel; //轮子数 //事物的公共行为使用函数描写叙述。 public void run(){ System.out.println(name&…

煮茶社区AVR开发板第二版[转]

原图:http://blossom.cnblogs.com/gallery/image/21891.html

[Kogel.Subscribe.Mssql]SQL Server增量订阅,数据库变更监听

此框架是SQL Server增量订阅&#xff0c;用来监听增删改数据库数据变更目前仅支持SQL Server&#xff0c;后续会支持MySQL和Oracle&#xff0c;Nuget上可以下载安装或者使用Nuget命令添加包dotnet add package Kogel.Subscribe.Mssql --version 0.0.0.1可以用来处理DB主从同步&…

MFC 单选按钮Radio使用注意

使用MFC Radio时遇到问题&#xff1a;数据交换时出现断言崩溃框 定位于&#xff1a; 解决方法&#xff1a; 1、按CTRLD&#xff0c;保证同一组内的radio的tab序号是连续的&#xff1b; 2、同一组内&#xff0c;设置 radio1的属性&#xff1a; group、tabstop、auto均为true&am…

C# 字符串操作:split、substring、Format

1.split split可以使用多个字符切割。 "test[12]"切割后是3个字符串&#xff0c;最后一个为空。 string testString "test[12]";string[] testData testString.Split([,]);int testLength testData.Length;Console.WriteLine(testLength.ToString());…

flac格式转换mp3格式_MP3,FLAC和其他音频格式之间有什么区别?

flac格式转换mp3格式Digital audio has been around a very long time so there’s bound to be a plethora of audio formats out there. Here are some of the more common ones, what differentiates them, and what to use them for. 数字音频已经存在了很长时间&#xff…

Kubernetes:Flomesh 服务网格与多集群通信

Kubernetes 成功普及了容器集群的概念。许多用户已经在多个集群中部署应用&#xff0c;组织需要运行多个 Kubernetes 集群可能来自以下原因&#xff08;并非详尽列表&#xff09;&#xff1a;• 位置• 延迟&#xff08;尽可能在靠近客户的地方运行应用程序&#xff09;• 管辖…

袁永福软件行业从业经历

简化版》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》 袁永福简历 袁永福&#xff0c;男&#xff0c;1980年生于江西省九江市都昌县&#xff0c;2001年南京东南大学动力工程系本科毕业。毕业后一直从事计算机软件开发工作&…

小程序之地图导航

同学们平常使用地图的时候应该都有注意到&#xff0c;当我们在一个应用中选择一个地址&#xff0c;打开一个地图&#xff0c;往往会有两种显示方式&#xff0c;一个是显示当前自己的位置&#xff1b;一个是显示对方&#xff0c;也就是目的地的位置&#xff1b;如下图&#xff1…

PS2019摄影后期处理(一)

高高手之路笔记 一、学习方法 内外兼修&#xff1a;技术会淘汰、更新&#xff0c;自己内在也要提高。 二、照片格式、色彩空间 JPEG TIFF RAW sRGB&#xff1a;互联网相关图片&#xff0c;电子设备 三、照片风格 自己定义照片格式&#xff0c;直接后期效果 相机自带工具&a…