Removing root and locking bootloader? - Samsung Galaxy Nexus

Im returning my Gnex as I want it on Sim Free. 500mb data is just not enough.
How do I go about relocking the bootloader and unrooting the phone?
Im on OS X and I rooted and unlocked it with Pauls Superboot

For the moment, you don't.

Can't you just remove the Superuser apk's and then run "fastboot oem lock" (or relock not sure)!
I have never tried this and don't have a device so better wait for someone knowledgeable to post!

Check the Nexus S forums, should be in Dev section on how to re-lock bootloader. It's either relock or lock or re-lock. As for Superuser, download Titanium backup and use it to remove it.

fastboot lock/relock should not work unless it's an engineering device/some exploit is used.

Not sure about removing root, but I can confirm that the following command works fine:
fastboot oem lock

wilskywalker said:
Not sure about removing root, but I can confirm that the following command works fine:
fastboot oem lock
Click to expand...
Click to collapse
Cheers. I thought that might work. Now to unroot it and remove the evidence..
Sent from my Galaxy Nexus using Tapatalk

Evostance said:
Cheers. I thought that might work. Now to unroot it and remove the evidence..
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
I would think a factory reset should return you to stock, if not, I'm sure someone will have the original boot.img and you can flash that via fastboot. Then factory reset again afterwards to be on the safe side. Finally fastboot oem lock and you're ready to go buddy!

Does fastboot oem lock remove the unlocked padlock image on boot?

Yes
Sent from my Galaxy Nexus using xda premium

Related

Issue with upgrading my verizon galaxy nexus to 4.0.4. Need Help!!!!

For some reason my phone downloads the upgrade...and on clicking restart and install...it stays at Google logo...
it is stock unrooted. the phone never has been rooted and has always been stock.
any help/pointers folks??
Sent from my Galaxy Nexus using XDA
Sent from my Galaxy Nexus using XDA
afma_afma said:
For some reason my phone downloads the upgrade...and on clicking restart and install...it stays at Google logo...
it is stock unrooted. the phone never has been rooted and has always been stock.
any help/pointers folks??
Sent from my Galaxy Nexus using XDA
Sent from my Galaxy Nexus using XDA
Click to expand...
Click to collapse
Not sure what the issue could be if your device has always been stock.
The only thing I can suggest is re-flash the stock images (see here). That way you will know for sure that everything is OK, and the update will install automatically.
efrant said:
Not sure what the issue could be if your device has always been stock.
The only thing I can suggest is re-flash the stock images (see here). That way you will know for sure that everything is OK, and the update will install automatically.
Click to expand...
Click to collapse
thank you for the suggestion....I am going to wait and see if there are other easier methods...if not ..I will try yours ...
Sent from my Galaxy Nexus using XDA
efrant said:
Not sure what the issue could be if your device has always been stock.
The only thing I can suggest is re-flash the stock images (see here). That way you will know for sure that everything is OK, and the update will install automatically.
Click to expand...
Click to collapse
also one more question....I feel the issue is with recovery...can't I just flash the recovery img alone?
Sent from my Galaxy Nexus using XDA
afma_afma said:
also one more question....I feel the issue is with recovery...can't I just flash the recovery img alone?
Sent from my Galaxy Nexus using XDA
Click to expand...
Click to collapse
Yes you can!
Sent from my Galaxy Nexus using Tapatalk 2
so here are the steps I came up with after I went through the thread you has posted..
D. Type in the commands into the command prompt
1) Make sure your computer recognizes your device by typing: fastboot devices
2) Unlock your bootloader (if you have not already done so): fastboot oem unlock
3) You will see a prompt on your device. This will wipe your entire device (including the /sdcard folder). Accept.
4) Reboot by typing: fastboot reboot-bootloader.
5) Flash the recovery partition: fastboot flash recovery recovery.img
6) Reboot: fastboot reboot
does this sound right?
Sent from my Galaxy Nexus using XDA
afma_afma said:
so here are the steps I came up with after I went through the thread you has posted..
D. Type in the commands into the command prompt
1) Make sure your computer recognizes your device by typing: fastboot devices
2) Unlock your bootloader (if you have not already done so): fastboot oem unlock
3) You will see a prompt on your device. This will wipe your entire device (including the /sdcard folder). Accept.
4) Reboot by typing: fastboot reboot-bootloader.
5) Flash the recovery partition: fastboot flash recovery recovery.img
6) Reboot: fastboot reboot
does this sound right?
Sent from my Galaxy Nexus using XDA
Click to expand...
Click to collapse
Is your bootloader locked or unlocked?
If it is unlocked, you can skip your step 2.
If it is locked, then it will wipe everything anyway, so might as well flash the other images just to be 100% sure you are stock.
Make sure that all the images are from the mysid ICL53F factory file.
efrant said:
Is your bootloader locked or unlocked?
If it is unlocked, you can skip your step 2.
If it is locked, then it will wipe everything anyway, so might as well flash the other images just to be 100% sure you are stock.
Make sure that all the images are from the mysid ICL53F factory file.
Click to expand...
Click to collapse
My boot loader is locked and am already 100% stock...somehow the stock recovery is corrupted ..and I have never rooted this phone..never did any mods...
this is why I want to just try and reinstall the stock recovery alone...if that does not fix my issue then I will install everything...I will keep you posted...thank you.
Sent from my Galaxy Nexus using XDA
efrant said:
Is your bootloader locked or unlocked?
If it is unlocked, you can skip your step 2.
If it is locked, then it will wipe everything anyway, so might as well flash the other images just to be 100% sure you are stock.
Make sure that all the images are from the mysid ICL53F factory file.
Click to expand...
Click to collapse
reflashing the stock recovery fixed the issue. thank you much.
Sent from my Galaxy Nexus using XDA

I hate to be this guy, but...

I'm having a hard time finding a tutorial to unlock the root the GNex, Verizon version.
Everything I seem to search for leads me back to the toolkit which I rather not use, so if someone can point me towards another way to unlock the boot loader, root, and flash recovery, I'd appreciate it.
Thanks.
Sent from my Galaxy Nexus using Tapatalk 2
Adb reboot bootloader
Fastboot OEM unlock
This factory resets once done
Adb reboot bootloader
Fastboot flash recovery name of recovery.img
Boot into recovery flash custom rom or su.zip
Sent From My Sprint Galaxy Nexus
Try http://droidmodderx.com/galaxynexus/manually-unlock-and-root-the-galaxy-nexus-requires-adb.
All you really need to do is make sure you have all the proper pre-rooting tools. Then you boot into boot loader, type in "fastboot oem unlock" then follow some on screen instructions. Then you flash a temporary recovery, flash superuser or su.zip from that recovery, then delete a file to make it permanent recovery and you're set to flash roms/kernels/etc. Su.zip should be super easy to find too.
---
Agh UBER beat me to it.
Uh...stickied above.
Or linked in my sig.
This is the manual way to do it, as requested.
ÜBER™ said:
Adb reboot bootloader
Fastboot OEM unlock
This factory resets once done
Adb reboot bootloader
Fastboot flash recovery name of recovery.img
Boot into recovery flash custom rom or su.zip
Sent From My Sprint Galaxy Nexus
Click to expand...
Click to collapse
Oh wow, that easy?
And if I did miss something easily, sorry, been around the block so I know how annoying repetitive threads can be.
Sent from my Galaxy Nexus using Tapatalk 2
I Am Marino said:
Oh wow, that easy?
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
Yup but OEM unlock cleans the phone completely data and all so backup. Also take a look at the sticky the other person said for actual links and files.
Sent From My Sprint Galaxy Nexus
I just got thrown off by all the toolkit links.
EDIT: Double post, sorry.
Sent from my Galaxy Nexus using Tapatalk 2
I got familiar with fastboot because the Rezound needed it all too.
Sorry for all the multiple posts, my Tapatalk is freaking out.
Sent from my Galaxy Nexus using Tapatalk 2
Is the file that I can't remember the name of not in /system anymore where you have to delete it in order to maintain your first recovery that you flashed (otherwise it'll bring it back to original recovery)? In other words, there's no such thing as a temporary recovery for the GNex?

Back to stock recovery with broken USB port!

Hi guys!
I have a problem with my Galaxy Nexus!
The usb port does not work.
So I need to go to stock for the warranty.
I have locked again the bootloader and have a stock rom.
But I does not have a stock recovery.
How can I change it to stock?
It should be under warranty if its a hardware problem even when rooted.
Correct me if I'm wrong.
Sent from my Galaxy Nexus using Tapatalk 2
I've heard people returning their phones with it being rooted and they didn't even care. I guess if your bootloader is locked and it's on stock rom, I doubt they'll check recovery.
No I dont think so!
Normally the unlocked bootloader viod your warranty.
I fixed that part.Now I need only to fix the recovery image.
Use cloud (dropbox,drive...) to transfer the recovery.img file to ur phone then push it with terminal emulator
Sent from my Galaxy Nexus using xda premium
rayiskon said:
Use cloud (dropbox,drive...) to transfer the recovery.img file to ur phone then push it with terminal emulator
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
which commands should I use?
searius said:
No I dont think so!
Normally the unlocked bootloader viod your warranty.
Click to expand...
Click to collapse
it seems not true with the galaxy nexus..
i read many reports from user that sent their phone (never unlocked or anything) to service, and their phone come back from service unlocked...
basically on a device like the galaxy nexus, where u can unlock and relock the bootloader, void the warranty because the bootloader is unlocked has no sense
my phone was locked but it came back unlocked from service where they replaced the mobo. A few weeks later I sent it back still unlocked and it wasn't a problem.
andQlimax said:
it seems not true with the galaxy nexus..
i read many reports from user that sent their phone (never unlocked or anything) to service, and their phone come back from service unlocked...
basically on a device like the galaxy nexus, where u can unlock and relock the bootloader, void the warranty because the bootloader is unlocked has no sense
Click to expand...
Click to collapse
It does in fact 'void' your warranty though it will HIGHLY depend on where you bought your phone. Some vendors don't care whereas others will be insanely picky about being on absolute stock.
searius said:
Hi guys!
I have a problem with my Galaxy Nexus!
The usb port does not work.
So I need to go to stock for the warranty.
I have locked again the bootloader and have a stock rom.
But I does not have a stock recovery.
How can I change it to stock?
Click to expand...
Click to collapse
Do you still have root?.
If your USB port is broken, the VERY LAST thing you should do before sending you phone in is remove the root files.
Sent from my Galaxy Nexus using Tapatalk 2
efrant said:
Do you still have root? If not, there is no way.
If your USB port is broken, the VERY LAST thing you should do before sending you phone in is remove the root files.
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
As I said beyond I have bootloader locked and stock rom.
The only thing that I have not stock is the recovery.
searius said:
As I said beyond I have bootloader locked and stock rom.
The only thing that I have not stock is the recovery.
Click to expand...
Click to collapse
If you have CWM, then you can flash the stock recovery. If you have a stock recovery but not the right one, there is nothing you can do.
efrant said:
If you have CWM, then you can flash the stock recovery. If you have a stock recovery but not the right one, there is nothing you can do.
Click to expand...
Click to collapse
How can I flash the stock recovery?
searius said:
How can I flash the stock recovery?
Click to expand...
Click to collapse
Flash the attached file in CWM. (Warning: because your USB port does not work and you have no root, once you flash this, it is impossible to go back.)
I have the exact same issue!
Searius, could you post your steps to return to stock ROM and bootloader without using usb... looks like recovery was covered in the last post.
can you issue fastboot commands in the Terminal Emulator? I guess that would make this process easier.
johnny2678 said:
I have the exact same issue!
Searius, could you post your steps to return to stock ROM and bootloader without using usb... looks like recovery was covered in the last post.
can you issue fastboot commands in the Terminal Emulator? I guess that would make this process easier.
Click to expand...
Click to collapse
No, you cannot use fastboot commands in a terminal emulator -- fastboot commands only work when your device is booted into fastboot mode. There is no terminal app in fastboot mode...
Radio: go to the radio thread and download the xxla2 CWM-flashable file and flash it.
Bootlaoder: go to the bootloader thread and download the la03 CWM-flashable file and flash it.
Kernel: I've posted one in one of my guide threads.
Recovery: mentioned above.
What remains is the ROM. If you have a nandroid backup, it would be easiest to try and use that. If not, you can try the attachment:
1) Download the yakju IMM76I factory image from here.
2) Extract the system.img file from within, add it to the root of attachment, and flash it in CWM.
efrant said:
No, you cannot use fastboot commands in a terminal emulator -- fastboot commands only work when your device is booted into fastboot mode. There is no terminal app in fastboot mode...
Click to expand...
Click to collapse
<slaps self> DOH! </slap>
I should have mentioned that I'm on VZW but I get gist of it. Thanks for the support. I'll post back if everything works out.
My phone is at the service center now,
I send it with clockwork recovery installed.
They told me today that they have ordered the part that has fault but does not mentioned nothing if the device wasn't covered by the warranty.
So I'm thinking that I'm not going to pay for the fix.
My warranty replacement comes today so I'm prepping my old one for shipment back to VZW. Is there any way to remove root from your phone? I would usually use the fastboot method but no usb...
johnny2678 said:
My warranty replacement comes today so I'm prepping my old one for shipment back to VZW. Is there any way to remove root from your phone? I would usually use the fastboot method but no usb...
Click to expand...
Click to collapse
Just delete the two files on your device.

Password-Protected recovery?

This was something I was thinking about while I was at work earlier today. While setting a screen lock and using an app protector app will protect my phone from unauthorized access while it is on, there is currently nothing that I am aware of that can keep a thief who is in the know about rooting and flashing ROMs from booting my phone into recovery resetting it, and modding it to his liking. My question is, is there a way to encrypt my recovery image (I use TWRP) to make it accessible only after a passcode is entered? Or is there a recovery out there somewhere that has this built in?
Sent from my Galaxy Nexus using Tapatalk 2
Even if you were to password protect your recovery, if you're worried about a tech-savvy thief they'd just have to toolkit flash (or adb if they had a brain) a factory build and poof.
063_XOBX said:
Even if you were to password protect your recovery, if you're worried about a tech-savvy thief they'd just have to toolkit flash (or adb if they had a brain) a factory build and poof.
Click to expand...
Click to collapse
Which brings up another issue I was pondering. Encrypting the bootloader, or possibly flashing one that can't run adb commands without a password.
Sent from my Galaxy Nexus using Tapatalk 2
Use bootunlocker for nexus devices (on play store) to lock your bootloader and unlock it when you want to flash something. If you do that plus flash the stock recovery and turn off USB debugging, your device will be secure. If someone can't unlock your phone and run bootunlocker, they will have to fastboot oem unlock in order to do anything, which will wipe your data from the phone. It adds more steps if you like to flash and modify things, but it leaves Android's security intact.
Sent from my Nexus 7 using xda premium
mwalt2 said:
Use bootunlocker for nexus devices (on play store) to lock your bootloader and unlock it when you want to flash something. If you do that plus flash the stock recovery and turn off USB debugging, your device will be secure. If someone can't unlock your phone and run bootunlocker, they will have to fastboot oem unlock in order to do anything, which will wipe your data from the phone. It adds more steps if you like to flash and modify things, but it leaves Android's security intact.
Sent from my Nexus 7 using xda premium
Click to expand...
Click to collapse
Stock recovery? So does this mean that the only way I can prevent a tech savvy thief from accessing recovery and flashing a new ROM is by not being rooted?
Sent from my Galaxy Nexus using Tapatalk 2
tattedupboy said:
Stock recovery? So does this mean that the only way I can prevent a tech savvy thief from accessing recovery and flashing a new ROM is by not being rooted?
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
Pretty much. That's why a lot of companies require encryption and unrooted devices for Exchange purposes.
tattedupboy said:
Stock recovery? So does this mean that the only way I can prevent a tech savvy thief from accessing recovery and flashing a new ROM is by not being rooted?
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
You can still be rooted (assuming you use the literal definition of superuser). With the bootunlocker app, you can unlock the boot loader, reboot bootloader, flash custom recovery, flash ROM/mod in recovery, reboot boot loader, flash stock recovery, and relock bootloader again with the app. Unless someone knows your password or pattern, they won't be able to do that. They can only erase the entire phone to gain access.
Sent from my Galaxy Nexus using xda premium
Ok, here's another question. How do I flash the stock recovery?
Sent from my Galaxy Nexus using Tapatalk 2

Riddled by my (soft) bricked N5X ...

Hi guys
Noob here, but with a somewhat decent understanding of flashing and I'm kinda riddled by my current situation.
The current state of my phone is:
Locked bootloader.
Access to TWRP (2.8). Access to MTP and install function within TWRP.
OEM unlocking NOT allowed (since I can't boot into the OS).
So the logical thing to do (and as req'ed in dozens of threads with the same problem) would be to flash a custom ROM via TWRP's Install function, boot into it, enable OEM unlocking, unlock the bootloader and do whatever I want from there.
Except ... that all the ROMs I flash are stuck in bootloop. They go through the flashing process, TWRP shows success and then ... an endless android (or custom) loop when I reboot. I tried flashing PureNexus, Cataclysm and Chroma.
Any idea on what might be going wrong here (I thought of the vendor.img I have on right now being a wrong one, but I have no idea how to flash the good one without access to the vendor partition) ?
Any help would be appreciated, I saw that I could go through the LG flashtool/TOT unbricking method but I don't have i. a PC (I'm on a Mac) or ii. an original Nexus USB cable so that would put me back a few days.
Cheers
You can't flash a custom ROM with a locked bootloader....
---------- Post added at 11:20 PM ---------- Previous post was at 11:19 PM ----------
You need to flash all the original stock images via ADB and restart from there
TW1ST3D1NS4N3 said:
You can't flash a custom ROM with a locked bootloader....
---------- Post added at 11:20 PM ---------- Previous post was at 11:19 PM ----------
You need to flash all the original stock images via ADB and restart from there
Click to expand...
Click to collapse
Yes, you can in recovery ...
Apparently not. Let me rephrase. You cannot flash a custom ROM with your bootloader locked and your phone work properly.... reflash all stock images through ADB. Take the advice or don't.
How did you get in this sh!tuation? Did you OEM lock with TWRP installed?
Anyway, the TOT method is most likely the only way to get it going again. I wouldn't waste my time doing anything else. Ask a friend/family member to borrow a computer with windows on it.
PiousInquisitor said:
How did you get in this sh!tuation? Did you OEM lock with TWRP installed?
Anyway, the TOT method is most likely the only way to get it going again. I wouldn't waste my time doing anything else. Ask a friend/family member to borrow a computer with windows on it.
Click to expand...
Click to collapse
Not sure how I ended up here. :silly:
Is it true you absolutely need original Nexus USB cable for it to work ?
chafouin said:
Not sure how I ended up here. :silly:
Is it true you absolutely need original Nexus USB cable for it to work ?
Click to expand...
Click to collapse
No. Likely any USB A to C will work.
Sent from my DROID RAZR HD using Tapatalk
TW1ST3D1NS4N3 said:
Apparently not. Let me rephrase. You cannot flash a custom ROM with your bootloader locked and your phone work properly.... reflash all stock images through ADB. Take the advice or don't.
Click to expand...
Click to collapse
I'm thankful for any help, sorry if I was dissmisive. I'm not aware of flashing through ADB, just sideloading.
I can flash via fastboot, but can't right now because of my locked bootloader.
Presently I can sideload via ADB in recovery (which amounts to the same as flashing from recovery if I understand correctly ?) but any other flashing/thinkering via fastboot/ADB is verboten because my bootloader is locked.
If you're thinking of something else I'd be glad if you could detail your thinkings and the steps I'd need to make
@chafouin you just reminded me that Google is posting full OTAs. At least for the Android N developer previews. So theoretically you could factory reset from recovery and sideload an OTA. OTAs don't require an unlocked bootloader.
Sent from my DROID RAZR HD using Tapatalk
Just download the latest Rom from google site and run flashall file. Simple.
Sent from my Nexus 5X using Tapatalk
milan187 said:
Just download the latest Rom from google site and run flashall file. Simple.
Sent from my Nexus 5X using Tapatalk
Click to expand...
Click to collapse
How do you propose he do that with a locked bootloader?
Sent from my DROID RAZR HD using Tapatalk
PiousInquisitor said:
How do you propose he do that with a locked bootloader?
Sent from my DROID RAZR HD using Tapatalk
Click to expand...
Click to collapse
The stock rom? Why is that a problem? Put the device in fastboot and load. Locked bootloader does not allow custom roms. It allows stock.
Sent from my Nexus 5X using Tapatalk
milan187 said:
The stock rom? Why is that a problem? Put the device in fastboot and load. Locked bootloader does not allow custom roms. It allows stock.
Click to expand...
Click to collapse
In my experience *on the 5x* locked bootloader doesn't allow you to flash factory images.
I haven't tested with latest bootloader, but that has been he case with past bootloaders.
Other manufacturers and phone models handle things differently.
You can however now flash stock using the FULL OTA provided on the same factory image site. In that case you would use adb sideload, not fastboot.
sfhub said:
In my experience *on the 5x* locked bootloader doesn't allow you to flash factory images.
I haven't tested with latest bootloader, but that has been he case with past bootloaders.
Other manufacturers and phone models handle things differently.
You can however now flash stock using the FULL OTA provided on the same factory image site. In that case you would use adb sideload, not fastboot.
Click to expand...
Click to collapse
Hmm I flashed mine without unlocking bootloader...
Sent from my Nexus 5X using Tapatalk
chafouin said:
Hi guys
Noob here, but with a somewhat decent understanding of flashing and I'm kinda riddled by my current situation.
The current state of my phone is:
Locked bootloader.
Access to TWRP (2.8). Access to MTP and install function within TWRP.
OEM unlocking NOT allowed (since I can't boot into the OS).
So the logical thing to do (and as req'ed in dozens of threads with the same problem) would be to flash a custom ROM via TWRP's Install function, boot into it, enable OEM unlocking, unlock the bootloader and do whatever I want from there.
Except ... that all the ROMs I flash are stuck in bootloop. They go through the flashing process, TWRP shows success and then ... an endless android (or custom) loop when I reboot. I tried flashing PureNexus, Cataclysm and Chroma.
Any idea on what might be going wrong here (I thought of the vendor.img I have on right now being a wrong one, but I have no idea how to flash the good one without access to the vendor partition) ?
Any help would be appreciated, I saw that I could go through the LG flashtool/TOT unbricking method but I don't have i. a PC (I'm on a Mac) or ii. an original Nexus USB cable so that would put me back a few days.
Cheers
Click to expand...
Click to collapse
Have you tried factory reset from TWRP?
If I were you I wouldn't try to flash to stock unless as last resort. Locked bootloader with TWRP installed is better diagnostic situation that locked bootloader with stock recovery installed. If you try to flash to stock it is too easy to overwrite your TWRP with stock recovery (it happens behind the scenes)
That is ok, if you are out of options, but I would exhaust all other options first.
milan187 said:
The stock rom? Why is that a problem? Put the device in fastboot and load. Locked bootloader does not allow custom roms. It allows stock.
Sent from my Nexus 5X using Tapatalk
Click to expand...
Click to collapse
You cannot flash the factory images with a locked bootloader. Google it. Look at Google's own documentation.
Sent from my Nexus 5X using Tapatalk
PiousInquisitor said:
You cannot flash the factory images with a locked bootloader. Google it. Look at Google's own documentation.
Sent from my Nexus 5X using Tapatalk
Click to expand...
Click to collapse
Sorry, my mistake. Mine must have been unlocked. This is my first Nexus so I'm used to the fact that factory images can be loaded with locked bootloader.
Sent from my Nexus 5X using Tapatalk
milan187 said:
Sorry, my mistake. Mine must have been unlocked. This is my first Nexus so I'm used to the fact that factory images can be loaded with locked bootloader.
Sent from my Nexus 5X using Tapatalk
Click to expand...
Click to collapse
On what phone? I've never heard of that.
Sent from my Nexus 5X using Tapatalk
PiousInquisitor said:
On what phone? I've never heard of that.
Sent from my Nexus 5X using Tapatalk
Click to expand...
Click to collapse
I've done it recently on LG G4 and BlackBerry PRIV where I used flashall command.
Neither has a possibility for bootloader unlock.
Sent from my Nexus 5X using Tapatalk
I've had other phones that allow flash if things are signed (which factory images are on those phones).

Categories

Resources