Is it possible for me to lock my bootloader? - Nexus 4 Q&A, Help & Troubleshooting

Is it possible for me to lock my bootloader so I can go send my nexus 4 in for a replacement? My earpiece stopped working! When i dial I can't hear anything the other party can't hear me either! I'm freaking out
Sent from my Nexus 4 using xda app-developers app

yes its possible to lock your bootloader.
use search on how to do so (factory stock images nexus 4)
let me guess.... you used a toolkit?

I didn't I used fastboot method I don't trust toolkits
Sent from my Nexus 4 using xda app-developers app

Raphael17 said:
I didn't I used fastboot method I don't trust toolkits
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
If you didn't use fastboot then how did you have your bootloader unlocked in the first place?

I'm running stock rom with Franco kernel I want to go stock everything so I can send it in for a replacement
Sent from my Nexus 4 using xda app-developers app

Raphael17 said:
I'm running stock rom with Franco kernel I want to go stock everything so I can send it in for a replacement
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
You're not answering my question. If you didn't use the fastboot method OR toolkit, then how did you unlock your bootloader in the first place? I'm asking this to know where you stand (e.g. drivers installed, fastboot environment set up).
It's either or. I already answered your question,
use search on how to do so (factory stock images nexus 4)
Click to expand...
Click to collapse

http://forum.xda-developers.com/showthread.php?t=2010312
That thread should help you return to stock.
zephiK said:
You're not answering my question. If you didn't use the fastboot method OR toolkit, then how did you unlock your bootloader in the first place? I'm asking this to know where you stand (e.g. drivers installed, fastboot environment set up).
It's either or. I already answered your question,
Click to expand...
Click to collapse
I think he didn't use punctuation/correct grammar, likely a non-native English speaker. It should have read: "I didn't use a toolkit because I don't trust them, I used the fastboot method."

zephiK said:
If you didn't use fastboot then how did you have your bootloader unlocked in the first place?
Click to expand...
Click to collapse
Raphael17 said:
I didn't I used fastboot method I don't trust toolkits
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
I believe he missed a comma or 2, should read: I didn't (use a toolkit), I used fastboot method, I don't trust toolkits.
To answer the OP,
Code:
fastboot oem lock
Actually if you run the lock command, then unlock then lock again, the unlock code will wipe everything (internal mSD too) so you will be back at factory settings, assuming you had previously flashed a factory image.

smacksa said:
http://forum.xda-developers.com/showthread.php?t=2010312
That thread should help you return to stock.
I think he didn't use punctuation/correct grammar, likely a non-native English speaker. It should have read: "I didn't use a toolkit because I don't trust them, I used the fastboot method."
Click to expand...
Click to collapse
Or he was educated in the U.S. He is probably a college graduate. I'm from the U.S., by the way.

jakejm79 said:
I believe he missed a comma or 2, should read: I didn't (use a toolkit), I used fastboot method, I don't trust toolkits.
To answer the OP,
Code:
fastboot oem lock
Actually if you run the lock command, then unlock then lock again, the unlock code will wipe everything (internal mSD too) so you will be back at factory settings, assuming you had previously flashed a factory image.
Click to expand...
Click to collapse
Oh you're right on that. I was just checking on which "position" he was in. That makes more sense. Tiredness starting to kick in. Totally missed the "I" between didn't and used.
That forum post is the exact one I was referring to (just wanted him to google it out ) follow that guide and it will lead you to the right place. Don't just lock it and think your phone's good. You have to revert back to stock kernel as well which that forum thread will tell you how to do so.

Related

One click root

So I can't root my nexus s I don't know why I have had all the great androids since day one but this baby wont budge. Will any of those one.click apps work never tried one?
Sent from my Nexus S using XDA App
dskyers said:
So I can't root my nexus s I don't know why I have had all the great androids since day one but this baby wont budge. Will any of those one.click apps work never tried one?
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
There's no one click method I know of for the Nexus S.
What do you mean you can't root & it won't budge? This phone is about as easy they come (without some one click app): http://forum.xda-developers.com/showthread.php?t=931865
Install the android sdk on your computer.
Put the su.zip file on your sdcard partition of the phone.
Put the phone in fastboot mode.
Fastboot flash the recovery.
Select recovery.
Select install zip from sdcard.
Flash it.
Reboot.
You're done.
If your computer doesn't recognize the phone while it's in the bootloader, you gotta install the google Nexus S drivers or the one from PDAnet. That was where I got stuck at 1st when I tried rooting. Fastboot couldn't find my phone because I had the generic windows drivers.
Also if you have PDANet on, turn it off before putting your phone in fastboot mode.
Actually there is a one click method...brb with it
http://www.theandroidsoul.com/easy-one-click-root-for-nexus-s-full-guide/
Or search superboot nexus s
Here on xda
Either will work PC or mac.
Sent from my Nexus S using XDA App
vapor311 said:
Actually there is a one click method...brb with it
http://www.theandroidsoul.com/easy-one-click-root-for-nexus-s-full-guide/
Or search superboot nexus s
Here on xda
Either will work PC or mac.
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
Interesting. So the steps on the referenced one-click method you posted are:
1) put your phone in fastboot
2) do the fastboot oem unlock command manually.
3) run a batch file that contains two lines (fastboot-windows.exe flash boot boot.superboot.img & fastboot-windows.exe reboot).
I guess that's easier than putting your phone in fastboot directly and typing in a command to flash clockwork, then selecting a zip file to install from clockwork, but not much.
The drawbacks here are of course that it's superboot, and that it requires you to unlock the bootloader. I guess it's useful if you're really noob, but it only saves you typing one command.
The noob part is very true. However I prefer my bootloader unlocked anyhow.
Sent from my Nexus S using XDA App
vapor311 said:
The noob part is very true. However I prefer my bootloader unlocked anyhow.
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
Why do you prefer it unlocked?
I like the unlocked lock! No seriously custom roms etc.
Sent from my Nexus S using XDA App
main reason i think there is no one click root is because its so simple to do on this phone
vapor311 said:
I like the unlocked lock! No seriously custom roms etc.
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
You do not need an unlocked bootloader (currently) to use custom roms, or to root, or to flash clockwork recovery, etc...
On day one that wasn't a known entity.
Sent from my Nexus S using XDA App
vapor311 said:
On day one that wasn't a known entity.
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
Of course, but since you contradicted my statement earlier that one disadvantage to the posted method here was that it had you unlock the bootloader by replying that you like having yours unlocked, I was trying to pin down if there was an advantage to unlocking the bootloader that had been discovered that I hadn't heard yet.
There's indication on git for our phone that the next update includes a change to the bootloader being able to use the fastboot boot command while locked. Unknown what that will actually do in terms of just fastboot flashing clockwork to apply root and custom roms.
I c wut u did there. I'm not sure how the update is going to affect things ATM. I keep it unlocked for "in case sh*t" happens. Never know what an update will bring in changes to rom management.
Sent from my Nexus S using XDA App

Might Have To Return Nexus

When I boot the NS the screen shows a lock icon which shows it to be UNLOCKED.
I'm downloading a STOCK ROM which says I will loose root, which is okay. BUT, will the rom also lock it again so I don't get that lock icon?
If it won't can you please tell me or link to how I can get it to true STOCK.
Best buy told me I can return it but they said they won't accept it if it was rooted.
Thanks for the help.
Fastboot OEM lock should be all you have to do.
Sent from my Nexus S using XDA App
fosdos4790 said:
fastboot oem lock should be all you have to do.
Sent from my nexus s using xda app
Click to expand...
Click to collapse
awesome, thank you!
Also, if you want, do fastboot oem lock, fastboot oem unlock, and then lock it again. The unlocking command wipes your sd card.
If you really want to be paranoid look up how to use Odin and flash the stock image with that
Sent from my Nexus S using XDA App

[Q] [HELP] Can't re lock nexus 4 bootloader!

I have my first android device, the nexus 4, and I rooted it. I used the Nexus toolkit, being new to android and rooting and all. I now need to send my phone back to Google and I can't relock the bootloader! I managed to unroot it but now I just need to relock it and get rid of the padlock. I have tried everything that I have found online and nothing has worked!
I am really becoming annoyed with this! Can anyone help please?!
Thanks, LJ.
It should be an easy thing to do from fastboot. I think the command is something like fastboot oem lock. The toolkit should be able to do this action also. Once that command is complete then reboot fastboot and it should be completed.
Sent from my Nexus 4 using Tapatalk 4 Beta
That is exactly the command.
fastboot oem lock
Sent from my Nexus 4 using xda app-developers app
Being "new to android and rooting and all" is the biggest reason not to use a toolkit. You just press a button, have no to little idea what exactly happens to your phone and then go "pls my phone doesnt work and is eating my cat pls help" when something goes wrong...
Sure, everything seems easier when you use a toolkit, but you end up having no idea what to do when the toolkit fails
Just sayin'.
vanmarek said:
Being "new to android and rooting and all" is the biggest reason not to use a toolkit. You just press a button, have no to little idea what exactly happens to your phone and then go "pls my phone doesnt work and is eating my cat pls help" when something goes wrong...
Sure, everything seems easier when you use a toolkit, but you end up having no idea what to do when the toolkit fails
Just sayin'.
Click to expand...
Click to collapse
this.
and for any nexus device, rooting the right way is just as easy if not easier than a toolkit. the only difference is that youll need to read up a little, get familiar. im mean how easy is this to root..
1. fastboot oem unlock
2. fastboot flash a custom recovery
3. flash either the su binaries or a custom rom
4. reboot and profit.
then to lock the bootloader just fastboot oem lock.
thats all that is needed for any nexus.
I have been using a nexus as well. Download nexus toolkit v2.0 it does it all. I flashed half a dozen ROMs and unrooted and relocked bootloader and re rooted it
Download it and enjoy
Sent from my Nexus 4 using xda app-developers app
abhijitsohoni said:
I have been using a nexus as well. Download nexus toolkit v2.0 it does it all. I flashed half a dozen ROMs and unrooted and relocked bootloader and re rooted it
Download it and enjoy
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
I have tried using the toolkit v2.0 but still no success I am really becoming annoyed about this!
LJGDY said:
I have tried using the toolkit v2.0 but still no success I am really becoming annoyed about this!
Click to expand...
Click to collapse
Are you getting any commands to work when you are in fastboot? Like fastboot reboot or flashing a recovery img? I'm just wondering if you have fastboot setup correctly. If you can do those other commands, relocking shouldn't be an issue.
Sent from my Nexus 4 using Tapatalk 4 Beta
eqjunkie829 said:
Are you getting any commands to work when you are in fastboot? Like fastboot reboot or flashing a recovery img? I'm just wondering if you have fastboot setup correctly. If you can do those other commands, relocking shouldn't be an issue.
Sent from my Nexus 4 using Tapatalk 4 Beta
Click to expand...
Click to collapse
I have also followed efrans guide, step by step, and was typing all commands into the command prompt. The phone was responding too. When I booted it up, I was stock rom again but the boot loader would not lock. Strange! :/
LJGDY said:
I have also followed efrans guide, step by step, and was typing all commands into the command prompt. The phone was responding too. When I booted it up, I was stock rom again but the boot loader would not lock. Strange! :/
Click to expand...
Click to collapse
Follow that guide but instead of entering the first command for returning to stock now just type in "fastboot oem lock"
Sent from my Nexus 4 using xda app-developers app
LJGDY said:
I have my first android device, the nexus 4, and I rooted it. I used the Nexus toolkit, being new to android and rooting and all. I now need to send my phone back to Google and I can't relock the bootloader! I managed to unroot it but now I just need to relock it and get rid of the padlock. I have tried everything that I have found online and nothing has worked!
I am really becoming annoyed with this! Can anyone help please?!
Thanks, LJ.
Click to expand...
Click to collapse
Trickster Mod has an option to Lock/UnLock your Bootloader as long as you are rooted and you use a kernel which supports such extravagances. (i.e.Franco-r210, for example)
I'd recommend getting familiar to fastboot would be the best option, too. If it's not working, what is the exact error or is there none?
You could try this app to lock it, too, if the phone is still rooted

Factory 4.3 image

I am selling my phone and want to put it back to stock and delete all my info. I know I do it in fastboot but that's it. Directions and link would be greatly appreciated.
Sent from my AOSP on Mako using xda app-developers app
I think this guide will help
http://forum.xda-developers.com/showthread.php?t=2010312
Sent from my NookColor using Tapatalk 4
If you use one of these: https://developers.google.com/android/nexus/images?hl=de (occam), your Device will be completely wiped!
You can lock the Bootloader almost the same way you unlocked it, instead of "fastboot oem unlock" you type "fastboot oem lock" (Will also wipe your Device!) I would do it this way, but also take a look at the post above me from RASTAVIPER ^^
Be sure to BACKUP your ENTIRE Stuff from the Device, just in case!
If you're bone stock, just goto settings and find the factory reset.
I'm on AOSPA.
Damian2013 said:
I am selling my phone and want to put it back to stock and delete all my info. I know I do it in fastboot but that's it. Directions and link would be greatly appreciated.
Sent from my AOSP on Mako using xda app-developers app
Click to expand...
Click to collapse
http://lmgtfy.com/?q=how+to+flash+stock+rom+nexus+4

[q] nexus 4 backup

Hi
i stupidly dropped my nexus 4 on the floor and the screen completely smashed, the buttons work fine, but my phone is locked so whenever i connect to my laptop it wont backup my files.
Is there anyway i can backup my pictures and videos?
Any help or suggestions will be greatly appreciated, as i have some memoroable pictures stored on there?
Thanks
mr cazorla
Do you have USB debugging enabled? If so you can pull your picture folder via adb.
Sent from my Nexus 4 using xda app-developers app
NEXUS 4
morbe said:
do you have usb debugging enabled? If so you can pull your picture folder via adb.
Sent from my nexus 4 using xda app-developers app
Click to expand...
Click to collapse
hi
no its not enabled as my phone has not been rooted
phone doesn't need to be rooted to enable usb debugging.
CAZORLA said:
hi
no its not enabled as my phone has not been rooted
Click to expand...
Click to collapse
As goofball2k said, you don't need to root your device to enable USB debugging. In your case though, you can't enable it due to the broken screen.
When your screen is locked and you connect your phone to the pc, does it show the phone? If it does it will probably show no folders inside. Right?
What you need to do is unlock the bootloader, flash a custom recovery and then in the recovery you will be able to use adb pull command.
To do all that you can read efrant's guide (unlock bootloader, flash custom recovery) in this forum, or you can use a toolkit like this guy in your same situation: http://forum.xda-developers.com/showthread.php?t=2177440
I would recommend efrant's guide as it teaches you the basics on how to use adb and fastboot to flash anything you like.
Cheers
Sent from my Nexus 4 using xda app-developers app
Unlocking his bootloader will wipe the device though. He's SOL unless it's already unlocked.
DrFredPhD said:
Unlocking his bootloader will wipe the device though. He's SOL unless it's already unlocked.
Click to expand...
Click to collapse
True, but I think that with "boot unlocker" you can unlock the bootloader without wipe
Sent from my Nexus 4 using xda app-developers app
Another solution would be to make a backup image of the entire phone memory (see the bootloader unlock sticky thread), but he needs to set a password for the desktop backup first.
Morbe said:
True, but I think that with "boot unlocker" you can unlock the bootloader without wipe
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
It needs root to work and he can't unlock his device to use an app even if he had root.

Categories

Resources