yashsingh1/xdaforums huggingface dataset:
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] Intellectua1:
[MENTION=2436164]attn1[/MENTION] so just to be clear.. With this zip I can take a custom ROM or zip that's for my AT&T S4 even if it not Loki'd as long as I flash this zip afterwards it'll auto Loki the file and the flash will work??
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] plwalsh88:
That's how I read it. But it only matters if the ROM zip contains a kernel or if you're flashing a kernel by itself. Because the Loki patch has nothing to do with the ROM.
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] attn1:
That's the idea.
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] Intellectua1:
Ok thanks just making sure
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] Parafly:
So I've been rooting phones for a while.... first my Droid 1, then my Thunderbolt, then my Galaxy Nexus, now my S4, all on Verizon. Also rooted my wife's Droid Charge and my father in laws Droid 3.

I rooted the S4 already. I understand this unlocks the bootloader, which will let me load in ROMs? I used to use some roms on the thunderbolt and droid 1 but never did so on the gnex and tbh I'm pretty happy with Touchwiz with Nova on it (first time using a launcher). I would however like to get Google Wallet working.

Is it permanent? I've used ADB, ODIN, etc. a few times but I'm hardly a master. What is Loki? Is that a proprietary name djrbliss made up? Just trying to undrestand some of these new words :) Thanks!
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] _Dennis_:
Read read read. Your questions have been answered. The short answer is:

No this is not a bootloader unlock but a bootloader lock bypass

It is not permanent as it only messes with recovery and kernels not bootloader (flashing a new recovery or kernel means loki must be applied to the new item)

Loki is a script made by Dan (djrbliss) that changes the header of the kernel or recovery to write a 0 in the memory space aboot is looking at to decide if the recovery or kernel is signed by AT&T.

I suggest you read a lot nore and come to a good understanding of everything before proceeding. This goes for everyone who is asking these questions. There are a lot of people who are on their way to soft bricking their phones and have no clue how to fix it since they have no clue how they are breaking it. Everything has been explained at least 5 times.
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] plwalsh88:
5 times is a major underestimate. These questions will never end. It's actually mind-blowing. While at the same, it's not.
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] MikeC4510:
Well I hope my question isn't too off topic...but...:

Is it pronounced "low-key" or "lock-eee"?

I know it's a silly question, but I just want to pronounce it right (OCD much?).

Sent from my I337~SGS 4 using Xparent Skyblue Tapatalk 2
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] mrfeuss:
Hey Dan, I'm sure you're probably inundated with requests for bootloader unlocks, but we have some devs working on unlocking the Optimus G Pro who think they may be able to use a similar hack to unleash our phone. Any chance you'd be willing or able to give them some insights or a hand at this?

Thanks in advance.
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] mrfeuss:
Ok, two things: It's generally considered bad form to quote the whole OP. If there's something you want to quote, edit it to only reflect the relevant portion. Secondly, are you asking if his bootloader bypass will allow you to use your phone without making your payments? This tool is to allow users the freedom to install custom ROMs, not obtain free cell phone service. If I misunderstood you, please feel free to set me straight.
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] whiterabbit1:
srry been a while I keep clicking on the wrong buttons

Srry any way no in refrence to free service (voip)(mcdonalds) lol no I mean they lock this phone down from any use at all no os use till u pay the bill and the patch was meant too kill this exploit from flashing roms. I suck at edicts srry
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] Naddict:
Thread cleaned of both distracting posts and ones that have zero contribution value to the thread agenda.

Post and answer questions, be respectful, or log off and go elsewhere.

Troll at your own peril from here on out in this thread. No more warnings either, infractions are next.

Let's contribute to DEVELOPMENT here folks.
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] scott14719:
I think this belongs here. It seems as if this entire discussion may start very soon again for those going to purchase the AT&T S4 in the future, so maybe this is a good way to kick it off.

http://rootzwiki.com/news/_/article...oki-bootloader-script-for-its-galaxy-s4-r1994
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] circasurvives:
Forget I said anything
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] Versatile1:
My Motorola devices loved Dan and I'm very thankful my S4 gets some love....
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] alacrify:
Never mind - stupidity on my part.
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] CPA Poke:
You're aware that the post you quoted was, in fact, also two months old?
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] alacrify:
Ouch - bit myself on the *ss. My apologies, and I'll clean my post. Danger of watching a slow moving post...
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] mdanish4:
HELP!!!

Hi, I bought this AT&T S4 and it has MF3, I rooted the phone.. but when i am trying to do the loki patch for custom recovery via terminal emulator i am getting this message " LOKI ABOOT VERSION DOES NOT MATCH DEVICE".. any one can help me on this???
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] Mike:
Can't do it to MF3. They patched it. Your out of luck currently. Can only root it atm. No custom recovery / custom roms

Sent from my AT&T Galaxy S4 I337
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] mdanish4:
Damn... don't tell me that man.......
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] Mike:
It's a harsh reality I know. All we can do is hope Adam and others will continue pushing to find a new work around.

For now, you could root and install the Xposed Framework along with the module for the S4 found in our dev section. As much as I don't like TW, the module made it bearable and even enjoyed the experience. The mods available within the module have only expanded since I used it waiting for the original Loki work around. You can expect a good user experience.

Between the Xposed module, Adaway and TiBu you should be able to hold out. It's not ideal, but it's certainly not bad.

Sent from my AT&T Galaxy S4 I337
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] PeartFan40:
If you're on mf3 amd you flash twrp using terminal emulator, you're going to bork the stock recovery and begin a download mode loop. Albeit that is fixable, you wont be able to reset your phone to stock, with a corrupted stock recovery.

This is the Galaxy S4, usng XDA Premium
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] tkienzle:
If you don't like TW then install nova or another launcher of some sort that is what I did ;)

Yea stuff...
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] Mike:
I'm on Slim Bean 4.3. I realize my post was confusing in that it may have seemed as if I was in the same boat with mf3 as the person I quoted.

Sent from my AT&T Galaxy S4 I337
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] NOplaymaker:
Don't worry I'm stuck in a boot loop too until someone helps us.....Sucks....
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] inyourface09:
Looking for assistance.

I noticed that support has been added for the LG Optimus F7, I recently purchased the F3 and have tried every attempt possible to unlock the bootloader. This phone was released in may and I was hoping to add my own support to LOKI even though it may not work. I have no idea how to find the needed addresses and convert them. This phone is across 4 separate carriers and I know people are dying to get some custom sw. Any links or guidance would be much appreciated. Thank you in advance!

Thank you Dan for all your hard work! If i get this to work on my phone I will definitely be sending a donation.
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] jpeps:
Please i527 is locked who do unlock it ???
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] mg2195:
Seeing how this is the galaxy s4 forum for the att/Canadian variants (i337/i337m)...I don't think your gonna get the answer you want, try asking in your devices forum :)
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] mkinney88:
would you be able to port this exploit to the moto x ? I thought samsung was using a version of the motorola bootloader?
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] kuma82:
Quoting the entire OP is frowned upon in this establishment ;)

Please play nice and edit your post.

Dear [MENTION=4229979]djrbliss[/MENTION] (Dan), thanks for always giving what the people want, freedom :beer:

My fellow Optimum L9 users are seeking freedom from our selfish carriers, and your Loki exploit, might be the answer to our prayers. Our bootloader resides in a u-boot, we will like to create a thread in our forum, to try and port your Loki exploit with your grace of course.

Oh and if you can share any info you may have on a u-boot.

Lol, sorry for brown noising
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] ballaz:
Hope i did not miss the answer to my question. I am about to purchase a stock att gs4 from craigslist. how do i check if loki will work onit before purchasing? Thanks in advance. PS i know it will not work on mf3 aboot but how does one check for that?
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] mspayde:
Root checker by free android tools on the market...you can check build and bootloader.
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] mikecantreed:
I'm assuming you mean motochopper? Unless you're building your own ROMs you wouldn't give a **** about LOKI (most ROMs in this forum are auto-lokied). And to answer your question go into Settings-More-About Phone and check the baseband version. If it ends in MDL then you can use motochopper, if it ends in MF3 then you'll have to use Hashcode's safestrap.
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] ne0zone75:
THANK YOU

[MENTION=4229979]djrbliss[/MENTION]

I really want to thank you for adding LG Optimus F5 support to LOKI,

Be Well :)
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] silentscreamer:
Great Work!

would you be able to port this exploit to the international Galaxy S4 ?

Regards
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] sizemore2000:
Don't think that will work, since it does not work on mf3. The international version is several updates ahead of at&t's mf3.
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] silentscreamer:
:confused: bad news at all but anyway: :thumbup: thanks for replying:cool:
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] mattdm:
Why would you want Loki support for a phone with an unlocked bootloader? If you have an international S4, you are in a much, MUCH better position than someone who has to use Loki.
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] rav4kar:
Are they mistaken for rooting?!
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] scott14719:
I'm still amazed by this poster's thread in the "DEVELOPERS ONLY" section. And there isn't much that amazes me around here anymore.

And again...why would you use LOKI on an unlocked bootloader?
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] silentscreamer:
...ever heard about Samsung Knox ?

Thanks to Samsung since Knox became reality we can not longer speak about an unlocked bootloader on international S4. Loki or a Loki like variant sounds at least like a promising approach.
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] @rbiter:
Smh.

Sent from my SM-900T.
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] mymusicathome:
Is there an anti Loki hack that could be flashed to remove Loki from a kernel? Would be nice for i337m or non i337 to be able to flash an AT&T Rom

Sent from my Nexus 10
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] Phoneguy589:
From what I've seen on the i9505 thread, several of these kernels are over there without the auto Loki. Don't know if you've looked there or not.

Sent from my At&t Galaxy S4
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] Gryff302:
Anyway to possibly support the LG Optimus L9? Alot of users using the L9 have been stuck on locked bootloaders and not possible to unlock with current ways described.
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] NighthawkXL:
The devices have absolutely nothing to do with each other. I'm fairly certain that Samsung and LG's bootloaders are completely different. In other words, it is incredibly unlikely this exploit can ever be used on anything outside of the S4.
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] Gryff302:
Its not just for the s4. Take a look at the github commits.
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] blackwing182:
LG Optimus L9 From T Mobile have a diferent work-araound to unlock permanently the Bootloader i think.... just search for it.

also this tool is for newer devices and can be used in newer LGs and Samsung Devices. just look for info.
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] Gryff302:
Thanks blackwing, but so far every avenue has been attempted and failed by quite a few people including myself. This was a suggestion from another developer to possibly get advice or help. I will mark this off my list though. Thanks again.
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] emediately:
Flash loki

Hello everyone, I have a Verizon Samsung Galaxy S4 i545 running stock Android 4.3, VRUEMJ7.

I’m trying to root, install CWM recovery, and install GUMMY ROM.

According to this webpage:

h t t p : / / galaxys4root . c o m / galaxy-s4-root/how-to-install-cwm-recovery-on-att-or-verizon-galaxy-s4-sgh-i337sch-i545/

“There’s some great news for AT&T or Verizon Galaxy S4 users, bootloader is not unlocked BUT we have LOKI method by XDA user DJrbliss that allows developers to bypass bootloader check to enable custom recoveries and custom ROMs.

So, now you can install CWM recovery for AT&T or Verizon Galaxy S4.”

I successfully rooted my phone, downloaded loki_flash and recovery.lok (followed all the instructions of that website and the youtube video) but in terminal app on the phone, i get the following error:

loki abooit version does not match device

Can anyone give me some tips? I know this method doesn’t work on MF3 firmware, but I have the MJ7
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] mattdm:
Loki doesn't work on MF3 or anything newer.
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] osm0sis:
[MENTION=4229979]djrbliss[/MENTION] Hi there, I maintain a ramdisk unpacking tool and I recently had what I believe was a "lokified" TWRP image for the LG G2 brought to my attention. Is there any way to "unlokify" an image? I have yet to see this mentioned anywhere and the scripts I've found to unpack on loki supported devices don't seem to do anything special, but I look in the image and there is definitely the word LOKI and odd data in-between the sections of the image that I think are resulting in difficulty splitting the image using the header offsets. Any help would be greatly appreciated. :)

http://xdaforums.com/showpost.php?p=48005890&postcount=187
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] Phil3759:
Thank you a lot for this tool

Is it possible to replace your binaries by statically built ones?

That way, we can include them in recovery flash-able zips using scripts

Also, if you add a line in Read.me on git for exactly how you compile them, it would speed up things a bit ;)

Meanwhile, I will use my own compiled ones, with all credits obviously

Many thanks again for this great work
[Sprint Samsung Galaxy S 4 Q&A, Help & Troubleshoot] Phil3759:
Loki ARM static from latest sources

Attached
[G2 and Desire Z Q&A, Help & Troubleshooting] wasabi2000:
Hey Guys.

I have a broken HTC DZ next to me. It is S-ON so i cant flash a recovery like cwm. I also cant flash any other thing (or am i wrong?).

Now my Question is how i can unlock the Bootloader in Fastboot, bercause i cant do any other thing..

I already tried with adb but the device dont show up in the List..

Thank You.
[G2 and Desire Z Q&A, Help & Troubleshooting] demkantor:
first of all you are correct, cant flash anything with s-on and locked bootloader. and in truth unlocking the bootloader will allow you to flash but it will turn into a headache as there will be hoops for you to jump through at each flash.

the best thing for you to do is root following the xda wiki method outlined HERE

also the cyanogen wiki and strawmetals pdf guide are the same, but reading through multiple guides telling you the same thing can be easier to comprehend (just google search them)

you will need to figure out why adb isnt working though, feel free to check through THIS GUIDE It is for fastboot but if you can get fastboot to work adb will be working as well

good luck, and as always, Happy Flashing!
[G2 and Desire Z Q&A, Help & Troubleshooting] wasabi2000:
So first thank you for this nice answer. I will use these links as soon as adb is working.

Over here http://xdaforums.com/showthread.php?t=865685 (in Step 2 of Quick Way) the author says that usbdebugging is necessary for adb. Before it broke adb was disabled. Could that be the reason for not working adb? And how to solve it without going to the Settings?
[G2 and Desire Z Q&A, Help & Troubleshooting] demkantor:
well we will certainly need to do some more digging then. can you give me all info about the phone that you know, including everything off the bootloader screen?

and also read through THIS on second thought will you respond with the info in this thread, in hopes of keeping this forum less cluttered im trying to get all the bricked/broken threads condensed into one space
[G2 and Desire Z Q&A, Help & Troubleshooting] wasabi2000:
Okay, well. I will be as exact as i can.

The Problem caused while downloading the app "Plague Inc". The Phone shut down and never get back on.

No access to Recovery as i mentioned before, but access to the Bootloader

My Bootmenu-"Stats":

VISION PVT SHIP S-ON

HBOOT-0.85.0013

MICROP-0425

RADIO.26.10.04.03_M

eMMC-boot

Apr 11 2011, 23:36:27

So you can see that the Phone isnt rooted yet (not possible because of the impossibility using adb).

Output from "IMAGE CRC":

osbl: 0x7EE4ED8C

amss: 0xB7A63815

hboot: 0x887F7ABB

boot: 0xCCCC4C36

recovery: 0xEFBDE78C

system: 0x6A981739

With Fastboot:

fastboot devices: (no results with adb devices)

SH18HRT01164

fastboot flash recovery recovery.img (not possible because no root access):

sending 'recovery'

OKAY

writing 'recovery'

<bootloader> signature checking...

FAILED <remote: signature verify fail>

finished

I think this is all i can tell you about this Phone now.
[G2 and Desire Z Q&A, Help & Troubleshooting] demkantor:
Yes adb will not work inbootloader mode only in os and recovery.

I assume you have attempted to wipe/factory reset? If not try this first. You would next go to HTC and try to find the latest firmware update for your phone, if there is one download and flash this. If not see if a wwe pc10img.zip will work.

Also use the fast boot command I gave you to check which emmc you have
[G2 and Desire Z Q&A, Help & Troubleshooting] wasabi2000:
When I try to do a Factory Reset out of the Bootloader the Phone get stuck. And if i try to flash anything, i get the same Fail-Message as recovery.

fastboot oem check_emmc_mid:

<bootloader> Manufracturer ID, MID=15

<bootloader> eMMC should be samsung

OKAY

finished
[G2 and Desire Z Q&A, Help & Troubleshooting] demkantor:
... Not good signs, unfortunetly you are showing the symptoms of a fried emmc, and you have the one prone to faliure... Without an already root phone with security flags removed there may be nothing more we can do...

Try booting in safe mode

Try every pc10img you can find

Really there isn't much more avalible to you, but thanks to catheral there is the ability to run your os off sd card, but I don't believe this is possibly without a rooted phone, you could try, I believe there is a link to instructions somewhere in that brick thread

Good luck!
[G2 and Desire Z Q&A, Help & Troubleshooting] wasabi2000:
So i tried to boot in SafeMode but it also stuck at htc logo.

I forgot to mention something: When im in the Bootloader and go to Recovery and hold vol up button there is a logo which looks like a download (arrow down, points on the device). After a few seconds a failure appears "E:\ Cant mount".

Also i read in another post that the adb requires the original HTC-USB-Cable, but im using some Samsung from my galaxy s2 because i sont have the original cable. Could this be the problem with adb and the reason why my eMMC is samsung?
[G2 and Desire Z Q&A, Help & Troubleshooting] demkantor:
Those can't mount errors are just another sign of a bad chip but occasionaly just curropt partitions that can be reformatted. In your case its the bad chip

The warning of using htc cable is just to not use a shoty one, I never use htc cables as I don't believe I have one. If it works for fastboot it will work for adb.

Really I hate to be the barer of bad news but there is really nothing short of replacing the emmc that will fix your phone
[G2 and Desire Z Q&A, Help & Troubleshooting] wasabi2000:
Okay. Then this Thread could be closed. But really Thank You!: :/
[G2 and Desire Z Q&A, Help & Troubleshooting] wasabi2000:
And there is defenetly no way to root the phone with only Fastboot?
[G2 and Desire Z Q&A, Help & Troubleshooting] demkantor:
No proplem always willing to help when I can

Technically you can unlock the bootloader within fastboot to allow you to gain some flashing capabilities. If you google htc dev unlocked bootloader you will find instructions.

This may allow you to then flash a custom recovery and then boot from sdcard, not sure as the kernel may not work. But hey if you want to try it can't hurt anything! You won't be able to get true radio soff but it may be some life breathed back into the phone
[G2 and Desire Z Q&A, Help & Troubleshooting] wasabi2000:
I already tried this but when i try to write the cammnd fastboot oem get_identifier_token this is my reult:

...

<bootloader>[ERR] Command error !!!

OKAY

finished.
[Verizon Samsung Galaxy S 4] djrbliss:
The official support thread for the Loki bootloader hack is in the AT&T forum:

http://xdaforums.com/showthread.php?p=41751943#post41751943
[Verizon Samsung Galaxy S 4] garwynn:
(Edited - got my response)
[Verizon Samsung Galaxy S 4] klisp:
Yay!!! :beer:
[Verizon Samsung Galaxy S 4] yyhd:
Very nice.
[Verizon Samsung Galaxy S 4] gehzumteufel:
djrbliss, would this enable the flashing of a patched aboot? That way it achieves a similar setup like with the Verizon S3.
[Verizon Samsung Galaxy S 4] attn1:
this just seemed obvious. http://tau.shadowchild.nl/attn1/?p=483
[Verizon Samsung Galaxy S 4] yergo88:
are we ever gonna get an unlocked bootloader? I'm seriously considering just getting a new phone, its been almost two years :x Thanks!
[Verizon Samsung Galaxy S 4] Triscuit:
Get a new phone
[Verizon Samsung Galaxy S 4] yergo88:
Most likely gonna switch to AT&T or T-Mobile and get an S5 or maybe even an LG G2. I saw an LG G2 last night and it honestly blew me away, S4 was fun while it lasted :(
[Verizon Samsung Galaxy S 4] spirodave:
Yeah i understand the frustration with the locked boot loader.. No Aosp Roms is fine with me but no kernels sucks .. I should have researched a little more before buying this phone but i only paid $185 for it two months ago so its not a big deal . I can still sell for a profit it i decide to get a different phone...Might check out the g2 but will probably end up with GS5