yashsingh1/xdaforums huggingface dataset:
[Verizon Galaxy S 5 Android Development] al50:
I believe by using Jrkruse's method, you'll be on the latest firmware but still keep your KK Bootloader. To be honest, i haven't used those methods because I had no need to since my device hasn't taken any OTA's since OC4. I know it's a little more work but I've just used Muniz_ri's upgrade to OC4 and keep root method and flashed the no Bootloader firmwares. Someone else may chime in and add more info to help....
[Verizon Galaxy S 5 Android Development] GoTeamScotch:
Just wanted to chime in and say that the process worked for my GM-900V. I checked and found that my emmc was version 15 and then went through methods 1 through 3 with the successful route being via ADB. I'm now using TWRP 3.0 as linked in the OP and am very excited to put it to work.

Thank you so much to everyone who contributed and spent time on this! This was a very exciting development to come back to after spending time away from the scene. Cheers
[Verizon Galaxy S 5 Android Development] ismaelvaldez:
I just try to flash the rr lollipop version and it fails, it says that my devices is klte and i download the kltevz. Is this because the bootloader is from a klte? All the ROM i download in the future must be klte?

Thank you men!
[Verizon Galaxy S 5 Android Development] TioCareca:
Why rr lollipop? the rr mm is working great, about your error it never happened to me you can try in recovery to wipe system, data, cache and dalvik before you try to flash the rom... I think it gives that error if your rom is not stock s5 vzw... Just keep your backup at hand in case something goes wrong...

Sent from my 3310 with pride...
[Verizon Galaxy S 5 Android Development] ismaelvaldez:
I install rr lollipop because i read about rr M and it says the bluetooth is not working good and im goign to wait for next updates. I download the rr lollipop klte and boot up with no errors, im goign to make a test with kltevwz rr M to see if the error show up. If you allow me, one quick question, The fingerprint unlock with rr lollipop or rr M is working? i can not find the option on rr lollipop
[Verizon Galaxy S 5 Android Development] TioCareca:
In M fingerprint is working... If the klte rr lollipop is working for you use it... I think rom choise is personal, everyone uses the phone difrently so its a matter of trying to find the one it suits you better...

The bluetooth in M is better now just cant be used at the same time as the wifi, and boeffla kernel helps a lot, its my opinion, dont let it stop it from testing roms and find your favorite...
[Verizon Galaxy S 5 Android Development] ismaelvaldez:
Im using the fingerprint on rr M, thank you! I will test it and post my doubths in the post from RR. And i installed the rom kltevwz and does not show up the error. I think maybe i was something about the wipes (as you toll me).

Thank you so much!
[Verizon Galaxy S 5 Android Development] ymDroid:
OK...so I've read a lot. As much as I can. My wife and I have triplets, so time and momey is very limited. I'm going to ask a few questions and hopefully I won't get bashed. I have my wife s5 as a replacement for my broken s4 and I've been greatly disappointed with its laggy and poor performance. Can't believe I just realized the bootloader has been unlocked. I've been considering upgrading phone, but I hope this will bring new life to this phone.

I'm rooted running OK3 Lollipop. My Bootloader is OA8. I'm running muniz stock rom. I have a 15 CID.

1) Am I understanding that I should update to to PB1 and and the PB1 bootloader. Can I do that with out losing root. Or am I OK to proceed from here.

2) is the best method still the flashing of the apk (method 1)?

3) Should be using a spare SD card? I have stiff on my current SD card and I don't really want o lose anything on it. Why does the SD get wiped?

4) Should I be wiped fresh, do you unlock the BL from where I'm exactly at?

5) I know you all are busy, but I'm really hoping for someone who has a few minutes to please put a step by step for me to go from OK3 firmware and OA8 bootloader to a unlocked bootloader/TWRP and custom debloated non-laggy ROM.

It's been a while since my Galaxy Nexus days. Any help from you expert would be immensely appreciated.
[Verizon Galaxy S 5 Android Development] al50:
Update to PB1 using Jrkruse's method but if im not mistsken you'll be updatingthe firmware not the bootloader, so if you wanted, you can "officially" flash back to KK.

If you don't want to lose anything on your external SD card, then use a spare one and put the files needed onto it.

Some have used the apk and others have used ADB, so it's your call. Just remember that you do the process twice and each time the device needs to completely power down or pull battery one. Just be sure to read the OP until you're confident enough to do it. It's fairly easy so enjoy your new unlocked device and happy ROM'n
[Verizon Galaxy S 5 Android Development] ymDroid:
Where is the Jrkruse method. All I see is the muniz method that updates to PB1 but keeps you on the OA8 bootloader.

Am I OK to unlock the bootloader being on PB1 and having the OA8 bootloader? Or do I need to be on all PB1 rooted?

So take my current card out and place an old jink card on and that for the bootloader unlocking. And onove it's done amd im rom'ed I can just put my old card back in?
[Verizon Galaxy S 5 Android Development] TioCareca:
You can unlock bootloader on OA8 bootloader, but that can bring issues on some custom roms like cm13 and other MM roms, so follow this as said on post 2:

You can use an old 4gb sdcard for unlocking, it will be erased and bootloader backup put in it in case something goes wrong... When all over you can use you sd again... Just in case keep a backup of your sd in your pc...
[Verizon Galaxy S 5 Android Development] sn3pro:
thanks i was successfully able to unlock bootloader, first try didn't seem to work since i had the charging cable connected so i disconeected it and some weird screen like tv without signal appeared to i rebooted phone and tried again and was able to see : MODE: developer..
[Verizon Galaxy S 5 Android Development] JohnK71:
One quick question. When you say, "Do full wipe then flash rom then flash firmware zip", is that just a factory wipe "reset" or do an advanced wipe including System? I just want to make sure this works and I don't have to do this again. Thanks!

---------- Post added at 10:23 AM ---------- Previous post was at 09:56 AM ----------

Never mind, I formated everything except card and when installing saw it wiping System anyway...lol. Now on to unlocking the bootloader!
[Verizon Galaxy S 5 Android Development] ymDroid:
OA8 is Lollipop, correct?

So I want to follow the second step. "Updating firmware if already on Lollipop".

[MENTION=1949695]jrkruse[/MENTION]?

So if I'm on:

OK3 firmware

0A8 bootloader

And I flash in Odin:

G900V_PB1_Kernel_Recovery_Only. tar.md5

It will update my kernel and bootloader to PB1?

Than I can follow the bootloader unlocking procedures?
[Verizon Galaxy S 5 Android Development] magic_man185:
I just successfully unlocked my bootloader! I used a 16GB sd card for the bootloader backup. I am trying to create an image of the sd card before I format it so I can restore it later, but the program I normally use to create SD card images (RMPREPUSB) gives me an error that the image is larger than the sd card. What did anyone use to create a backup of their SD card (an image of the backup created by the unlocker)? Thanks.
[Verizon Galaxy S 5 Android Development] TioCareca:
The problem is that the bootloader backup is made in multiple partitions, and the sd card is now with multiple partitions if you put that sd in a linux machine it will acuse 20+ partitions... I used clonezilla to make a backup of the sd card but if the phone is working fine i dont think it will be needed... Just in case you better keep that sd as it is and use another... I have lost my backup as my pc died, and i pray that i will never need that backup...
[Verizon Galaxy S 5 Android Development] GeTex:
theres a bootloader img floating around somewhere
[Verizon Galaxy S 5 Android Development] magic_man185:
Well, I'm screwed. I had reflashed a factory partition, and needed to rerun the unlocker, but this time I forgot to put my extra sd card in. I had my SD card in it that had ALL of my backups in it. My Backup with my contacts and messages, Titanium Backup with my apps, and my NAND images. That sucks. I realized it pretty quickly and pulled the usb and pulled the battery, but it obviously already messed up the card. I am trying some partition recovery apps to see if I can get any of my data back. If I can get my original nand i can redo everything else, but we shall see. Anyone have any recovery software they recommend?
[Verizon Galaxy S 5 Android Development] TioCareca:
[emoji45] flash memory is hard to recover, hope you get luck... Try recuva (dont blame me if dont work), but any files that was put in a sdcard in top of others are imposible to recover, if it was only formated it may have chance...
[Verizon Galaxy S 5 Android Development] signupstuffid:
I also am looking to make a backup image of my SD card, so I can reuse it. Mine is the fairly expensive Samsung Pro+ card, that I'd like to reuse.

Does clonezilla work to make a useable image? I use clonezilla all the time for other image backup operations.

Has anyone tried restoring a image made on one SD card to the another, and then restored that to the phone?

I have unlocked my S5, N3, and N4, so that is three cards, I'd like to use again.

Thanks again for freedom from a locked bootloader!
[Verizon Galaxy S 5 Android Development] TioCareca:
Not tested as i lost my backup, but if the phones are working good, i think the backup is no needed, just is good sense to keep it..

Can someone confirme that?
[Verizon Galaxy S 5 Android Development] al50:
Go buy a inexpensive SD card and transfer the files needed to unlock the bootloader and when donekeep it as your backup. You only need a 8GB card and i know you can find them for under $20. So don't be cheap about it, get one....it's damn well worth it.....lol. especially the time GeTex took into to bringing Beaups exploit to light where we can unlock our VZW S5 bootloaders with the eMMC 15 chip ...and she wasn't using a 15 CID at the time and using Beaups exploit and method
[Verizon Galaxy S 5 Android Development] beaups:
"he", not "she"

--beaups
[Verizon Galaxy S 5 Android Development] al50:
My deepest apologies Beaups.:D Thanks for correcting me. :)
[Verizon Galaxy S 5 Android Development] magic_man185:
Beaups,

I wasn't sure if you still watch this thread, first of all I want to thank you very much for all of the work you put into this, and [MENTION=766721]ryanbg[/MENTION] and [MENTION=4908448]autonomousperson[/MENTION] as well of course. I looked through your code that you posted for this fix, and I was thinking about modifying it to restore the original CID if there was ever the need to do so. Do you have a problem with me forking your github to do that? Also, I am not sure how to compile the code for the phone, can you or anyone else point me in the right direction? Android NDK? Finally, I have a question about the backup image. I have a 16GB SD card that I used for the bootloader backup. The image size reported by the card is actually larger than the card that I put it on (the program I use for card backups complains that the image is too large for the card, and won't back it up). I assume this is because the NAND is 16GB and it is referring to that info. How much space does the actual backup take? The backup software I use lets me specify the number of partitions, what on the card is important to backup, the first however many partitions?

Thanks again!
[Verizon Galaxy S 5 Android Development] beaups:
Fork away. For general cid change, there is other source in my git (samsung_cid.c). The loader backup takes 256MB on the card, but overwrites the partition table so it pretty much renders the card useless. Once the process is successful, its safe to repartition/format the card for reuse.

--beaups
[Verizon Galaxy S 5 Android Development] magic_man185:
I did see the other source, thanks. I was thinking about doing something a little more automatic. Perhaps pulling the CID from the cid.txt file that the app stores on the SD card (I think it does anyway, I did the adb method because the app didn't work for me). Do you know what partition numbers the backup is contained in? The program I use lets me specify the partitions on the card I need to back up. For example, backup the first 5 partitions on the card, or something like that. Also, when might the backup be needed? Is it different than the unbrick.img? I created an unbrick.img with the image creator I found somewhere. Thanks for your time.
[Verizon Galaxy S 5 Android Development] adrenalinetaco:
Is there any way to "re-lock" the bootloader? As in, change the phone back to a completely vanilla state, so that the download screen no longer shows the developer mode?
[Verizon Galaxy S 5 Android Development] GeTex:
Flash Stock

Beaups, someone said She wasn't using a 15, they were referring to me, as you clearly had a 15, I've been on an 11
[Verizon Galaxy S 5 Android Development] adrenalinetaco:
Thanks for the quick reply. I tried flashing the super old tar of stock NCG, but when the phone goes into download mode it still shows dev. I guess the way to change that would be to change the CID back before flashing stock?
[Verizon Galaxy S 5 Android Development] signupstuffid:
So, the answer is I can make an image of the SD card, and transfer it to another card? I have plenty of cards already.

The 32 GB card I used had 20 something partitions created on it, and the image was much bigger than 8GB when backed up.

I'm definitely grateful for the dev's work. I just would like clarification on if I really need to keep all those partitions. Nearly all of them appear, in windows at least, to be empty. Also is there anyway to use that backup to restore the original CID yet? I have been pretty closely following this thread since the unlock was being figured out.

Perhaps I missed when that was discussed.

Thanks again.
[Verizon Galaxy S 5 Android Development] magic_man185:
If you flash a factory stock image to the device, it will definitely lose developer status. Resetting the CID should not be necessary. If the stock image overwrites the bootloader (which it should) the hashed/signed aboot signature is lost, so it doesn't matter if the CID is changed or not. I would double check to make sure the image you are flashing is a full factory image, and not a modified one that only flashes the ROM. Maybe redownload it.
[Verizon Galaxy S 5 Android Development] GeTex:
Keep in mind Samsung EMMC have this exploit because of a bug Samsung corrected by making it possible to even do this. Other chips may seriously not accept a CID change no matter what we do. You following

Our only solution would be to crack the Verizon encrypted bootloader and resign it without a CID check or something. Basically someone needs to steal Verizon signature which they could just probably patch with an OTA x.x SO lame! I think it's not worth it anymore... I'm gonna probably go to OnePlus Devices or Moto. This is just becoming ridiculous! It's possible we can dissasemble our GS5's and remove the EMMC using a hot air or BGA station and then drop a Samsung EMMC onto it and then work with that but who knows!

Anyone here succeed yet? Can I get a mod for changing my title?
[Verizon Galaxy S 5 Android Development] thewebsiteisdown:
I downloaded the file. I have root. I have terminal emulator with root. I can get to su. I need to know exactly what command to run to check this for you. Do I need to put the file in the emulator files location or just keep it in the download folder?
[Verizon Galaxy S 5 Android Development] mjbram16:
So to make sure i downloaded the emmc brick bugchecker and it the cid starts with 15 that means is Samsung chip? I'd love to help if i can but I'm fairly new to this so i don't know how to extract Odin images or whatever but I'm really good at following instructions. I want to help be a part of this and so i can get this phone unlocked.
[Verizon Galaxy S 5 Android Development] Dudash:
My CID also starts with 15.

Could it be different color variants have different brand EMMCs? Mines the black model.
[Verizon Galaxy S 5 Android Development] GeTex:
Mine black with an 11

All of you with 15's can go ahead and give this a shot.

Also keep in mind this is worse than a hard brick if it goes wrong and there no warranty for this. I'm telling you, if you don't even understand whats going on DON'T EVEN BOTHER. We don't even have an aboot yet nor a corresponding CID.

If you wanna try, I'll see if I can do this

I'm willing to contiue doing everything I can however for now it seems us with Toshiba chips(11's) Cannot use the exploit, but those of you with 15's can!
[Verizon Galaxy S 5 Android Development] copkilla858:
i just checked and my device is of the 15 variety and luckily i pay for the insurance from verizon so that if i do hard brick the thing theyll have another one at my door same day if its early enough or next day at the latest so im happy to test whatever the ****, thank you guys for putting in this sort of efffort for this phone. very nice work gentlemen
[Verizon Galaxy S 5 Android Development] Legitsu:
so long as you don't tell them that you where the one that bricked it

there is gonna be a string is halp I bricked my device threadz
[Verizon Galaxy S 5 Android Development] autonomousperson:
For everyone with a 15 series eMMC chip, dl this http://s000.tinyupload.com/?file_id=...75024257149501

Go onto terminal emulator, cd to the directory, run su, then run ./samdunk (or whatever I named it)

It should display your cid and tell you if its not compatible. If you have a 15 series chip and recieve this error then thats a problem. If it does not give you an error and tells you to rtfc then you should be good and whatever you do, DO NOT pass arguments to it and DO NOT try the command that it tells you to run.
[Verizon Galaxy S 5 Android Development] mjbram16:
[MENTION=4908448]autonomousperson[/MENTION] what is this file doing? Is it modifying files or doing a check?
[Verizon Galaxy S 5 Android Development] briantacker:
The link says the file doesn't exist.
[Verizon Galaxy S 5 Android Development] smtpher:
I tried it out. I had to find the download from another tinyupload link.

http://s000.tinyupload.com/?file_id=64141875024257149501
[Verizon Galaxy S 5 Android Development] thewebsiteisdown:
I change directory to the download folder and get su fine at that level but when I run the command ./Samdunk.bin it returns the following error ./Samdunk.bin[2]: syntax error: 'newline' unexpected.
[Verizon Galaxy S 5 Android Development] briantacker:
Im getting the same thing
[Verizon Galaxy S 5 Android Development] autonomousperson:
If you specify no args then it does a check only.

heres the latest version, ive added a few lines explaining what is going on.

https://drive.google.com/file/d/0BwauATVVJAa7MW5GTlJZY1NBYUE/view?usp=sharing

---------- Post added at 11:38 AM ---------- Previous post was at 11:30 AM ----------

Thats weird.. ive run the file on my phone and everything works fine. Try the new version? Ive changed it so it now spits out the cid if you imput 0 args where before it would give you a error message.
[Verizon Galaxy S 5 Android Development] thewebsiteisdown:
It returned my CID at boot time is/was and no errors so it looks like it works on mine then I take it?

Info:

I had to re-download your file and the only difference that I noted was that it did not have the .bin extension on it. I'm guessing somehow that was the issue with the first one.
[Verizon Galaxy S 5 Android Development] Dudash:
I'll try it if I can get it to work. lol.

I'm not sure how this helps us without a dev aboot/CID to use tho.

Unless you're just looking for confirmation that the program works?

I'm guessing that's what it is which is indeed necessary for this to work AFTER we get a dev aboot/CID.

---------- Post added at 02:41 PM ---------- Previous post was at 02:41 PM ----------

If it worked for you then I guess I don't need to try it.

---------- Post added at 02:47 PM ---------- Previous post was at 02:41 PM ----------

Also, if anyone wants to buy or put up a bounty for a dev edition, there's one on Swappa right now.. for $560..

https://swappa.com/listing/ACJ320/view

And apparently it's the one where the guy said he won't give anything away for free.

Maybe he'll accept some amount of money for the dump?
[Verizon Galaxy S 5 Android Development] autonomousperson:
Just looking to see that it works on your device. You can try entering random numbers right now and see if it passes the is_samsung_emmc check. It will not change the CID if it is not valid so enter like a few letters or something.

right now it first checks if it can get cid then if it recieves no args it spits out the cid then checks if its a samsung emmc then checks if it is valid, then tries to program

---------- Post added at 11:50 AM ---------- Previous post was at 11:48 AM ----------

http://pastebin.com/SnjuFhLx

heres the code before I compiled it
[Verizon Galaxy S 5 Android Development] mjbram16:
Does it mean anything if terminal says Killed after running samdunk
[Verizon Galaxy S 5 Android Development] thewebsiteisdown:
What is the exact command you want me to run for the random letters attempt?
[Verizon Galaxy S 5 Android Development] autonomousperson:
./Samdunk 0000

---------- Post added at 12:10 PM ---------- Previous post was at 12:09 PM ----------

You dont want to see

[-] You do not have a Samsung eMMC!
[-] This is not a bug, the exploit is Samsung specific.

You want to see

[-] CID should be HEX!
[Verizon Galaxy S 5 Android Development] ryanbg:
I think you have to flash it twice. When you turn your phone into a Developer edition, they write protect the bootloader partition to prevent you from losing Dev status, but try flashing again.
[Verizon Galaxy S 5 Android Development] magic_man185:
No, the backup will never be able to restore the original CID. First of all, there is a special command used to allow the CID to become writable, so no restoring from a backup will restore the CID. Second, the backup of the bootloader is taken after the CID is changed, just before the dev bootloader is written.

I am thinking about modifying Beaup's code to allow it to restore the original CID, just have to find the time and figure out how to compile it. It is probably not necessary, at least no one has mentioned any issues since switching, I am the kind of person that likes a backup plan, just in case, and it appears I am probably not the only one.
[Verizon Galaxy S 5 Android Development] magic_man185:
I got VERY lucky. My saving grace was that I was using a 32GB sd card, and I had two NAND backups, one from NCG and one from PB1 (with BOD5 bootloader). The unlock operation rewriting the partition table made recovery of anything in the first half of the card impossible, but it had the rest of the card listed as unpartitioned. I was able to use data recovery software to recover the PB1 image (it was on the second half of the card that didn't get touched). It took 3 different programs to find one that would work, but I finally did. The system partition backup was damaged, but the others were okay, so I reinstalled PB1, then restored data partition and cache and I have almost everything back. I might have lost a few apps, but by and large I am a very lucky man. Time to back everything up in two difference places before I try this again.
[Verizon Galaxy S 5 Android Development] GeTex:
I have the old assembled executable which allowed changing the CID on demand, to any you select. All you have to do is type the cid
[Verizon Galaxy S 5 Android Development] magic_man185:
That is still available from Beaup's github, I am just thinking of something that automates it, so you don't have to type it and potentially mistype. Probably not totally necessary with the code that is there, but I want to give it a try. I am just learning how to use Github, and I am always looking for new things to try out.
[Verizon Galaxy S 5 Android Development] chaojimbo:
EDIT: Got it all working!