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 · May 29, 2015 at 05:27 pm · 4 comments

Google No Longer Sending Calendar SMS Notifications

In a not entirely surprising move, Google announced that it's putting an end to SMS notifications for Google calendar as of June 27th. They stated earlier, "SMS notifications for Google Calendar launched before smartphones were available. Now in a world with smartphones and notifications, you can get richer, more reliable experience on your mobile device, even offline". Google Drive for Work, Google Apps for Work (paid edition), Education and Government customers will not be affected by these changes and can continue using...

XDA NEWS
Chris Gilliam · May 29, 2015 at 11:29 am · 4 comments

I/O Summary: Google Cardboard Virtual Reality

One year ago, Google introduced cardboard. Amazingly enough, that was all it took to fire up the Virtual Reality scene on Android, and what began as an open design concept exploded into thousands of apps and dozens of headsets from big and small vendors alike. Now, there are more than 1 million cardboard viewers/handsets - a Google-quoted number that might not even be accurate given the ease with which headsets can be rigged through off-the-shelf equipment. This year, cardboard returned...

XDA NEWS
Jimmy McGee · May 29, 2015 at 06:00 am · 4 comments

Android M Preview Images – XDA TV

Android M preview images are available. That and much more news is covered by Jordan when he reviews all the important stories from this week. Included in this week's news is the announcement of Google's Project Tango going on sale and be sure to check out the article talking about Google's Roboto font going open source. That's not all that's covered in today's video! Jordan talks about the other videos released this week on XDA TV. XDA TV Producer TK...

XDA NEWS
Share This