Mike Szczys · May 24, 2013 at 12:00 am

Flash Custom ROM and Recovery to Samsung Galaxy S 4

After reading about Dan Rosenberg’s bootloader exploit for the Samsung Galaxy S 4, I figured it would not be long before someone would craft a package for loading custom ROMs. Of course, I shouldn’t be surprised that Dan is the one who figured it out.

You may know him better as XDA Recognized Developer Djrbliss. In his original thread, you’ll learn about the Loki package he put together to load custom recovery and ROM images into AT&T and Verizon variants of the GS4. The device must already be rooted, but he links to guides that can walk you through that as well.

There are a couple of caveats to the exploit. The first is that it will be very easy for the carriers to patch against it, so avoid OTA updates unless you know they don’t contain a patch. The second is that the Loki package is intended for developers, which means it’s not just a one-click operation. Having looked through the code repositories, it does look like a very straightforward set of command line operations, so don’t be scared off either.

The exploit side steps the signature check when the phone launches a ROM. Dan found it when looking at the phones aboot partition. Searching for some of the strings found in his disassembly, he discovered it’s nearly identical to the Little Kernel open source bootloader. This made it significantly easier to figure out how the boot process works. It turns out that the signature check function is written to memory during the boot process. His exploit overwrites this code to return a confirmation that the ROM is signed even though it is not.


_________
Want something on the XDA Portal? Send us a tip!

Mike Szczys

szczys is an editor on XDA-Developers, the largest community for Android users. View posts and articles below.

Mike Szczys is a professional musician but spends all his free time working with hobby electronics. As Contributing Editor for Hackaday.com he became interested in Android as some of the early hardware hacks started popping up on the Internet. What followed was a gradually rising addiction to all things Android.
Mathew Brack · Mar 6, 2015 at 01:24 pm · 1 comment

Kirin: A Processor the Western World Should Look Out For

Yesterday, we discussed the second part of our tech giants coming to the west series with Huawei. What people may not know, however, is that Huawei owns a company by the name of HiSilicon. Hisilicon's processor department may not be the most popular in the west but their technology is impressive, with year on year improvements being easily seen. In the coming years, manufacturers such as Qualcomm may have to face the fact that there are other companies just as able...

XDA NEWS
Emil Kako · Mar 6, 2015 at 12:00 pm · no comments

Best Bang-for-the-Buck Phone You Can Get Today?

There are many great Android handsets on the market today that are much cheaper than the flagships from the major players like Samsung and HTC. The OnePlus One and Nexus 5 are two great examples of high-end phones being offered at prices much cheaper than competitors. But there are phones in the mid-range that may offer even more bang for your buck. Let us know which smartphone deal you think has the best value.

DISCUSS
Mathew Brack · Mar 6, 2015 at 11:27 am · 2 comments

TapDeck Beta: Smart Wallpaper Discovery

TapDeck which has just entered beta, is a smart wallpaper app that allows you to change to a random wallpaper by simply double tapping your screen. After selecting images you like from a selection, your wallpapers will be chosen based on similar images from Flickr, Imgur, Reddit and Wikipedia. If you see one you like, simply swipe up and you will see information relevant to the image. After spending a day with this app it is clear that it is still...

XDA NEWS
Share This