yashsingh1/xdaforums huggingface dataset:
[Verizon Galaxy S 5 Android Development] GeTex:
Lets consider this reality

We "might" be able to port ASOP Roms, but development for a phone 2 full generations old is very very unlikely. If anything this unlock won't be easy to start with, and is going to be a high brick risk.
[Verizon Galaxy S 5 Android Development] Hariiiii:
[MENTION=711482]beaups[/MENTION] [MENTION=5414005]GeTex[/MENTION] [MENTION=4939386]Surge1223[/MENTION]

Ok so I think I finally understand how to change the CID....it looks like we will need to write a custom function for mmc_utils that invokes ioctl to pass CMD26 (PROGRAM_CID) to the mmc. The problem is, most mmcs are designed to only accept that command once, and may not accept it. See mmc commands here:

http://rere.qmqm.pl/~mirq/JESD84-A44.pdf

In a thread I was reading in a different forum, it was mentioned that passing the CMD60 command may make the mmc receptive to CMD26. Read here:

http://forum.arduino.cc/index.php?topic=66586.15

Thoughts?
[Verizon Galaxy S 5 Android Development] beaups:
No. You aren't going to do it anywhere near that easily. Like I mentioned before, I do know how to do it (I also made a video of it being done) and plan to finish documenting that and release that document over the coming weeks.
[Verizon Galaxy S 5 Android Development] GeTex:
Keep us posted

Question, if it's changed on a current system "Will that render the current system unusable and unable to boot???"
[Verizon Galaxy S 5 Android Development] Hariiiii:
Ah, ok :( it's not that I'm impatient, I just wanted to see if I was up to the challenge. Looks like no. I'll be curious to see what the actual solution is when it comes out. Thanks for your patience.
[Verizon Galaxy S 5 Android Development] beaups:
No, but seriously, unless you have a lot of low-level firmware extraction and RE experience, you won't be changing it.

--beaups
[Verizon Galaxy S 5 Android Development] Surge1223:
I wouldn't think this wouldn't work, and if it did i don't think the result would be pretty.

Instead, I think using a a mechanism that can already read/write device values would be better suited, like say a smc call like those used by qseecom libs. This is also how aboot sets the the Knox/TIMA warranty void flag, using a smc call.

Note: I don't actually know if this would work. It's just my immediate initial thought on how I'd go about this. You would have to study a few things, namely aboot, tz, and Linux kernel struct for smc_calls and the qseecom drivers.

To others visiting this thread:

You can't just blindly send a cmd not knowing what you are doing though, that's a very dumb idea.

Also knowing C is absolutely required, so anyone visiting this thread hoping to find some code online and modify it, then compile and test is going to fail.

Any Mods reading this thread? If so could we please remove all posts not related to R&D? I thought R&D threads were reserved specifically for developers to discuss and work through code, not a cheerleader/"teach me bootloaderz code & hax plz" thread for people. That or maybe if that's not the threads intention have the R&D tag removed? Thanks
[Verizon Galaxy S 5 Android Development] GeTex:
That was something I was going to ask, and is the purpose of this thread. Some people here have given effort, others have just made posts that are... cheerleaders...

I'm not saying I'm a genius but I don't think I'm an idiot either. I've dicked around with this stuff all my life, and while I'm not a pro at low level firmware extraction and modification, I have throughout my lifetime soldered new ROM chips to routers and flashed my own boot straps using JTAG parts programmers in order to load a modified bootloader to accept a firmware flash over TFTP so i can load custom firmwares(mostly to routers with ROMs that were to small to hold the firmware. I've got a Riff Box for JTAGing devices back from the dead and for other modifications. I have a bunch of EEPROM programmers lying around. I have some limited experience and know C to a limited Extent. I'm not confident I could ever do this alone. But I truthfully believe that with others here, I/We would finally rid ourselves of this awful GS5 bootloader lock(I think it should be illegal to lock the bootloader in the firstplace)
[Verizon Galaxy S 5 Android Development] jrkruse:
I edited your tool and put my cid old number in there and I also just tried the samdunk script in terminal by itself.
[Verizon Galaxy S 5 Android Development] TioCareca:
Maybe its just one time operation and the cid locked? By some type of fuse maybe?

EDIT: it seems that way... just try it by myself with samdunk, i change it and now i cant change it again...
[Verizon Galaxy S 5 Android Development] sammynoob:
I know you guys said no downgrades but if I'm on lollipop and my bootloader is bok3 is it possible sorry if this is a stupid question
[Verizon Galaxy S 5 Android Development] beaups:
Yes that's doing it wrong. Don't edit the tool or run it from any scripts. Run it correctly.

In fact, creating some bat script that simply runs a binary is a bad idea too. I'm going to update the license terms to disallow any repackaging or repackaging of any samdunk binaries. This is going to get out of control quickly.
[Verizon Galaxy S 5 Android Development] xmoox:
I've been watching this thread for a bit. The phone I have was on a custom lollipop ROM. I have since returned it to 4.4.4 running on Eclipse. If I am understanding what has been said if I am running a kitkat bootloader I should be able to downgrade. Also I am running safestrap recovery.

I am willing to test this on my phone for science if its needed but since this issue with the bootloader has come up I am not sure if I should proceed. I think this bootloader is still downgradable.

Let me know if you would like me to test otherwise I will wait. Again thank you for all your hard work.

for your info.

Bootloader version: G900VVRU1ANI2
[Verizon Galaxy S 5 Android Development] PalmCentro:
No
[Verizon Galaxy S 5 Android Development] alin919:
For know this is Just for a people able to downgrade to kitkat rom.... So, me i will wait until is better mod to install this and evrything is fixed wright....
[Verizon Galaxy S 5 Android Development] GeTex:
Sigh... I'm just ready to give up. I'm just trying to help with the limited resources I have.

The bat script is simple and you can look your self but he even tried running the Samdunk binary script that was compiled from your source. Thats what he's saying. Hes directly running your tool

It works once and then not again. But I mean...

Eh forget it, pretty sure you're sick of me

Sorry everyone
[Verizon Galaxy S 5 Android Development] jrkruse:
I just changed his script trying different things

I got my cid to change to this

1501004d414732474300bd6d97165100

So obviously I know how to run it correctly
[Verizon Galaxy S 5 Android Development] en11gma:
i have sm-900v (verizon note 3)

currently on OF1 (android 5.0) and rooted with supersu

i ran the cid changer and changed to dev cid and it works flawless

i can change back to my original really easy and back to the de.

done this several times now

i can downgrade to android 4.4.4 nk1 or nj6 after i change the cid on of1

there is no root avail for 4.4.4

if i odin the stock 4.4.4 while i have the de cid programmed will i be able to upgrade back to of1

im not talking about the mj3 de aboot we have yet. i too scared to try it with odin until i know i can at least get back to of1 as there is no way to change the cid back in 4.4.4 because there is no root

anyhow i know this isnt an S5 but i do have a c-spire s5 g900r7 on OH1 i believe but i think it might have a unlocked bl already. not sure

anyhow just trying to help

btw i owe all the info about to invisiblek as he is the one giving me instructions but he a little slow getting back with some of my questions so i figure i would contrib to this thread with knowledge i have aquired and the steps i have taken so far.

cid changer does work and i can program it more then 1 time. so far i probably did it 6x
[Verizon Galaxy S 5 Android Development] beaups:
Run the actual binary correctly and not a script.
[Verizon Galaxy S 5 Android Development] Legitsu:
gentex you need to pull all the links ... for everybody's safety

history has proven that noobs on XDA DO NOT READ and the last thing we need is a clusterfk of idiots bricking their devices and clogging the forums

eager beavers get shot ....
[Verizon Galaxy S 5 Android Development] Colby_M:
I agree with this. I'm on lollipop, and waiting for a stable unlock. Just reading over the steps, my eyes skipped over the line that said this current method is for kitkat only. Good thing I'm patient
[Verizon Galaxy S 5 Android Development] tbclandot:
Legitsu I have been reading the posts and I was joking around about the eager beaver thing I know all the developers are working their butts off! Right now I'm happy with a custom 5.1.1 rooted rom and I eagerly await!
[Verizon Galaxy S 5 Android Development] jrkruse:
I did. The problem is with SuperSu 2.6.8. I switched back to SuperSu 2.6.7 and it worked fine was able to change cid now. So everyone take note that BetaSuperSU_2.6.8 was the reason I couldnt switch cid back
[Verizon Galaxy S 5 Android Development] GeTex:
We have found that the CID issue was due to SuperSu, reverting fixed the issue. Changing back and fourth is fine now

Testing, may have a flashable aboot as well that works above OE1

My script i assume works then too [MENTION=1949695]jrkruse[/MENTION]?
[Verizon Galaxy S 5 Android Development] copkilla858:
I disagree I feel like since they're working this hard and diligently for the benefit of the community and users of this phone all over the place it seems to me that they should have all resources and information available as readily and accessible as possible for their eyes and the eyes of anyone else who may have anything to add that could possibly be helpful at all. If we start needing to throttle the rate of advance so to speak to accommodate for those who likely have nothing to add and don't even want to invest a minute or two to read the info that the devs have so painstakingly compiled thus far and and as a result suffer a permanent loss of device use, seems fair enough to me.
[Verizon Galaxy S 5 Android Development] coopmaster:
so can i change the CID on my phone i have a rooted 5.1.1 BOK3 and my CID starts with 15. Can i still use this method?
[Verizon Galaxy S 5 Android Development] TioCareca:
no... not yet...
[Verizon Galaxy S 5 Android Development] mjbram16:
Thats the goal. Theyre currently working on it. Keep an eye on the thread. Check back on the original post. The smart thing to do is wait until the op is updated. Then its semi official.
[Verizon Galaxy S 5 Android Development] coopmaster:
weak i was so excited haha, great progress going on tho. What makes this able to happen on Kitkat but not on 5.x.x?
[Verizon Galaxy S 5 Android Development] GeTex:
You can change your CID but not flash the aboot(yet) if your on 5.x.x. 4.4.x can flash the aboot and change the cid
[Verizon Galaxy S 5 Android Development] coopmaster:
I thought the same thing, i didnt want to chance bricking my device

Why is that? what does 5.x.x change?
[Verizon Galaxy S 5 Android Development] GeTex:
...the bootloader..... like.... have you read any of this thread....
[Verizon Galaxy S 5 Android Development] GeTex:
I see updates made to github, gonna test

i assume this adds 5.x.x support
[Verizon Galaxy S 5 Android Development] beaups:
its done - https://twitter.com/firewaterdevs/status/715381993064816640

If any bounties applicable, please donate to "make a wish foundation" or [MENTION=766721]ryanbg[/MENTION] (he's getting married)

--beaups
[Verizon Galaxy S 5 Android Development] GeTex:
Gonna add that to the OP
[Verizon Galaxy S 5 Android Development] mjbram16:
So what's next? Making a simple tool?
[Verizon Galaxy S 5 Android Development] GeTex:
Yup, working on it as we speak, will update once done!

Everyone, get ready for this!
[Verizon Galaxy S 5 Android Development] mjbram16:
And its good to go for all 15 devices no matter the baseband?!? Sweet!
[Verizon Galaxy S 5 Android Development] beaups:
tools is done. download samsung_unlock from git source I linked and run it.
[Verizon Galaxy S 5 Android Development] mjbram16:
Please excuse me, i'm having some difficulty understanding this. Do I run samsung unlock from the cmd line? I'm not sure how to use github, I just downloaded the cid master file from there.

I should probably just wait until it's on the op.
[Verizon Galaxy S 5 Android Development] beaups:
yes, push and run it. turn device on. run it again
[Verizon Galaxy S 5 Android Development] mjbram16:
uggghhhhhh i don't know enough about using adb and the cmd line. i'll just wait to watch other people do it.
[Verizon Galaxy S 5 Android Development] GeTex:
Working on a tool, just wait!
[Verizon Galaxy S 5 Android Development] mjbram16:
You guys make me feel like a child on christmas eve. I just cant wait for the presents!

(this may be a bad analogy)
[Verizon Galaxy S 5 Android Development] Shaggy_thecat:
Thank you Beaups, The tool succeed and unlocked my bootloader.

Thanks for your hard work.
[Verizon Galaxy S 5 Android Development] GeTex:
And with the success, now preparing my script
[Verizon Galaxy S 5 Android Development] al50:
It makes me wonder if that the ones that are impatient and unsure without waiting for the proper tool(s) would be the unfortunate ones that brick or mess up their device. Guy's please just wait until the OP and Dev's who are working on this unlock method release the tool(s) to be used. It's been said and asked repeatedly to be patient.
[Verizon Galaxy S 5 Android Development] coopmaster:
So now it works on 5.x.x devices with 15?
[Verizon Galaxy S 5 Android Development] GeTex:
[MENTION=5209970]al50[/MENTION] the executbale released is the final version. it works. I'm simply going to make it easier to use, although tbh it's already pretty easy!
[Verizon Galaxy S 5 Android Development] GeTex:
Yes

added the executeable to the OP
[Verizon Galaxy S 5 Android Development] mjbram16:
this is exactly what I'm afraid of. I've waited this long for the exploit to be polished, I don't want to mess up my device just because I want it now. The anticipation is killing me but i'm going to wait for the tool.
[Verizon Galaxy S 5 Android Development] briantacker:
Has anyone found any information about what else the CID is used for on our devices? (Besides the bootloader check)

In other words, are there going to be any consequences or conflicts for everyone using the same CID. I saw it briefly mentioned earlier in the thread but I didn't see any answers.
[Verizon Galaxy S 5 Android Development] GeTex:
We don't know yet

The executable is ready and anyone can use it, we have success with it!

My tool is not ready yet but will be shortly
[Verizon Galaxy S 5 Android Development] al50:
Sorry GeTex, just trying to calm down the antsy ones and didn't know if you've update the OP giving the proper way to use. Great and awesome work DEV's. Please, if anything, post a donation(s) links so WE ALL can give the proper THANKS. Without you (Getex), Beaups, JrKruse, Anonymous(MS), ryanbg, Surge1223 and the other Recognized Dev's this wouldn't have happened. Thank you!!!!!:) :good::)
[Verizon Galaxy S 5 Android Development] GeTex:
Yea, don't forget [MENTION=766721]ryanbg[/MENTION], anyhow also remember i don't have steps up yet, working on that now, but the tool is attached

./samsung_unlock

make sure you have a blank at least 4gb class 10 micro SD card
[Verizon Galaxy S 5 Android Development] ryanbg:
I'd love to hear from an AT&T S5 owner on if this works.
[Verizon Galaxy S 5 Android Development] mjbram16:
what would happen if it wasn't class 10?
[Verizon Galaxy S 5 Android Development] ryanbg:
Nothing, it should work fine, but I'd recommend a 16GB card. If your device bricks, it'll boot from SD and flash aboot back to normal.

Can we get an advisory on OP also to warn against using this on a device other than a VZW/ATT S5? It will brick your phone if you don't have one of those devices.
[Verizon Galaxy S 5 Android Development] brd912:
ok so the Samsung unlock tool in the op is good to go for 5.1 devices with 15?
[Verizon Galaxy S 5 Android Development] GeTex:
Will add warning now

Also I've found that because class 10 adds ext3 and ext4 support, that if you use non class 10, it won't boot

just my findings
[Verizon Galaxy S 5 Android Development] pyrite123:
Holy cow, nice progress you guys! This mean we can flash aosp roms soon?

Edot: silly question, saw the aosp rom in forum.
[Verizon Galaxy S 5 Android Development] GeTex:
You can flash it now, it's ready
[Verizon Galaxy S 5 Android Development] mjbram16:
So with your one click tool is there still a need for a class ten sd card? I dont have one available but i have a class 5 or 6
[Verizon Galaxy S 5 Android Development] ozz200127:
Wat do we flash? Are u gona update op
[Verizon Galaxy S 5 Android Development] ryanbg:
To unlock:

Download this

adb push samsung_unlock /data/local/tmp/

adb shell

su

cd /data/local/tmp/

chown root.root samsung_unlock

chmod 777 samsung_unlock

./samsung_unlock
[Verizon Galaxy S 5 Android Development] mjbram16:
Thanks
[Verizon Galaxy S 5 Android Development] ozz200127:
I'm not understanding...need op updated
[Verizon Galaxy S 5 Android Development] talktosamson:
I've successfully flashed it, and it indeed says developer mode when connected in bootloader(download mode) but I guess I'm confused. Do I still use safestrap to flash the roms? The difference being we can use the AOSP/CM roms now?
[Verizon Galaxy S 5 Android Development] GeTex:
updated, added my old adb tools zip, you can do everything from there!

One click tool is on the way!
[Verizon Galaxy S 5 Android Development] GeTex:
you can now install twrp or CWM and flash custom roms :)
[Verizon Galaxy S 5 Android Development] talktosamson:
Oh snap! It's been so long (my Note 2) since I've been able to run TWRP. Oh this is a great day!!
[Verizon Galaxy S 5 Android Development] brd912:
well somehow I misread and I have the 11 bootloader :( It will take an entirely new method for the 11 bootloader wont it?
[Verizon Galaxy S 5 Android Development] GeTex:
11 is the emmc not the bootloader and yes it will. I myself own an 11 :'(
[Verizon Galaxy S 5 Android Development] brd912:
Ahh. Well I got all excited and told my brother he couldn't have my s5 because I was excited to run cm13. Maybe it will happen before I buy a new phone

---------- Post added at 08:12 AM ---------- Previous post was at 08:06 AM ----------

Being on a custom ROM doesn't change emmc, right? I'm reaching at hope here lol
[Verizon Galaxy S 5 Android Development] coopmaster:
so this now works for 5.x.x devices? just dont want to load this and be like oh not yet. Also now i can just use twrp and whatever to flash a custom rom?
[Verizon Galaxy S 5 Android Development] GeTex:
yes it does, we've already said that
[Verizon Galaxy S 5 Android Development] coopmaster:
so from here how do i load a custom rom after doing this?
[Verizon Galaxy S 5 Android Development] GeTex:
like normal. flash a custom recovery and begin
[Verizon Galaxy S 5 Android Development] ozz200127:
I do the part where adb shell and says not found

---------- Post added at 07:31 AM ---------- Previous post was at 07:23 AM ----------

I might have to wait on one click tool
[Verizon Galaxy S 5 Android Development] GeTex:
where are you doing it from?
[Verizon Galaxy S 5 Android Development] jrkruse:
Well I guess I had better get to making some roms. No more safestrap, Now can use aroma installers,my life got easier!
[Verizon Galaxy S 5 Android Development] ozz200127:
From your adb tools

---------- Post added at 07:41 AM ---------- Previous post was at 07:37 AM ----------

I did adb push samsung_unlock /data/local/tmp/ then that was k but then I did adb shell and said not found
[Verizon Galaxy S 5 Android Development] i9192droid:
You are making history! Thanks for your hard work
[Verizon Galaxy S 5 Android Development] GeTex:
oh my bad, in my adb tools when you run the adb shell, leave adb out of the commands and shell as well

my bad entierly!
[Verizon Galaxy S 5 Android Development] coopmaster:
So a different question where do we find the backup of the orginal CID?
[Verizon Galaxy S 5 Android Development] GeTex:
Updated OP and adb tools :D
[Verizon Galaxy S 5 Android Development] GeTex:
added instructions to pull existing CID file for reference, also proper push setup

also has other tools but you likely won't need them
[Verizon Galaxy S 5 Android Development] coopmaster:
so after i have the cid changed and now it shows developer mode. How do i install CM 13 ?
[Verizon Galaxy S 5 Android Development] GeTex:
as i've said, install a custom recovery and flash.... i mean..... come on...
[Verizon Galaxy S 5 Android Development] kilroy1stcav:
Follow this for the recovery: http://xdaforums.com/showthread.php?t=2746586
[Verizon Galaxy S 5 Android Development] coopmaster:
sweet and then i can install the CM 13 just by flashing it on the device?
[Verizon Galaxy S 5 Android Development] kilroy1stcav:
You'll have to follow the directions for CM13. I haven't gotten there yet. ...
[Verizon Galaxy S 5 Android Development] coopmaster:
okay im just wondering as i dont want to do anything stupid but once i have twrp installed i should be fine if i flash the wrong thing im guessing, well rom i mean.
[Verizon Galaxy S 5 Android Development] kilroy1stcav:
I personally am going to wait for jrkruse to make roms for it, that way I can follow his instructions so I don't blow it!
[Verizon Galaxy S 5 Android Development] coopmaster:
Have you installed twrp using the link you gave me?
[Verizon Galaxy S 5 Android Development] ozz200127:
How do u know if it unlocked bootloader
[Verizon Galaxy S 5 Android Development] coopmaster:
boot into download mode and it will say it there. on starting up hold down button + home + power.
[Verizon Galaxy S 5 Android Development] GeTex:
go to download mode, it'll say on the left side somewhere
[Verizon Galaxy S 5 Android Development] ozz200127:
Nothing...I did all the steps and at end it said some warning and to hit yes or no so I said yes and the rebooted

---------- Post added at 08:47 AM ---------- Previous post was at 08:46 AM ----------

Do we need to be on stock rom cause I'm on custom rom wich is moar
[Verizon Galaxy S 5 Android Development] GeTex:
you have to run it twice...
[Verizon Galaxy S 5 Android Development] N4styN1ghtm4r3:
So, in the OP it says for Verizon users only due to a lack of aboot for AT&T, but Beaups mentioned it works for both.

Is this safe for AT&T users? Or are we waiting for something?
[Verizon Galaxy S 5 Android Development] GeTex:
You can try it but i was not aware that it would work for AT&T. Realize your phone could become wrecked
[Verizon Galaxy S 5 Android Development] coopmaster:
any ideas on how to install cm 13? or any other rom?
[Verizon Galaxy S 5 Android Development] ozz200127:
Will it say developer mode in Odin mode
[Verizon Galaxy S 5 Android Development] N4styN1ghtm4r3:
Well, I keep seeing people saying it should work for both, but how would that work without an aboot to flash? I'd love to try it, but this is my daily driver, and my only phone besides a Verizon s4. I don't want to be the tester for this, as excited as I am to get a marshmallow on this bad boy!
[Verizon Galaxy S 5 Android Development] ozz200127:
I mean in download mode
[Verizon Galaxy S 5 Android Development] N4styN1ghtm4r3:
Yup, it's been said a few times now.
[Verizon Galaxy S 5 Android Development] kilroy1stcav:
Google is your friend,

https://download.cyanogenmod.org/?device=kltevzw

Not sure if this will work for us, but ask there.

Instructions for verizon S5: https://wiki.cyanogenmod.org/w/Kltevzw_Info

Here is the full instructions, I have not done this, just looked it up for y'all:

http://androidbiits.com/verizon-sam...roid-6-0-marshmallow-cm13-kltevzw-custom-rom/
[Verizon Galaxy S 5 Android Development] GeTex:
It does!
[Verizon Galaxy S 5 Android Development] mjbram16:
so is the android system running off of the sd card or the internal memory?
[Verizon Galaxy S 5 Android Development] kilroy1stcav:
If you flash it, it runs from internal memory!