PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > WM HTC Devices > HTC Apache > HTC Apache Development
Register Community Search

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-12-2007, 11:06 PM
luv2chill's Avatar
Retired Staff
Offline
Pocket PC: Apache (PPC6700); Titan (Mogul)
Carrier: Sprint
Location: Lawrence, KS
 
Join Date: Nov 2006
Posts: 1,524
Reputation: 143
luv2chill is keeping up the good workluv2chill is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via ICQ to luv2chill Send a message via AIM to luv2chill Send a message via MSN to luv2chill Send a message via Yahoo to luv2chill Send a message via Skype™ to luv2chill
Sprint Users: Want a working Picture Mail site? Here you go! WM6 ONLY

OK guys I can take credit for this one--I spent a long time trying to figure out why Picture Mail broke on the Apache beginning with AKU3. I'm happy to report that the problem is solved for WM6 users. Read on for the details or if you just want the hack scroll down to the end.

Background

The reason this whole problem happened on the Apache is that the User Agent String changed. That is a small text blurb that gets sent to every site you visit that basically tries to tell the web site what kind of web browser and device is being used. Web servers use that information for many reasons, but one use is to send different "views" of the same information to different users depending on what kind of device they're using to view it.

That is exactly what Sprint does for their Picture Mail web site. The problem is that they use very specific rules about which UA Strings get sent to the WAP Picture Mail site (which is the one that works on our devices). If your UA String doesn't match exactly one of the ones they've programmed in then you get sent to the desktop version of the site--which doesn't work in PIE at all, as you no doubt know. Sprint programmed in the UA Strings that match with all of their devices in the their default configuration, but when you updated your ROM to WM5 AKU3 or to WM6 (which are not configurations Sprint offered nor supports) then your UA String no longer matched and you got sent to the default desktop site.

In versions of WM5 prior to AKU3 you'd always been able to modify the user agent string in the registry. However, Microsoft in AKU3 decided to hard-code a specific UA String and did not allow it to be changed--only appended to. So that's why, despite peoples' best efforts, you had to resort to using a 3rd party browser in order to get the WAP site. And I'm sorry to say that that is still the case--if you stick with WM5 you can't use this solution--it will have no effect.

However, in doing some research I found that Microsoft, in response to many complaints about the UA String restrictions in WM5, added the ability to prepend information to the UA String beginning with WM6. You still can't totally get rid of what is hard-coded into browser.dll, but you can put anything you want in front of it--which is what is going to help us solve this picture mail problem once and for all.

The Mogul (6800) by Sprint also had its default UA String hard-coded into Sprint's servers to get sent the WAP version of the Picture Mail site. So what I did was obtain the entire UA String from the Mogul and add it into this new prepend reg entry on the Apache. As a result, the Apache sends two UA Strings--the entire mogul UA String first (which is enough for Sprint's Picture Mail site to recognize it as a mogul and therefore send the WAP site) and then it sends the version hard-coded into the Apache.

Caveats? Well it's possible there are web sites you visit that don't like getting two UA Strings--but in the testing I have done I haven't seen any problems. So at this point I think it's reasonable to put this out there. Remember that your device's actual UA string is never removed or overwritten, so if this causes problems for some of your "must-visit" sites, then you can simply remove the reg entry (or uninstall the cab, depending on what method you use to install it) and you're back to normal.

Note that this hack will also be necessary for moguls that get flashed with custom ROMs (using newer AKUs of WM6). You can go to www.useragentstring.com using PIE on your device to see what its current UA String is--then compare it to this one. If it doesn't match exactly then you'll need this hack in order to view Sprint's picture mail site successfully using PIE.

The Hack

For those of you who are comfortable editing your own registry, then here is what you need to add. I suggest copying and pasting it into a .reg file and importing it directly onto your device so you can be absolutely sure it's entered exactly as written.

Code:
;Allow Sprint Picturemail site to work in WM6 (Makes PIE report as a PPC6800/Mogul)
[HKEY_LOCAL_MACHINE\Security\Internet Explorer\User Agent]
"CustomBase"="Mozilla/4.0 (compatible; MSIE 6.0; Windows CE; IEMobile 6.12) Sprint:PPC6800"
If you'd rather not go through all that hassle then just download and install the cab file I've created and attached to this post (unzip it first). If PIE is open at the time you should close it and reopen it (or soft reset to be sure). Then try and open a picture mail link. It should work!

If it does not, please go to www.useragentstring.com using PIE on your device, copy and paste the string it shows you into a message in this thread and we'll figure it out. I really don't expect many problems at all--this is pretty straightforward.

Enjoy! One more long-running bug squashed.
Attached Files
File Type: zip Sprint PictureMail Site Hack.cab.zip (686 Bytes, 2049 views) Click for barcode!

Last edited by luv2chill; 10-12-2007 at 11:11 PM.
Reply With Quote
This post has been thanked 2 times.
  #2 (permalink)  
Old 10-12-2007, 11:26 PM
Trident's Avatar
The Source of Power
Offline
Pocket PC: EVO4G & EPIC4g
Carrier: Sprint
Location: Disney World
 
Join Date: Aug 2006
Posts: 2,337
Reputation: 1485
Trident is halfway to VIP status based on repTrident is halfway to VIP status based on repTrident is halfway to VIP status based on repTrident is halfway to VIP status based on repTrident is halfway to VIP status based on repTrident is halfway to VIP status based on repTrident is halfway to VIP status based on repTrident is halfway to VIP status based on repTrident is halfway to VIP status based on repTrident is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via Skype™ to Trident
You da man.
This was a frustrating thing.
It never worked well for me, even when I had the OEM WM5 ROM installed.
I'll be installing this tonight to give it a try.
__________________
The only way of discovering the limits of the possible is to venture a little way past them into the impossible.
Any sufficiently advanced technology is indistinguishable from magic.


Reply With Quote
  #3 (permalink)  
Old 10-13-2007, 01:13 AM
zizo72's Avatar
PPCGeeks Regular
Offline
Pocket PC: Touch Pro 2
Carrier: Sprint
Location: Denver, CO, US
 
Join Date: Nov 2006
Posts: 201
Reputation: 35
zizo72 is just getting started
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
luv2cill how do I LOG TO MIRC? WHAT SERVER?
Reply With Quote
  #4 (permalink)  
Old 10-13-2007, 10:31 PM
varaff's Avatar
Regular 'Geeker
Offline
Pocket PC: HTC EVO 4G
Carrier: Sprint
Location: Washington DC
 
Join Date: Feb 2007
Posts: 365
Reputation: 130
varaff is keeping up the good workvaraff is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via Yahoo to varaff
Oooh Crap!!! you are the man!!!
Thanks Luv2chil....

Last edited by varaff; 10-14-2007 at 08:38 PM.
Reply With Quote
  #5 (permalink)  
Old 10-13-2007, 11:27 PM
KINYA's Avatar
PPCGeeks Regular
Offline
Pocket PC: Evo
Carrier: sprint
Location: nashville
 
Join Date: May 2006
Posts: 115
Reputation: 10
KINYA is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via Skype™ to KINYA
I don't see the cab file how do I edit the registry
Reply With Quote
  #6 (permalink)  
Old 10-14-2007, 10:15 AM
omegax's Avatar
Halfway to VIP Status
Offline
Pocket PC: HTC Hero
Carrier: Sprint
 
Join Date: Dec 2006
Posts: 544
Reputation: 193
omegax is keeping up the good workomegax is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quote:
Originally Posted by KINYA View Post
I don't see the cab file how do I edit the registry
first of all you have to be logged in to see the files. Just download the zip and extract. good luck!
Reply With Quote
  #7 (permalink)  
Old 10-14-2007, 11:18 AM
scotbotmosh's Avatar
Banned User
Offline
Pocket PC: 6800 (Mogul)
Carrier: Sprint
Location: Milwaukee
 
Join Date: Aug 2007
Posts: 346
Reputation: 2
scotbotmosh is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via AIM to scotbotmosh
Sweet, can't wait, this has been chapping my hide for a while now.
Reply With Quote
  #8 (permalink)  
Old 10-14-2007, 10:25 PM
nkawal's Avatar
PPCGeeks Regular
Offline
Pocket PC: EVO 4G
Carrier: Sprint
 
Join Date: Jul 2007
Posts: 175
Reputation: 50
nkawal is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
I Bow before you my friend...........It Finally Works
Reply With Quote
  #9 (permalink)  
Old 10-15-2007, 02:59 PM
Tomn8tr's Avatar
Lurker
Offline
Pocket PC: PPC 6700
Carrier: SprintPCS
Location: NE Ohio
 
Join Date: Aug 2007
Posts: 21
Reputation: 5
Tomn8tr is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Wow, it works! Great stuff!

Thanks Luv2Chill - This was one of those damn annoying things. That description of what caused this problem makes a lot of sense.

Just pulled ina picture mail- ahhhh, just like the good ole days!

Tomn8tr
Reply With Quote
  #10 (permalink)  
Old 10-15-2007, 05:00 PM
takmsdsm's Avatar
Regular 'Geeker
Offline
Pocket PC: HTC touch pro
Carrier: Sprint
 
Join Date: Oct 2006
Posts: 302
Reputation: 110
takmsdsm is keeping up the good worktakmsdsm is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via ICQ to takmsdsm Send a message via AIM to takmsdsm Send a message via MSN to takmsdsm Send a message via Yahoo to takmsdsm
NICE! good job
Reply With Quote
Reply

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Apache > HTC Apache Development


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 03:47 AM.


Powered by vBulletin® ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com