[GUIDE] Unlocking the Galaxys S5 Bootloader using DEV Bootloader [KK-MM]

al50

Senior Member
Apr 7, 2013
874
241
63
Down South
I think we need to have a thread or something made and refer users to go to for having questions or anything pertaining to what ROM's or Kernels to be used. I've seen quite a few posts regarding such and just as everyone else who is new to the unlocked BL we don't know to answer the questions. That way we can keep this thread on topic for discussion to what this OP is about. Just my 2 cents...
 

jrkruse

Recognized Contributor
Aug 9, 2009
8,049
12,264
263
I tried it all. I was on BOK3 when I unlocked bootloader because I wanted to test this. The only thing that worked is I flashed BOK3 tar image took the OTA to PB1 and this method relocked the bootloader and also updated all firmware. This does have me concerned about updating when MM comes out being able to updated what needs to be updated as far as firmware goes, to get MM to load and boot. I will keep messing around. Sounds weird that I was trying to lock my bootloader. Trust me I think Im still sane.
Ok here is the solution
The Stock Boot.img and Stock Recover.img that match your firmware must be flashed before any firmware can be updated on your phone. What I mean by firmware is the things other than images that are flashed in odin like the modem.bin. If your just wanting to flash a custom boot or recovery image then you can just flash them you and dont need to do any of this.
So after the Stock and Recovery images are flashed the phone needs to return to a power off state. Then a reboot to stock recovery and wipe the cache. Then reboot the phone and the goto bootloader mode from there.
After doing this the phone will allow firmwares to be flashed through odin.

Instructions
Flash the Kernel_Recovery Only either odin package or zip package in custom recovery
If using Odin uncheck reboot now then flash Kernel_Recovery package pull battery Reboot to recovery (Pwr+Hme+VolUp) wipe cache reboot phone then reboot back to bootloader and flash whatever your wanting to upgrade.
Reboot phone make sure your changes applied the you can flash your custom recovery again
If Flashing In recovery, flash the zip then reboot to recovery which will now be stock recovery and wipe cache and then power off Do not reboot, the phone must go to a poweroff state
Reboot phone then reboot to bootloader and use odin to update what ever your needing to do
Reboot Phone make sure your changes took. Then reboot back to odin and flash custom recovery or use flashfire or safestrap to flash the custom recovery zip.
If for some reason the bootloader becomes locked again simply do the unlock procedure again

Here A Folder Containing Some Useful Odin And Flashable Firmware Zips
 
Last edited:

jrkruse

Recognized Contributor
Aug 9, 2009
8,049
12,264
263
Im rewriting that because I wrote it and dont even have a clue what im saying!

Edit: now maybe it will be a little clearer
 
Last edited:

autonomousperson

Senior Member
Oct 20, 2012
221
55
0
L.A.
Very possible. Unless JR kruse, you happen to own the second post on this thread, edit it into a Q&A since i don't have a reserved post?
Imma attempt to turn this binary into a single one click app similar to towel root.

---------- Post added at 08:40 PM ---------- Previous post was at 08:39 PM ----------

Hmm you should have used wget to download the executable.. that would have been cool
 
  • Like
Reactions: srish2

GeTex

Senior Member
Aug 28, 2013
2,152
1,211
193
Fallon, NV
Alright, for now you can make it into whatever you think should be included cause it's a lil messy right now

I guess common questions and answers like the sd card, formatting, flashing modems and firmware's, recoveries,
 

jrkruse

Recognized Contributor
Aug 9, 2009
8,049
12,264
263
Here is a simple method to execute unlock
copy samsung_unlock to system/bin set permission 0755
open terminal
type su hit enter
type samsung_unlock hit enter

you could also rename samsung_unlock to something shorter without the underscore
 

jrkruse

Recognized Contributor
Aug 9, 2009
8,049
12,264
263
I can't test or figure the exact steps out in my head, could you help me out. Sorry I'm a lil dead in the head
Use it the same as method 2. Just by putting the samsung_unlock binary in the system/bin you wont have too specify the location in terminal since that is the default location when running a command and since your using a root explore to copy the cid and make a backup you might as well use the root explorer and copy the samsung_unlock to system/bin set permissions then you wont have to set the permission in terminal. It just saves some steps in terminal and cuts down on the typing errors.

---------- Post added at 09:48 AM ---------- Previous post was at 09:29 AM ----------

It's very neat to see this come from idea to happening. I'll be trying it as soon as I find a spare micro sd card that's class 10.
I just thought I throw this out there I only used a 1gig sd card that didnt even have a class speed number on it so I assume its 2 or zero but anyways it worked fine. I bricked my device on purpose just doing testing and it recovered fron that old sd card fine