azrienoch · Aug 25, 2011 at 09:30 am

A Tribute to the HTC HD2 – Part One

The HTC HD2 is the most developed device in the history of XDA-Developers.  Over 1 million posts on more than 45 thousand threads across 17 sub-forums covering five operating systems, the HD2 remains in the top 25 most active devices on XDA almost two years after its release. Its success spoke to all manufacturers about what a smartphone should be like.

I sat down with a friend’s HD2 to hear its story.  I asked about where it came from, the struggles it faced growing up in a Tawainese factory, and how it overcame those struggles to become such a smart phone.  The HD2 blankly stared at me a moment, then said my friend received a new text message from his mother.  No help there.  So, I decided to get the HTC HD2’s story from its developers.

XDA member Cotulla first heard rumors about the HTC “Leo”  around mid-2009.  “Back then, nothing was known except its 4.3-inch screen with a [Qualcomm Snapdragon] 8250.”  Its unprecedented specifications caught XDA member DarkStone1337‘s eye, too.  “My previous phones were other Windows Mobile-based phones such as the HTC Touch Diamond and the HTC Touch HD, which was infuriatingly slow, and several Nokia handsets. This was a fast phone with good looks that could compete with the iPhone [3GS]. The big screen screamed COOL to me.”

The first iteration of the HD2 was loaded with 512 MB of ROM storage and it was released in Europe around November 2009. A few months later, a version with 1024 MB of ROM arrived for T-Mobile US (TMOUS) in March 2010.  Suppliers couldn’t keep up with the demand.  Sprint saw the movement of supplies and jumped on the opportunity, leaking specs of the HTC EVO 4G before T-Mobile made the HD2 available in the US.  That’s when I (azrienoch) started looking around for ways to put Android on the HD2.  The first step toward that meant developing a new SPL.

“The idea of developing HSPL for the LEO first came to us around 11 October 2009.  We thought it would be so easy,” said Cotulla.  It was actually very hard, “because HTC added additional protection to the LEO.”

XDA Recognized Developer dcordes described that “additional protection” to me.  “The actual difficulty about making Linux run on the HD2 was a tiny ‘switch’ in the device that will change how the CPU acts. This must be set during bootup. Else no go for ARM Linux.  The difficult and long process of analyzing this ‘crash problem’ by narrowing down all sources of error is logged in mailing list (ML) archives.”

The first hurdle was getting the screen to tell the developers anything at all, as dcordes explained, “The only way to interact with the device when there is no debug bridge like ADB or USBnet is reading from the display.”

Cotulla commented, “We almost lost bepe’s device once.  We restored it two days later.  Also, I created a special SPL emulator which allows testing our HSPL installer on a PC for a deep look inside.”

“After the initial SSPL & HSPL releases, we released several new HSPL versions, including HSPL for LEO1024. The main issue there was that LEO1.XX ROMs won’t support flashing to the internal memory.  Flashing ROMs or HSPL makes it soft brick.  So a special HSPL version was created to protect users from mistakes.”

Meanwhile, Darkstone1337 bought the device, wanting to develop apps for Windows Mobile, and soon after discovered Microsoft’s plans for Windows Phone 7.  “It would of had been a wasted effort. So I stuck with the phone and began flashing all sorts of custom ROMs and installed all kinds of programs to occupy my time all the while keeping in mind that developers were working on booting Linux on the HD2.”

”Then we saw mPlayer run on the HD2.  I remember dcordes uploading a proof-of-concept build with a video of a rocket launching in 720p.”

So, developers began work on a Linux kernel flash using HSPL.  They gathered together on dcordes’ #htc-linux IRC channel.  “Weeks passed with lots of effort by many and the problem persisted. We really tried to not overlook anything.  We even compared the different QSD8250 chips out there for different revisions by looking at the prints on the chips.”

Frustrated and out of ideas, dcordes led the team to Linux-Arm-MSM and found help.  “The lead developer Daniel Walker kindly helped us to narrow down the problem.”

“With all the analysis information at hand, the situation well described on the mailing lists, and all developer information easily available,” says dcordes, “it was about time that somebody would look at all this with a fresh thought. Cotulla was that guy and he came up with the brilliant bit to solve this.”

Cotulla says, “After looking at the SPL of HTC Desire and few other devices, I was able to find a fix for the kernel.  And android development begins.  Actually, [Android‘s early development on the HD2] was done by several people, like me, Markinus, LeTama, and others.”  Such as cr2 and XDA Recognized Developer NetRipper.  “Of course, a lot of people contributed by testing, etc.  I did the touchscreen driver and sound driver in a few weeks.”

“One memorable bug,” Darkstone1337 says, “was the Android OS running at hyper-speed, causing the phone to hang.”  This is when he hopped on-board.  “I guess my aim at the time was to try and stabilize the build so that it could run longer without crashing.  I managed to do this by tweaking some configuration in Android and uploaded a build that didn’t crash nearly as much as the first proof-of-concept. From there I kept playing with Android to see what I could do.”

And we will see, in the upcoming second part of this article, how operating systems build a stable home first on the SD card and then in the HD2’s NAND memory.  Thanks to Cotulla, dcordes, and Darkstone1337 for telling us your stories, and of course all of the developers and testers that made the HD2’s story what it is.


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

azrienoch

azrienoch is an editor on XDA-Developers, the largest community for Android users. View azrienoch's posts and articles here.
Eric Hulse · Jul 7, 2015 at 05:59 pm · 2 comments

T-Mobile Galaxy S6 Battery Woes

I've been using a T-Mobile Galaxy S6 since the device launched with T-mobile's service. However, over this past holiday weekend I knew I would be in an area without reliable T-Mobile service. So, I opened up T-Mobile's default "Device Unlock" app , pressed unlock, and placed my AT&T SIM card in the device. Everything seemed to be working fine: strong signal, great LTE, good voice calls - until day 3. On Sunday, my Galaxy S6 felt very hot to the touch and...

XDA NEWS
Brian Young · Jul 7, 2015 at 12:26 pm · 3 comments

Earthquake Early Warning in Your Pocket

Probably all of us reading this have a smartphone in our pocket. For many of us, the smartphone has become our primary method of reading and writing e-mails, messaging, and browsing the web. Though proclamations that "smartphones have replaced the personal computer" typically fall on deaf ears, the statements aren't without merit. Indeed, smartphones have "replaced"—or more accurately, "displaced"—PC's in several areas that they have traditionally been dominant. But how many of you look into your pocket, or on your desk, and...

XDA NEWS
Aamir Siddiqui · Jul 7, 2015 at 10:39 am · 2 comments

Sony: The OEM You Want To Save

In our recent Discuss article, we asked you readers on which OEM you would like to help. While the answers we received were varied, a lot of these responses and top comments stood out for helping one OEM: Sony. Some excerpts from our discussion are as below: And many more follow suit. Needless to say, many believe that Sony Mobile as a company is great and is worth saving. And all of these would be happy to hear that Sony will...

XDA NEWS
Share This