Unroot and Relock Bootloader?

Discussion in 'Samsung Galaxy Nexus' started by Detonation, Dec 16, 2011.

  1. Detonation

    Detonation Member

    Joined:
    Jan 20, 2010
    Messages:
    932
    Likes Received:
    6
    Trophy Points:
    18
    Location:
    Wisconsin
    Ratings:
    +6
    Whenever I get new electronics I try not to mess/tweak them for a little while in case I find something defective and need a warranty exchange. However, I've really been itching to root my Nexus so I can restore my app/data and use root apps. Is it possible to unroot and relock the bootloader in the event I would need a warranty replacement? Regardless if Verizon actually checks or not...would rather be safe than sorry.
     
  2. NewAge

    NewAge XOOM Rescue Squad
    Rescue Squad

    Joined:
    Dec 11, 2010
    Messages:
    178
    Likes Received:
    14
    Trophy Points:
    18
    Ratings:
    +14
    Sure is! No reason to unroot. Just push stock images with fastboot and I have verified "fastboot oem lock" works from command prompt pointed to the folder fastboot.exe is located in. If all you changed is the recovery, ensure stock recovery is loaded and it will work. All stock images must be installed for oem lock to work. and from what i can see there is no way for anyone to know it was once unlocked.
     
  3. scdown

    scdown Member

    Joined:
    Sep 8, 2011
    Messages:
    293
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Denver, Colorado
    Ratings:
    +5
    I would imagine that would be a process of:
    1. Removing /system/bin/su via adb shell
    2. Removing /system/app/Superuser.apk via adb shell
    3. Rebooting the phone to the bootloader
    4. fastboot oem lock
    Not verified - but if unlocking and rooting was ALL you did to the phone, this would seem to be a logical way to reverse it.
     
  4. vtnerd

    vtnerd Member

    Joined:
    Sep 1, 2011
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    I too am curious about this.

    If I root and brick the phone, I'm not going to hold VZW responsible and try to cheat a warranty replacement out of them.

    But, if I root and my power button or volume button wears out in 9 months, I don't want to get screwed because I rooted once upon a time and it has nothing to do with the actual problem.
     
  5. NewAge

    NewAge XOOM Rescue Squad
    Rescue Squad

    Joined:
    Dec 11, 2010
    Messages:
    178
    Likes Received:
    14
    Trophy Points:
    18
    Ratings:
    +14
    Exact commands:

    adb reboot bootloader
    fastboot flash bootloader bootloader-toro-primekk15.img
    fastboot reboot-bootloader
    fastboot flash radio radio-toro-i515.ek02.img
    fastboot reboot-bootloader
    fastboot flash radio-cdma radio-cdma-toro-i515.ek05.img
    fastboot reboot-bootloader
    fastboot -w update image-mysid-icl53f.zip
    fastboot reboot-bootloader
    fastboot oem lock
    Use volume rocker to select ok and then Gnex will reboot.

    You are now stock, locked and unrooted.

    Droid-Life.

    Get the images from Google. There is a thread floating around.

    Edit: Changed to reflect actual commands. Don't want to spread bad info!

     
    #5 NewAge, Dec 16, 2011
    Last edited: Dec 16, 2011
  6. NewAge

    NewAge XOOM Rescue Squad
    Rescue Squad

    Joined:
    Dec 11, 2010
    Messages:
    178
    Likes Received:
    14
    Trophy Points:
    18
    Ratings:
    +14
    The four files (boot.img, system.img, recovery.img and userdata.img) are located in the image-mysid-icl53f.zip after downloading from Google. Unzip them and place in folder that fastboot.exe is located in.

    It also contaings a "flash-all.sh" which will allow you to flash them all with one command.

    Command is in this thread: Factory images for the Verizon Galaxy Nexus - Android Forums at AndroidCentral.com
     
    #6 NewAge, Dec 16, 2011
    Last edited: Dec 16, 2011
  7. Detonation

    Detonation Member

    Joined:
    Jan 20, 2010
    Messages:
    932
    Likes Received:
    6
    Trophy Points:
    18
    Location:
    Wisconsin
    Ratings:
    +6
  8. NewAge

    NewAge XOOM Rescue Squad
    Rescue Squad

    Joined:
    Dec 11, 2010
    Messages:
    178
    Likes Received:
    14
    Trophy Points:
    18
    Ratings:
    +14
    LMAO! I was just going to post this. I wasn't too far off!

    adb reboot bootloader
    fastboot flash bootloader bootloader-toro-primekk15.img
    fastboot reboot-bootloader
    fastboot flash radio radio-toro-i515.ek02.img
    fastboot reboot-bootloader
    fastboot flash radio-cdma radio-cdma-toro-i515.ek05.img
    fastboot reboot-bootloader
    fastboot -w update image-mysid-icl53f.zip
    fastboot reboot-bootloader
    fastboot oem lock
     
Search tags for this page
adb relock bootloader
,
adb unroot relock
,
relock bootloader
,
relock bootloader adb
,
relock bootloader galaxy s3
,
relock bootloader htc rhyme
,
relock bootloader thunderbolt
,

relock htc bootloader

,
relock thunderbolt
,
thunderbolt relock