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. 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. View szczys's posts and articles here.
Mathew Brack · Jul 3, 2015 at 12:00 pm · 2 comments

The Atlas of XDA

A few weeks ago, we asked you "How Does Your Location Affect Your Life As A Power User?". In the days that followed, members from all over the world shared their stories and experiences of life across the globe. Allow me to introduce the true story of what it means to be a power user on this pale blue dot.   Index Africa & Oceania: Australia, Indonesia, Libya, Madagascar, New Zealand, Nigeria, South Africa, Americas: Brazil, Chile, Columbia, Costa Rica, Guatemala, Martinique, United...

XDA NEWS
Mario Tomás Serrafero · Jul 3, 2015 at 11:10 am · 3 comments

New Snapdragons: Some Context & Contrast

It hasn’t been a good year for Qualcomm so far. Every device featuring the Snapdragon 810 has had a less-than-stellar fate, be it because of overheating complaints or actual decreased sales. HTC is in a particularly worrisome situation, and Sony’s Z4 is slipping down Japanese charts just over a week after its release. The G Flex 2, Mi Note Pro and Z3+ all saw complaints as well. Even MediaTek is seemingly getting an advantage over this.   But a particularly...

XDA NEWS
Aamir Siddiqui · Jul 3, 2015 at 10:12 am · 1 comment

Google To Launch Next Gen Android One On July 14

The first gen of Android One devices to be launched in India in September 2014 were decent starter smartphones, featuring budget specs and a promise of fast updates. However, the phones did not pick up as big a response as Google hoped. Now, as per a report by The Economic Times, it appears that Google is rethinking their strategy towards Android One in India. The first gen Android One devices focused on first time smartphone users, but were flawed in...

XDA NEWS
Share This