1. Download our Official Android App: Forums for Android!

Re-flashing Nexus 6

Discussion in 'Android Devices' started by php111, Jul 26, 2016.

  1. php111

    php111 Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    38
    Posts:
    250
    Joined:
    Feb 12, 2013

    Feb 12, 2013
    250
    21
    38
    I was asking Rxpert83 in a private PM and he told me to post in public (I am sorry about that).


    He posted me guide to re-flash the Nexus 6 device: However, I have numerous of questions to ask.


    I read that re-flashing guide.

    Here are some parts of that guide does not make sense, do not know what to type in, and do not know where to get those files from. So, here we go :)

    Step 6.) fastboot "rest of command", what is the rest of that command I am typing in?

    Do I type in the above first before typing this in? fastboot devices

    Step 7.) how do I know if my bootloader is locked or unlocked?

    Step 9.)
    fastboot flash bootloader "name of bootloader"
    fastboot reboot-bootloader, what would be the exact name of the bootloader I would type in inside of the quotes?

    Step 10.) Nexus 6 is a phone, so first where do I get those radios from to flash? Second, which radios am I flashing? Third, do I use this exact command regardless of the radio?
    fastboot flash radio "name of radio"
    fastboot reboot-bootloader, fourth, how do I flash the LTE radio, after that than how do I flash the CDMA radio? Fifth, in the quotes, what is the name of the radio I am typing?

    Step 11.) Would you prefer which of these two ways?

    Flash fastboot -w update "name of zip file"

    OR flash these fastboot flash system system.img
    fastboot flash boot boot.img
    fastboot flash recovery recovery.img
    fastboot flash cache cache.img

    Than after flashing those four than flash these

    fastboot erase userdata
    fastboot flash userdata userdata.img

    And this is the thread he provided in PM: http://androidforums.com/threads/guide-how-to-flash-a-nexus-factory-image-manually.706533/
     

    Advertisement

  2. jj14x

    jj14x Android Expert
    Rank:
    None
    Points:
    243
    Posts:
    1,498
    Joined:
    Mar 8, 2011

    Mar 8, 2011
    1,498
    693
    243
    Before you do anything, what exactly is the issue? Why are you looking to flash factory image?
    In the recent past, Google has started providing full factory images in the form of an OTA file - much easier to flash, and doesn't wipe data (no need to unlock bootloader) - hence the question. Why are you looking to flash the factory image?

    Here are answers to your question though. If you don't fully understand the steps, ask questions before you do anything (as you have done with this post). Start this only after you fully understand the steps.
    Fastboot flashing the factory images is not that hard (it looks complicated to somebody that hasn't done this before). The part that most people struggle with (from what I've seen) is getting the fastboot drivers installed :)

    Read the last few lines in step 6 about fastboot devices.
    After you install the fastboot drivers, go into fastboot mode on your phone, and connect phone to computer, and run the fastboot devices command. If you don't get back a serial number, do not proceed. It will NOT work.


    Step 6 is just an introduction to fastboot - basically how to execute fastboot commands. The "rest of command" will be replaced by the actual command - see steps 7 onwards - example "fastboot erase boot" - in here, the "erase boot" is the "rest of the command"

    When you boot up your phone (from complete power off), when you see the initial Google text on a black screen, do you see a padlock at the bottom of the screen? If so, that usually means your bootloader is unlocked. Else, you can go into your recovery, and see the status of the bootloader.
    Remember that unlocking the bootloader will wipe your phone of all your data, so backup whatever you need first.

    "name of bootloader" will be the bootloader.img file you downloaded and unzipped (along with several other .img files) in step 3 and step 11. Basically, you download a .tgz file, and unzip it. That will result in another zip file (actually a .tar file) - unzip that too. You should then see several zip files, including "bootloader???????.img" where the ??????? will change from file to file - that file name is what you'll put in place of "name of bootloader" in the fastboot command


    The radio???????.img (where ??????? will vary from file to file) is one of the .img files you will extract from the tgz/tar file. So, your command (for example) could be
    fastboot flash radio radio-shamu-d4.01-9625-05.34+fsg-9625-02.111.img
    (the actual file name may vary), This file has all the radios you need - no need to flash separate radio files


    I always use the 2nd process that flashes each file one by one. The first one has never worked for me (and for several others) - not sure if Google ever fixed that.
     
    electricpete and Jfalls63 like this.
  3. php111

    php111 Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    38
    Posts:
    250
    Joined:
    Feb 12, 2013

    Feb 12, 2013
    250
    21
    38
    Hey jj14x,

    First, thanks so much for explaining all of this to me!!

    Second, why am I looking to re-flash?

    Well (http://m.ebay.com/itm/Nexus-6-XT110...-Unlocked-41-Smartphone-/322195884916?txnId=0) I did a bid on this and won the bid, it says it has cracked screen, all else works great - just in case it does not work great because for one it is used and for two we all know we cannot trust sellers like this so that is why the re-flashing comes in to get rid of those issues if any even though the seller says it works. After that I was going to root anyway. I was going to use the used Nexus 6 phone from eBay as my only and primary phone.
     
    jj14x likes this.
  4. jj14x

    jj14x Android Expert
    Rank:
    None
    Points:
    243
    Posts:
    1,498
    Joined:
    Mar 8, 2011

    Mar 8, 2011
    1,498
    693
    243
    Good idea. As long as the digitizer works (and only the screen is cracked), it should work ok.

    I usually unlock the bootloader as soon as I get the phone. That way, if/when I decide to flash, you don't have to worry about having to factory reset your phone.
    Having said that, Google recently started publishing OTA images - https://developers.google.com/android/nexus/ota . These, unlike regular OTA files, are full images that can be installed using ADB - basically, the same as flashing the factory image, but without having to unlock the bootloader, or wiping the phone. Just something to consider.

    Having an unlocked bootloader can get you out of a bind - in case your phone gets stuck mid-flash, or something else causes a bootloop. But, also understand that an unlocked bootloader can allow a technically informed person to get to your data, if they have their phone. Personally, I think the risk it worth it, but just wanted you to be aware.

    While you are waiting for the phone, go ahead and download the latest factory image from Google's site, and unzip it - just so you understand the steps that are outlined in that sticky. Also, go ahead and install the latest fastboot/adb drivers while you are at it
     
    Jfalls63 likes this.
  5. Rxpert83

    Rxpert83 Dr. Feelgood
    Rank:
     #12
    Points:
    1,953
    Posts:
    17,922
    Joined:
    Aug 30, 2011

    Aug 30, 2011
    17,922
    13,145
    1,953
    Male
    Graduate Student
    MN

    Responses in red :)
     
    #5 Rxpert83, Jul 28, 2016
    Last edited: Jul 28, 2016
  6. Rxpert83

    Rxpert83 Dr. Feelgood
    Rank:
     #12
    Points:
    1,953
    Posts:
    17,922
    Joined:
    Aug 30, 2011

    Aug 30, 2011
    17,922
    13,145
    1,953
    Male
    Graduate Student
    MN
    I just thought of this:

    If you just want to get back to stock with a freshly installed system, you can just use the nexus root toolkit to automate the process.

    http://www.wugfresh.com/nrt/

    Its a tool used for rooting, but included with it are the processes involved in undoing those steps. That second half is what you would take advantage of.

    In that case you just go through the initial setup to get the drivers working and then hit the flash stock+unroot button. It'll download the necessary files and do all the command like work for you in the background
     
    Jfalls63 likes this.
  7. php111

    php111 Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    38
    Posts:
    250
    Joined:
    Feb 12, 2013

    Feb 12, 2013
    250
    21
    38
    Nice! Thanks so much! I received that eBay Nexus 6 phone but it is a never mind about that because someone in my family gave me his extra Nexus 6 that is in mint condition without charging me!!

    So, would that work regardless of the model/version I am using?
     
Tags:

Share This Page

Loading...