yashsingh1/xdaforums huggingface dataset:
[Verizon Galaxy S 5 Android Development] autonomousperson:
Allright, heres the thing compiled. Stick it somewhere and run it in terminal. Couldn't find something to cross compile it for arm so I had to set up a Ubuntu vm. Anyone got an aboot with CID? I really want to try this out.

http://s000.tinyupload.com/?file_id=64141875024257149501

---------- Post added at 05:00 PM ---------- Previous post was at 04:17 PM ----------

Ok so a bit weird. At first it thought that my device was a non-samsung eMMC so I just removed the check in the code. After trying to use it to change my CID, it reports that the backdoor failed with -1. Any idea what that means?
[Verizon Galaxy S 5 Android Development] Hashbang173:
Does your cid happen to start with an 11?

If I'm not mistaken, ones starting with 11 are Toshiba emmc and ones that start with 15 are Samsung

https://github.com/torvalds/linux/b...10e9d5e3d/drivers/mmc/card/block.c#L2475-2477

It isn't rare for the same device model to have variations in emmc
[Verizon Galaxy S 5 Android Development] autonomousperson:
Yes it does. Interesting. Ill check my two other motherboards once I can find them. So this exploit does not work on Toshiba eMMC's?
[Verizon Galaxy S 5 Android Development] Hashbang173:
This exploit is specific to Samsung eMMC so it will not work with Toshiba eMMCs unless the exploit could be expanded to a Toshiba specific vulnerability
[Verizon Galaxy S 5 Android Development] autonomousperson:
Ok so it is not samsung emmc. Pulled off the rf sheild and its made by Elpida. I have 2 mobos with the toshiba eMMC and one with samsung emmc. The one with samsung eMMC (att s5) is a bit bricked and only boots into odin mode if you have the sd in (unbrick img). I am unable to fix it as reactivation lock is on. Turn reactivation lock off you need to have the phone boot. So not sure what to do from here. I think I still have another vzw s5 somewhere.
[Verizon Galaxy S 5 Android Development] beaups:
What do you think the check is there for? DONT REMOVE IT.

--beaups
[Verizon Galaxy S 5 Android Development] GeTex:
Lol, this

Nothing to see here
[Verizon Galaxy S 5 Android Development] Hashbang173:
No, I'm guessing you have Toshiba eMMC

https://github.com/torvalds/linux/b...ec63110e9d5e3d/drivers/mmc/card/block.c#L2475
[Verizon Galaxy S 5 Android Development] GeTex:
Opening it up
[Verizon Galaxy S 5 Android Development] doubleaykay:
Nope I'm not quite sure you can... 11 is for Toshiba eMMC as confirmed on my S4. 15 is for the Samsung eMMC that is vulnerable to this. If anyone wants a quick way to check, look up "eMMC Brickbug Check" on the playstore. It will list the CID for your eMMC.
[Verizon Galaxy S 5 Android Development] GeTex:
AAAAAAAAAAAAAAAAAAAAAnd my luck ran out.... Friggin Toshiba Chips
[Verizon Galaxy S 5 Android Development] Legitsu:
deleted

wrong wrong wrong wrong ... wrong wrong Wrong wrong .... I wrong I wrong I wronnnnnnnnnng
[Verizon Galaxy S 5 Android Development] GeTex:
o.o Ummm.... I have a Riffbox....
[Verizon Galaxy S 5 Android Development] autonomousperson:
Not 100% sure but when I had the s4 they realized that jtag was blocked. Doubt it would work on the s5.
[Verizon Galaxy S 5 Android Development] Legitsu:
disregard everything I said I was wrong
[Verizon Galaxy S 5 Android Development] autonomousperson:
Does anyone here have a vzw s5 with a Samsung eMMC? both my s5's have the Toshiba chip and I brought them a year apart.
[Verizon Galaxy S 5 Android Development] GeTex:
:( Dang.... Got my S5 last year in november
[Verizon Galaxy S 5 Android Development] Dudash:
My second S5 was on OK3 with OD5 bootloaders when I unlocked.

I proceeded to update to PB1 afterwards and it's still unlocked.

Just don't update with a full odin tar and you'll remain unlocked too.
[Verizon Galaxy S 5 Android Development] t_house:
I have read post 2 probably 10 times already but for reasons beyond my control, I was awake all night and brain refuses to work. Lol. I did gather that PB1 was the way to go but knowing I can unlock then update is good to know. I really do appreciate you guys answering me so quickly and appreciate the hard work you guys put into everything.

Sent from my rooted SM-G900V.
[Verizon Galaxy S 5 Android Development] Dudash:
Just don't update via Odin.

Use one of jrkruse's ROMs.

Also, what bootloader are you on atm? V1 or V2? Meaning the original or OE1+ no downgrade one?
[Verizon Galaxy S 5 Android Development] thrgk:
If I'm rooted og5, how should I go about getting to PB unlocked bootloader and keeping root ?

I saw a guide on going to PB and keeping root but I'd like to unlock to and just unsure of the order to do it
[Verizon Galaxy S 5 Android Development] Dudash:
Go ahead and unlock your bootloader now, then flash jrkruse's PB1 ROM located here or muniz_ri's fully stock, just like verizon sent it, except rooted, ROM located here. Beware tho, muniz_ri's ROM will wipe your data.
[Verizon Galaxy S 5 Android Development] thrgk:
OK so don't take any Ota ? Just follow the kit Kat to pb1 unlock guide ? And once that's done and I flash the rom above I'll have root pb1 and unlock boot loader ?
[Verizon Galaxy S 5 Android Development] Dudash:
No, never take any OTA.

And if you're on OG5, you don't need to follow to kitkat guide.

But yes, once you flash one of the ROMs you'll have rooted PB1 and will keep your unlocked bootloader.
[Verizon Galaxy S 5 Android Development] newskin:
Quote:

Originally Posted by newskin

Hi all. I understand that the unlocking of the bootloader mostly means, non touch wiz rom's can now be installed. Which to me is a good thing to be able to run closer to aosp roms'. One question i have though. I am now on pb1 with safestrap and on a touchwiz rom but definitely not stock. As i am rooted and have supersu , safestrap, etx.. Everything running smoothly. From this point can i just follow instructions to unlock and install twrp from playstore? Which im hoping would just overwrite safestrap and i can just flash another rom at that point? Any guidance is appreciated. Thanks.

Thank you for the response, I'll have to look into how to use flashfire, never used it before. So, unlocking the bootloader wouldn't affect me getting back into the OS? Because I'm assuming that I can just install TWRP using the playstore? All help appreciated, thanks again.
[Verizon Galaxy S 5 Android Development] thrgk:
OK so just follow the steps below, then I can flash any pb1 rom and be unlocked rooted and pb1?

Method 2:*On Device

1. On your device downloadhttps://github.com/beaups/SamsungCID...samsung_unlock

2. Move to your root directory of your internal storage(if you can't figure out where that is, you shouldn't be doing this)

3. Using a root file explorer goto /sys/block/mmcblk0/device

4. Copy the file cid to your internal storage(this is a backup of your old cid, if it fails to copy, just open it as text and copy paste the text)

5. open a terminal emulator app

6. type the following

su

cd /storage/emulated/0/

chown root.root samsung_unlock

chmod 777 samsung_unlock

./samsung_unlock

7. Device will poweroff, focefully power on

8. Enter the terminal again and enter the following commands

su

cd /storage/emulated/0/

./samsung_unlock

9. Once completed reboot to bootloader using your favorite way

10. Verify you are a Developer edition phone now*
[Verizon Galaxy S 5 Android Development] Dudash:
[MENTION=1949695]jrkruse[/MENTION]

Any input on this?

I know GeTex has a pocket full of dev CIDs but couldn't verizon/samsung just block us from being able to boot their ROMs on Dev devices?

---------- Post added at 10:24 AM ---------- Previous post was at 10:20 AM ----------

I, personally, have no experience unlocking the bootloader on device. I unlocked both of my S5s with Method 1 using a computer.

But considering Method 2 has worked for others, I'd say yes. And even if you aren't rooted. You can install TWRP from here (.tar version, flash via Odin) and then just flash SuperSU from here and you'll be rooted.
[Verizon Galaxy S 5 Android Development] NotATreoFan:
Worked perfect for me. Up and running on CM13 nightly build from 4/6.
[Verizon Galaxy S 5 Android Development] t_house:
I am on the original bootloader
[Verizon Galaxy S 5 Android Development] TioCareca:
Yes unlocking will keep your OS funcional... I think you can use twrp from store just be carefull what version you choose, i personaly use the one i mention on the other post without problem, fully working with MTP and decrypton suport...

Using FF is easy, just open the apk, chose flash firmware, select the recovery and wait he ends...
[Verizon Galaxy S 5 Android Development] thrgk:
Ok so follow those steps to unlock, then install TWRP, then SuperSU, and then I can flash any PB1 or marshmellow rom?
[Verizon Galaxy S 5 Android Development] jrkruse:
It's a given that we will have to update bootloader to run MM. Now rather this method will still work on a MM rom is the question. My thought is yes. I don't think verizon will do anything on the next update. What they push out will probably been made before this came about.
[Verizon Galaxy S 5 Android Development] TioCareca:
One question, i am on BOG5 bootloader, and on BPB1 firmware with security patch of 01/03/2016

Do i need to upgrade my bootloader to BPB1 as mention on post 2?
[Verizon Galaxy S 5 Android Development] t_house:
Ok, I've gone through the unlock process and everything seems great. Is there a way to verify that it is indeed unlocked?
[Verizon Galaxy S 5 Android Development] TioCareca:
reboot to bootloader if it say developer in the left side you good...
[Verizon Galaxy S 5 Android Development] t_house:
Ok, really stupid question now. I have never been in Odin Mode (bootloader) without using Odin to download something. Obviously the phone says downloading, don't turn off target! How to I get out of this mode and restart? Odin always did that for me.

Nevermind, I figured it out.
[Verizon Galaxy S 5 Android Development] TioCareca:
pull off the battery...
[Verizon Galaxy S 5 Android Development] spicullus:
chown: samsung_unlock: No such file or directory

When I try to unlock the bootloader with method 1 I get this error

chown: samsung_unlock: No such file or directory

Help pleasee!
[Verizon Galaxy S 5 Android Development] larryk:
try adding the .bin to the filename like this "samsung_unlock.bin"
[Verizon Galaxy S 5 Android Development] spicullus:
dont work

I just tried, still the same.

Thanks anyway
[Verizon Galaxy S 5 Android Development] al50:
Or press down on the power button until phone shuts off.
[Verizon Galaxy S 5 Android Development] spicullus:
I got past it but now something else is holding me off

./samsung_unlock can't execute: is a directory

The last command shows this, the .bin solution does not work
[Verizon Galaxy S 5 Android Development] NotATreoFan:
Post a print screen of your Command Prompt (assuming Windows) or phone screen if doing it in terminal. I had the same issue until adding .bin on the end.
[Verizon Galaxy S 5 Android Development] spicullus:
I'm loosing my nerves :D

[IMG="error"]http://pokit.org/get/img/ab85d1a9295f8e6dafcbee007837a670.jpg[/IMG]
[Verizon Galaxy S 5 Android Development] NotATreoFan:
Reboot the phone, and try the steps again from the top. You may have missed even a small detail that causes this.
[Verizon Galaxy S 5 Android Development] jrkruse:
Try this

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
[Verizon Galaxy S 5 Android Development] spicullus:
I got it

I unlocked my bootloader, I made a stupid mistake in the begining. Thank you buddyyy, now I can do everything with my phone finally :) :) :)
[Verizon Galaxy S 5 Android Development] alaneddy:
deleted... already answered
[Verizon Galaxy S 5 Android Development] johnnybg00d:
I know you got it to work, but for others who is reading this post... The reason why Spicullus didn't get to work maybe because he's in the wrong directory? Notice the screen capture said "...data/local/tmp" It should be in the directory that he copied the "samsung_unlock.bin" into. Do "ls" to see if this file is in there first.

Edit : Per the OP, you should have copy the file into the "ROOT" directory of the SDCard for the "./samsung_unlock.bin" command to work???
[Verizon Galaxy S 5 Android Development] MrTrumpz:
Wow! Thanks so much! This is awesome! Got mine working!
[Verizon Galaxy S 5 Android Development] maniac2k:
According to Post 2, I can flash other varient roms but need to also flash VZW_5.0_International_Rom_Patch_NO_Boot.zip.

Is this is only for lollipop roms?

Does it matter which varient rom I flash (kltespr, klteusc, etc)?

Ive installed cm13 and it is working fine but would like to try some other NON-TW MM roms would this patch work on MM?
[Verizon Galaxy S 5 Android Development] TheTrueGatorman:
Thank you for this. I thought it would be nice to have this post throughout the thread.
[Verizon Galaxy S 5 Android Development] jrkruse:
This patch only works on TW lollipop roms. The best variant to use is the G900F This is the international variant

I havent got a chance to make a patch for cm/aosp roms
[Verizon Galaxy S 5 Android Development] ozz200127:
Do u know why my phone keeps saying no data sim
[Verizon Galaxy S 5 Android Development] jrkruse:
Here is a tool for unlocking the bootloader that only requires you to answer yes to unlock your bootloader.

It will also automatically backup your original cid to the sdcard and internal storage. Make sure if you have already unlocked and are running this tool again, to backup your original cid.txt files as this will overwrite it with your current cid which will be different than your original. If you havent unlocked yet then the cid.txt file will be your original

1. Flash this Samsung_Bootloader_Unlocker.zip in safestrap or flashfire

2. Reboot phone click on SamsungUnlocker app

3. Wait and make sure to grant SuperSu access. This may take a few seconds to come up

4. type yes in the terminal screen when it ask you (Yes/No) Hit enter on the keyboard

5. wait for phone to power off

6. reboot to bootloader and verify it says MODE: Developer

7. Flash Twrp recovery using Odin

8. Your done!
[Verizon Galaxy S 5 Android Development] alexp1289:
Do you think you could add support for Verizon note 3 developer edition conversion? I already gave [MENTION=711482]beaups[/MENTION] my note 3 dev 4.4 aboot and cid. Just waiting for note 3 vzw to be added to the list/code for the exploit. Once we're added to the list this should be really easy for those of us that aren't good with terminal/adb lol. If you need any dev edition note 3 files to add us to the app just email me---- alexp1289@gmail.com
[Verizon Galaxy S 5 Android Development] GeTex:
Reread the Op, he's doing method one, he's in the right spot, he likely pushed the wrong file or pushed a whole directory and not the binary
[Verizon Galaxy S 5 Android Development] Dudash:
jrkruse, what would we do without you? :)
[Verizon Galaxy S 5 Android Development] GeTex:
Does it work, If so to the Op it goes!
[Verizon Galaxy S 5 Android Development] jrkruse:
It worked for me. I tried it several times
[Verizon Galaxy S 5 Android Development] romyg:
jrkruse - does the unlock app also wipe your sdcard?

Also, sounds like updating modems/firmware is a bit of a pain after you unlock - would you recommend updating to pb1 firmware before unlocking?
[Verizon Galaxy S 5 Android Development] jrkruse:
Yes SD card gets wiped. Updating modems and firmware is not that hard but I do recommend updating to PB1 before unlocking
[Verizon Galaxy S 5 Android Development] GeTex:
Adding new method to the OP!
[Verizon Galaxy S 5 Android Development] Jimmy4485:
Assuming I can use a blank external SD card, would this work? I am apprehensive, since I have a lot on my SD cards. Both internal and external. And could you please include somewhere the required firmware and modems?
[Verizon Galaxy S 5 Android Development] jrkruse:
Everything you need is in the 1st and 2nd post
[Verizon Galaxy S 5 Android Development] brag3006:
Using Safestrap roms as "full roms"

Is it possible to just flash safestrap roms through TWRP now?

or is that not how this works? (Sorry for the noob question, I am still new to this!)
[Verizon Galaxy S 5 Android Development] Bobcus Leper:
Yes, it will work just fine. BTW, there is no such thing as a SafeStrap ROM.
[Verizon Galaxy S 5 Android Development] jrkruse:
He might have meant the last couple of roms I made had safestrap already baked into them even if you flashed the rom with flashfire you would still be able to get to safestrap without installing it. But yes you can flash those just make sure to uninstall the safestrap recovery using the safestrap app
[Verizon Galaxy S 5 Android Development] sean19661:
Sorry I see there are two methods to unlock the bootloader 1 st is a flash flashable zip just this zip unlocks the bootloader and what version of Android kit Kat or both lollipop and just doing the first method dose it unlock the bootloader on its own ?
[Verizon Galaxy S 5 Android Development] jrkruse:
There are directions posted with the zip. I thought it was pretty self explanatory.
[Verizon Galaxy S 5 Android Development] TMadd:
Successfully followed the new Method 1 compiled by jrkruse – Sincere thanks to all involved in making this happen! You guys are great!
[Verizon Galaxy S 5 Android Development] Jimmy4485:
Would Titanium save everything on the external SD card so I can restore all? I never had my external SD wiped. Would I for the time being be able to use the same ROM? Would I be able to restore the ROM through Flashfire? Thanks!
[Verizon Galaxy S 5 Android Development] jrkruse:
Take that cable that came with your phone plug it in to your computer copy what's important to you from your sdcard to the computer. Then reverse the process when done. Problem solved. You can use the same rom. Unlocking phone doesn't affect the rom at all.
[Verizon Galaxy S 5 Android Development] thrgk:
I unlocked my bootloader, (ON OG5 rooted) and then I went to install TWRP through the zip file by flashing it in flashfire, but it did not work. When I go to boot into recovery I get

"Started up Failed and at the top in red it says Secure Fail :Recovery and below the yellow triangle with exclamation, your device did not start up successfully. Use Verizon Software Repair Assistant on a computer to repair your device."

I tried flashing in Odin as well, and now I just tried to flash TWRP Ktoonz verizon but still the same message. Any idea how to fix this and get TWRP successfully installed?

Thanks
[Verizon Galaxy S 5 Android Development] TioCareca:
It seems it was not unlocked... It hapens with me when i flashed a recovery without my bootloader unlocked....

You have to install a rom, root it and unlock the bootloader all over again, or flash a rooted rom by odin and then unlock the bootloader...
[Verizon Galaxy S 5 Android Development] jrkruse:
If you know it unlock successfully and after you flash the recovery you get that warning screen with the yellow triangle just pull battery and reboot back to bootloader mode then reboot to start phone. If it still does it then flash back stock boot.img and recovery.img and try unlocking again
[Verizon Galaxy S 5 Android Development] TechX1991:
I'm so hype for this, but my phone never powered off with Method 1 and when I tried Method 2 it said that the folder didn't exist

maybe i need to upgrade to 5.0?
[Verizon Galaxy S 5 Android Development] stang5litre:
Says to upgrade to the latest firmware in the OP
[Verizon Galaxy S 5 Android Development] TechX1991:
Eh, I can't read lol i was about to edit my post XD
[Verizon Galaxy S 5 Android Development] GeTex:
Did you bother to check if you have an 11 or a 15? Sounds like you have an 11
[Verizon Galaxy S 5 Android Development] jrkruse:
I would like to than everyone that's sent me emails and PM's and offered to donate. The person you should be thanking is GeTex and beaups. I'm just a contributor to this thread. It states in the OP where to make donations. I don't accept donations so if you guys wanting to make me a donation throw it towards GeTex she invested a lot getting this to happen.
[Verizon Galaxy S 5 Android Development] TechX1991:
Got the phone the day it came out... kind of assumed i had a 15. Wasn't able to check when I started it because i was on NCG
[Verizon Galaxy S 5 Android Development] GeTex:
You can check at any time by checking the file i mention in the op :/
[Verizon Galaxy S 5 Android Development] TechX1991:
I couldn't check on my NCG, when I tried, it told me file didn't exist, but I just checked, did the adb pull of the file and do have a 15, but its still not working.

I upgraded to PB1 using the stock rom provided, SafeStrap was gone, tried to reinstall it, didn't work, so I used FlashFire to flash the SamsungUnlock zip, ran the Samsung Unlock and followed instructions (hard to mess up typing yes aye? lol) and it still just says Odin Mode and Samsung Official for the Binary in download mode.

trying second method right now

that works!
[Verizon Galaxy S 5 Android Development] jrkruse:
After you unlock make sure the device powers off and not reboot. It must power off for it to stick. Do it manually if necessary
[Verizon Galaxy S 5 Android Development] TechX1991:
it worked with the 2nd method. That was way more fun anyway lol

kind of surprised we didn't think of something like this sooner... just messing with it like this from the dev edition lol

currently running CM13 and this things amazing now.
[Verizon Galaxy S 5 Android Development] al50:
Here is the Procedure For Updating Firmware If Already On Lollipop

CLICK TO HIDE CONTENT

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...... [MENTION=1949695]jrkruse[/MENTION], where can i find the 'Stock boot.img' and 'Stock Recover.img' for OC4 that i'm currently running on your MOAR ROM so i can update to PB1 for the unlocked BL, which i've already unlocked my device.

Question (and i may have misread or missed throughout these posts) (1) By unlocking the BL (before or after) updating to PB1 will you still be able to downgrade to NCG via ODIN using the NCG HOME.....tar file to get back to KK and root again or if we take the "plunge" we lose the ability of flashing back to a "TRUE" KK and root. Just asking is all.....
[Verizon Galaxy S 5 Android Development] mjbram16:
I unlocked my BL on the bok3 firmware. Mostly everything seems fine other than a couple bugs that get fixed with nightlies. Am I missing something by not upgrading to pb1? Should I have flashed the international modem ROM? Is it to late if I need to now that I'm running cm13?
[Verizon Galaxy S 5 Android Development] johnnyrichter:
I've been running the jrkruse root for about a month now(old instructions) and just started without flashfire or safestrap(I guess I uninstalled them or didn't reinstall after installing the one ROM I could use at the time which was OptimalROM). Installed the latest safestrap apk from jrkruse's safestrap thread, rebooted to safestrap, flashed the samsung_unlock, rebooted, ran samsung_unlock, waited for root permission, typed yes and hit enter, terminal window said some stuff and then phone shut down. I rebooted in to bootloader/download? mode and don't see anything about developer mode. Am I doing something wrong? Do I need to reroot?

Also, am I able to install the CM13 build since it's 6.x? I'm only running whatever the old root instructions had me install(starting from oem bok3), plus the Deodexed OptimalROM.
[Verizon Galaxy S 5 Android Development] munchy_cool:
You need to have a minimum 4gb micro sd card, if you have one try again. Make sure to enter 'Yes' and not 'yes' (not sure if it makes a difference or not).

Once you have developer mode, you need to install TWRP (linked in first post) using flashfire and then you can install CM 13 or any rom which does not flash a bootloader.