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.pswp.cn/news/280811.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/280811.shtml
英文地址,請注明出處:http://en.pswp.cn/news/280811.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

教你創建Google網站地圖Sitemap.xml(轉)

http://teachmyself.blog.163.com/blog/static/18881422920119895248288/ Sitemap.xml是 google搞出來的,也就是網站地圖,不過這個網站地圖是用xml寫的,而且要按google的標準來寫,并且要將寫出來的這個文件 sitemap.xml上傳到自己…

Oracle存儲過程語法

創建基本的存儲過程 1 CREATE OR REPLACE PROCEDURE MyProName IS 2 BEGIN 3 NULL; 4 END; 行1:CREATE OR REPLACE PROCEDURE 是一個SQL語句通知Oracle數據庫去創建一個叫做skeleton存儲過程, 如果存在就覆蓋它; 行2:IS關鍵詞表明后面將跟隨一個PL/SQL體。 行3:BEGIN關鍵詞表…

WPF-16 圖形處理

我們這節主要介紹WPF常用畫圖標簽,由于WPF圖形處理設計大量篇幅 ,我們在這里拋磚引玉,具體更多的學習資料鏈接https://github.com/microsoft/WPF-Samples/tree/master/Graphics 該鏈接中微軟提供了大量的學習Demo,WPF圖形處理最大的區別在于…

powershell 文件/文件夾操作

新建文件夾 New-Item -ItemType Directory -Force -Path $TargetPath復制文件夾到另外文件夾 Copy-Item <源文件夾> <新文件夾> -recurse -force 復制文件&#xff08;與修改文件名&#xff09; // 達到復制文件到新文件夾&#xff0c;及修改文件名效果 copy-…

純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;黑客擁有您的電…

Oracle Grid 11.2.0.4 安裝是出現INS-30510: Insufficient number of ASM disks selected.

最新文章&#xff1a;Virsons Blog 錯誤的原因是由于磁盤數和冗余層級不匹配&#xff1a; 如果創建用來存放OCR和VOTEDISK的ASM磁盤組&#xff0c;那么External、Normal、High三種冗余級別對應的Failgroup個數是1、3、5。也就是說&#xff0c;創建這三種冗余級別的磁盤組至少分…

動態編譯庫 Natasha 5.0 版本發布

動態編譯庫 Natasha 5.0 于十月份發布&#xff0c;此次大版本更新帶來了強大的兼容性支持&#xff0c;目前 Natasha 已支持 .NET Standard 2.0 及 .NET Core 3.1 以上版本&#xff08;包括 .NET Framework&#xff09;了。引入項目NuGet\Install-Package DotNetCore.Natasha.CS…

著名軟件公司的java筆試算法題!(含參考答案)

原題如下&#xff1a;用1、2、2、3、4、5這六個數字&#xff0c;用java寫一個main函數&#xff0c;打印出所有不同的排列&#xff0c;如&#xff1a;512234、412345等&#xff0c;要求&#xff1a;"4"不能在第三位&#xff0c;"3"與"5"不能相連.…

django08: 視圖與路由(舊筆記)

視圖&#xff08;Views&#xff09; https://www.cnblogs.com/liwenzhou/articles/8305104.html 1.CBV和FBV 2.?????上傳文件示例 路由 https://www.cnblogs.com/liwenzhou/p/8271147.html 1.url正則表達 2.分組命名匹配&#xff08;參數&#xff09; 3.反向解析 …

【BZOJ1042】硬幣購物(動態規劃,容斥原理)

【BZOJ1042】硬幣購物&#xff08;動態規劃&#xff0c;容斥原理&#xff09; 題面 BZOJ Description 硬幣購物一共有4種硬幣。面值分別為c1,c2,c3,c4。某人去商店買東西&#xff0c;去了tot次。每次帶di枚ci硬幣&#xff0c;買s i的價值的東西。請問每次有多少種付款方法。 In…

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…

纖程(FIBER)

Indy 10 還包含對纖程的支持。纖程是什么&#xff1f;簡單來說&#xff0c;它也是 一個“線程”&#xff0c;但是它是由代碼控制的&#xff0c;而不是由操作系統控制的。實際上&#xff0c;可以認為線程 是一個高級纖程。纖程和 Unix 用戶線程(Unix user threads)很相似。 線程…

制作一個用戶頭像選擇器仿 WeGame

制作一個用戶頭像選擇器仿 WeGameCropAvatar作者&#xff1a;WPFDevelopersOrg - 驚鏵原文鏈接&#xff1a;https://github.com/WPFDevelopersOrg/WPFDevelopers框架使用.NET40&#xff1b;Visual Studio 2019;制作一個用戶頭像選擇Canvas為父控件所實現&#xff0c;展示圖片使…

PS2019進階筆記(二)

云端網校筆記&#xff08;PS2015&#xff09; 一、圖層混合模式 圖層面板上的左上角&#xff0c;默認正常 混合下面圖層&#xff0c;下面正片&#xff08;如模特&#xff09;。 最常用是&#xff1a;不透明度 溶解&#xff1a;需調節透明度 變暗組&#xff1a; 亮區域去除…

Html5里frameSet不在使用的替代方法,使用ifram

原來得使用方式&#xff1a; <frameset rows"100,*" frameborder"0"><frame name"header" src"header.aspx"></frame><frameset cols"15%, *"><frame name"menu" src"left.aspx&…

網曝南方電網搞末位淘汰和裁員,給各下屬單位強制規定辭退率和降崗降級率!...

電網作為壟斷性國企&#xff0c;在人們心中一向是好單位的代名詞&#xff0c;但最近卻有網友曝光南方電網搞末位淘汰和裁員&#xff0c;給各單位下了辭退率和降崗降級率&#xff0c;每個單位都要開除一部分人&#xff0c;或者把一部分人崗級降下來。有南方電網員工馬上跑出來辟…

二維數組中的查找

2019獨角獸企業重金招聘Python工程師標準>>> 題目 在一個二維數組中&#xff0c;每一行中的數都按照從左到右、從上到下的遞增順序排列。要求輸入一個整數&#xff0c;判斷數組中是否存在該整數 實現代碼 function find($matrix, $rows, $columns, $key) {//TODO 參…

C# JObject轉換JSON文件相關處理

一、JObject.Parse 1.把整個json文件字符串轉化成JObject格式。 JObject jsonData JObject.Parse(jsonString); 2.逐級轉換成JObject 最低級是"Device": "Windowsr"&#xff0c;字典。 jsonData JObject.Parse(jsonData[jsonName][jsonIndex].ToStr…