How To: The Complete Guide to Flashing Factory Images on Android Using Fastboot

How To: The Complete Guide to Flashing Factory Images on Android Using Fastboot
If your phone has an unlocked bootloader, you can use Fastboot commands to flash factory images. That may sound like a bunch of technical jargon, but when it comes down to it, this is the best method for updating a rooted device, fixing a bricked phone, reverting to stock, or even getting new Android updates before everyone else.Much like ADB, Fastboot is a very powerful Android utility that accepts commands through a terminal shell. But if that sounds intimidating, don't worry—because once you've learned your way around things, you'll know so much more about the inner workings of Android, as well as how to fix most common problems.Don't Miss: Know Your Android Tools: What is Fastboot & How do You Use It?
A Note About Samsung DevicesThe process outlined below will work for most Nexus, Pixel, HTC, and Motorola devices, as well as phones and tablets from many other manufacturers. However, Samsung devices use their own firmware-flashing software, so Fastboot isn't the way to go if you own a Galaxy. Instead, it's best to use Odin to flash firmware on a Samsung device, and we've covered that process at the following link.Don't Miss: How to Flash Stock Firmware on Your Samsung Device Using Odin
Step 1: Install ADB & Fastboot on Your ComputerFirst, you'll have to install ADB and Fastboot on your computer, which are the utilities that let you flash images using Fastboot commands. There are several "one-click" and "light" versions of ADB and Fastboot made by third-parties, but I wouldn't recommend using these because they're not updated as frequently as the official utilities, so they might not be fully compatible with newer devices.Instead, your best bet is to install either the Android SDK Tools, which contains ADB and Fastboot, or just ADB and Fastboot, from Google. No matter if you choose the full package or just the platform tools themselves, they're the real deal. I've outlined the install process for Windows, Mac, and Linux in Method 1 at the following guide, so head over there to get started.Don't Miss: How to Install ADB & Fastboot on Windows, Mac, or Linux

Step 2: Enable OEM UnlockingIn order to flash images using Fastboot, your device's bootloader will need to be unlocked. If you've already done this, you can skip ahead to Step 3.But before you can unlock your bootloader, there's a setting that you'll need to enable if your device shipped with Android Marshmallow or higher preinstalled. To access this setting, start by enabling the Developer options menu on your phone or tablet. Once you've done that, open the Developer options menu, then enable the switch next to "OEM unlocking," and you'll be good to go. If this option is not present on your device, it's likely that your device didn't ship with Android Marshmallow or higher preinstalled. However, if the option is present but grayed out, this usually means that your bootloader cannot be unlocked, which means you won't be able to flash images using Fastboot.

Step 3: Put Your Phone into Bootloader ModeIn order to run any Fastboot commands, your phone or tablet will need to be in bootloader mode. This process will vary depending on your device.For most phones, start by powering your device completely off. When the screen goes black, press and hold the volume down and power buttons simultaneously, and keep holding them for about 10 seconds.If that doesn't work, turn the phone off, then press and hold the volume down button. From there plug a USB data cable into your PC, then simply wait a few seconds.If that still didn't work, try repeating the USB cable method, but this time use the volume up button.Within moments, you should be greeted by Android's Bootloader menu, which should look something like this: Bootloader mode on the Pixel XL. Image by Dallas Thomas/Gadget Hacks When you see this screen, make sure your phone or tablet is plugged into your computer with a USB data cable. Aside from that, leave the device alone, as the rest of the work will be done on the computer side of things.

Step 4: Open an ADB Shell on Your ComputerNavigate to the ADB and Fastboot installation directory on your computer. For Windows users, this can usually be found at C:\Program Files (x86)\Android\android-sdk\platform-tools. For Mac and Linux users, it depends on where you extracted your ADB folder when you installed the utility, so search your hard drive for the platform-tools folder if you've forgotten.From here, if you're using a Windows PC, hold down the shift button on your keyboard, then right-click any empty space and choose "Open command window here." For Mac and Linux users, simply open a Terminal window, then change directories to the platform-tools folder inside of your ADB installation directory.

Step 5: Unlock the BootloaderThis next step is something you only need to do once, so if your bootloader is already unlocked, you can skip ahead. Otherwise, you'll need to run a single Fastboot command—but note that this will wipe all data on your device.Before we get into this part, note that I'll be listing the commands for Windows users. Mac users will have to add a period and a slash (./) before each of these commands, and Linux users will have to add a slash (/) to the front.So from the ADB shell, type the following command, then hit enter.fastboot devices If that returns a series of letters and numbers followed by the word "fastboot," then your device is connected properly and you're good to go. Otherwise, refer back to Step 1 to check your ADB and Fastboot installation, and ensure that your device is in bootloader mode as shown in Step 3. Next up, it's time to unlock your bootloader. Depending on the Android version your device shipped with, this will be done in one of two ways.So if your device shipped with Lollipop or lower pre-installed, enter the following command:fastboot oem unlock If your device shipped with Marshmallow or higher, type the following command, then hit enter:fastboot flashing unlock Sending the bootloader unlock command to a device that shipped with Marshmallow or higher. At this point, you'll see a message on your Android device asking if you're sure you'd like to unlock the bootloader. Make sure the "Yes" option is highlighted, and if it's not, use your volume keys to do so. From there, press the power button, then your bootloader will unlock and your phone will reboot back into Fastboot mode. Bootloader-unlock screen on the Nexus 6P. Image by Dallas Thomas/Gadget Hacks
Step 6: Download the Factory ImagesNow that your bootloader is unlocked, you're ready to start flashing factory images—but first, you'll have to download the actual images themselves. Below are some links to download the factory images package for common devices.Factory images for Nexus or Pixel devices Factory images for HTC devices Factory images for Motorola devices Factor images for OnePlus devices Factory images for Essential devices With each of the above links, simply locate your device model in the list, then download the latest available firmware on your computer. If your manufacturer is not listed here, try Googling "factory images for <phone name>."

Step 7: Flash the Factory ImagesNow it's time to flash the images. The first thing you'll want to do here is extract the factory images archive that you downloaded from your manufacturer's website. For that part, I'd recommend using 7-Zip, as it's free and works with most archive formats. Extracting the factory images archive. Next, move all of the contents of the archive to the platform-tools folder inside of your ADB installation directory, then open an ADB Shell window in this folder. For more information on that, refer back to Step 4 above. Factory image files transferred to the platform-tools folder. Aside from that, there are two different approaches you can take when flashing the images. I'll outline both of them in separate sections below.

Option 1: Use the Flash-All ScriptMost factory images packages will contain a "flash-all" script that applies all of the images in one fell swoop. If you're trying to recover your device from a soft brick, this is the simplest way to go. However, it will unroot your device and wipe all existing data, so if you'd rather avoid that, see Option 2 below.But to run the flash-all script, type the following line into the command prompt, then hit enter:flash-all Sending the "flash-all" command. The process will take a few minutes, but when it's done, your phone should automatically reboot and you'll be running complete, 100% stock firmware.

Option 2: Extract the Images & Flash Them IndividuallyFor a second option, you can flash the system images individually. This method takes some extra work, but it can be used to un-root, update, or un-brick your device without losing existing data.Start by extracting any additional archives from the factory images package. Sometimes, factory images packages can contain a series of three or four nested archives, so make sure to unzip all of them. From there, copy all of the image files to the main platform-tools folder—in other words, don't leave them in any sub-folders. All images extracted from factory images package into platform-tools folder. From here, there are two images that you can get rid of: cache.img and userdata.img. These are the images that will overwrite your data and cache with blank space, so if you don't flash them, your existing data will remain intact.Of the remaining images, six make up the core elements of Android: boot, bootloader, radio, recovery, system, and vendor.The boot image contains the kernel, so if you just want to get rid of a custom kernel that's causing issues with your device, you only have to flash this one. To do that, type the following command into the ADB shell window:fastboot flash boot <boot image file name>.img Next is the bootloader image—this is the the interface that you're using to flash images with Fastboot commands. So to update your bootloader, type:fastboot flash bootloader <bootloader image file name>.img Once you've done that, you should reload the bootloader so that you can continue flashing images on the newer version. To do that, type:fastboot reboot-bootloader After that, we have the radio image. This one controls connectivity on your device, so if you're having problems with Wi-Fi or mobile data, or if you just want to update your radio, type:fastboot flash radio <radio image file name>.img Then there's recovery. This is something you may or may not want to flash, depending on the modifications you've made. For example, if you've installed TWRP custom recovery, flashing this image will overwrite your modification and replace it with the stock recovery interface. So if you're just updating your modded device, you should skip this one. Otherwise, if you plan to keep your phone stock and want the newer version of stock recovery, type:fastboot flash recovery <recovery file name>.img Next up is the big one: The system image. This one contains all of the files that make up the actual Android OS. As such, it's the most essential part of any update.However you may not be updating your phone. You may just be re-flashing the stock firmware to recover from a soft brick. If this is the case, the system image is often the only image you need to flash in order to fix everything, because it contains the entirety of Android. In other words, if you flash this image and nothing else, it will undo any changes you made with root access and put everything back the way it was.So as a cure-all in most soft brick situations, or as a method for getting the core part of an Android update, type:fastboot flash system <system file name>.img Finally, there's the vendor image. This is only present on newer phones, so don't worry if it's not in your factory images package. But if it's there, it contains a few important files, so type the following line to get this partition updated:fastboot flash vendor <vendor file name>.img After you've sent any or all of the above commands, you'll be ready to restart your device and boot into Android. To do that, type:fastboot reboot Flashing the factory images individually. At this point, your device should be fully updated, or if you were trying to recover from a soft brick, it should be running flawlessly. And since you now know what each of the core system images actually does, you'll have a better sense of how Android works going forward.Flashing factory images individually has helped me understand more about Android than any other mod or process. If you think about it, Android is just a series of images written to flash storage, and now that you've dealt with each of them individually, you should be able to identify and resolve root-related issues a lot easier.Follow Gadget Hacks on Facebook, Twitter, Google+, and YouTube Follow Android Hacks on Facebook, Twitter, and Pinterest Follow WonderHowTo on Facebook, Twitter, Pinterest, and Google+
Cover photo and screenshots by Dallas Thomas/Gadget Hacks



With these apps you can lower screen brightness upto 0%, so at night there will be no harm to your eyes. Lower The Level of Brightness on Android Below, Is the List of Some of the top / best / good apps, which you can use in your Android device right now for lower the brightness level more than minimum allowed in your device.
How to Lower Screen Brightness on Your Mac Below the Default

How to Text bomb your friends with the iPhone 3G, 3Gs, and 4


How to Transfer Data Between a Cell Phone and Computer. This wikiHow teaches you how to move files and information from your iPhone or Android phone onto your Windows or Mac computer. Data that you can send from your phone to your computer
Tips to Backup Media Files from Samsung Phones to PC/Mac


Even when activity is deleted, some data about your use of Google services may be kept for the life of your Google Account. For example, after you delete a search from My Activity, your account will store the fact that you searched for something, but not what you searched for.
How to Delete Your Google Search History in a Few Easy Steps
money.com/money/5221313/how-to-delete-your-google-search-history/
Deleting your Google web browser history and Google search history is one way to limit how much data you allow to be collected about you on the internet. Even if you're someone who already uses Google's incognito web browser, you're still not being kept completely anonymous online.
How to Delete Google History: 8 Steps (with Pictures


Introduced earlier this year, HTC's Power to Give campaign enables any of us with Android devices (running Android 4.4 or higher) to use our device's processing power to compute some of the data necessary to solve the world's deepest challenges. Don't Miss: 5 Ways You Can Help Science Out with Your Android
4 Apps to Help Keep Your Android Device Secure « Android

How to SSH into iPhone/iPod Touch using WinSCP (Windows)


How To: Galaxy Note 4's Exclusive Apps Now Available for Any Galaxy Device How To: Control & Customize System Sounds & Volume Settings on Your Samsung Galaxy Note 2 How To: Customize the Crap Out of Your Samsung Galaxy Note 2's Status Bar
Galaxy Notes | Get Latest Discounts
AD


Get great deals and discounts on an Allrecipes magazine subscription at Magazines.com. Allrecipes magazine features great recipes from the most trusted website for cooking, food, and recipies. Save up to 67% off the cover price.


Report Ad
Did you check eBay? Fill Your Cart With Color today!


This handy video tutorial presents instructions for getting an Internet browser on your Xbox 360 game console without any mods. All you'll need to follow along is to configure Xbox Media Center, or XMBC, to use the computer you use to surf the Internet.
How To Play Free Web Browser Games On Xbox One - One Angry Gamer


Do you have your family tree on Ancestry.com, Geni, MyHeritage, or Tribal Pages? Ancestry Graphics & Printing can design and print your chart. It is also possible for them to print it from a GEDCOM file (but this does not allow you to design how it will look).
Part Two: A Guide to Creating Family Tree Charts - MyHeritage

How to Cast Web Videos from iPad or iPhone to Chromecast


How to install snapchat on mac, macbook, and macbook air. The idea is to use some kind like android emulator to run snapchat's android app, it's called Bluestacks. Bluestacks is android emulator software that used to build for Windows PC, but they decided to make the mac version, so here we are, we will use Bluestacks to run snapchat on Mac.
How to Use Snapchat on PC (Windows or Mac)


Continue adding as many shortcuts to Drive folders as you need to your home screen. Once you add your last shortcut, go to the home screen page housing the shortcuts and drag them onto each other
How To Add Google Drive File Shortcuts To Your Home Screen


FilesHut is precisely what we call as a search engine to find files through 50+ file hosting sites including Rapidshare, Megaupload, 4Shared, Hotfile, Mediafire, Netload, Filesonic and Wupload. Everyday about millions and millions of files are added so I'm quite sure that you will find your file.
Rapidshare.com & Megaupload.com files search - MegaDownload
megadownload.net
Rapidshare.com and Megaupload.com search engine. MegaDownload easy way to search and download shared files from different file hosting sites.
Rapidshare Search Shared Files Alternatives and Similar

0 comments:

Post a Comment