Go Back   xda-developers > HTC Hermes: 8525, TyTN, MDA Vario II, JasJam > 8525, TyTN, MDA Vario II, JasJam Software Upgrading etc.


Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11th October 2006, 10:17 PM
Sleuth255's Avatar
Sleuth255 Sleuth255 is offline
Moderator
 
Join Date: Mar 2006
Posts: 3,432
Talking Cingular ROM users: PTT function hacked!

This little app replaces the Cingular PTT service and adds customizable launch capabilities back to that useless PTT button on your Cingular ROM equipped Hermes. This patch initially maps the PTT button to the built in Voice Dialer, but you can re-map the push as well as the hold functions to the application of your choice.

Version History

v1.07 09/20/07
Now compatible with the latest AT&T WM6 ROM!
v1.06 06/05/07
Now compatible with the latest AT&T AKU3.5 ROM!
Smartdialer issue fixed
Phone Settings lockup issue fixed
v1.05 02/26/07
Smartdialer functionality restored on AKU3.x ROMs.
v1.04 02/21/07
PTTFix now disables the built in PTTServiceWrapper on Cingular AKU3.x ROMs. Backward compatability with AKU2.x ROMs has been maintained. Warning: this version also disables smart dialing on aku3.x ROMs. Will be fixed in v1.05
v1.03 02/16/07
Bugfix: PTTFix now de-registers PTTServiceWndClass before attempting registration. This corrects a timing issue on the new AKU3.3 ROM where the Cingular built-in PTT subsystem was registering this at boot time.
v1.02 11/14/06
Most of the built-in features have been implemented. PTTFix now handles everything except <Left Softkey>, <Right Softkey> and <Context Menu>
v1.01 11/10/06
<Start Menu> feature implemented. Choosing this option for any button 5 setting in the button editor will now launch the start menu.
v1.0 11/03/06
ButtonPressLaunchValue and ButtonHoldLaunchValue registry settings have been de-implemented because....
Full integration with the existing button editor in personal settings->buttons (button 5 settings are back!) has been implemented. No need to use a registry editor to change settings any more
Enhancement 10/24/06
For all you brand new 8525 owners: the whole shebang is now a simple CAB based installation!
I also streamlined PTTStart.exe to run much faster. Before, you would see a blank window displayed momentarily while your device was starting. Now you cannot even tell when it runs.
Enhancement 10/23/06
I've attached a new zip file called PTTStart for early implementors who can't get the service to start automatically. Copy this file to your windows\startup directory and it will automatically start the PTTFix service whenever you soft reset!
bugfix 10/17/06
The ButtonHoldLaunchValue value would revert to "windows\\sddialer.exe" after a reset if the length of the ButtonPressLaunchValue string was shorter than the length of the ButtonHoldLaunchValue string..... Who'd have guessed it
v0.2
Added an additional Registry setting:
Pressing and holding the PTT button now launches the applicaton stored in HKLM\Services\PTT\ButtonHoldLaunchValue
If this value doesn't exist, it is created with an initial value of "windows\sddialer.exe" when the service is launched.
v0.1
Pressing the PTT button now launches the application stored in HKLM\Services\PTT\ButtonPressLaunchValue
If this value doesn't exist, it is created with an initial value of "windows\sddialer.exe" when the service is launched.

Thanks to all the early implementors here who helped me to work through the security issues and de-implement the "undocumented features"!

Installation Instructions

1. copy the attached PTTFix.cab to your Hermes device.
2. Using File manager, tap on the cab file to install PTTFix.
note: when asked, you must install this to your Device. The service dll will not load if installed to your storage card!
3. Reset your Hermes device
4. Use personal settings->Buttons to customize Button 5 settings if necessary.

Upgrade Instructions

1. Remove "Sleuth255's PTTFix" using Settings->System->Remove Programs (It may ask you to reset your device)
2. Install PTTFix by following the Installation Instructions above.

Microsoft Voice Command

In Button Manager, simply customize the preferred Button 5 setting (I like to set press&hold to this) by choosing "Voice Command" from the dropdown. Voice Command sets itself onto the Messaging button by default. If you don't change this first, the button manager will remind you that only one button can be set for a given function....

Enjoy!
Attached Files
File Type: cab PTTFix.CAB (44.9 KB, 14509 views)
__________________
AT&T Tilt 2
ROM: Stock AT&T derivative
Radio: v4.48.25.20

My apps/patches (click them!)
All: SIPChange , UC v2.0
Hermes: PTTFix, ATI ImageON Fix, v3.2 Sleuth
Kaiser: v3.0 Sleuth



Last edited by Sleuth255; 20th September 2007 at 06:35 PM.. Reason: Version 1.07 Released!
Reply With Quote
Sponsored Links

  #2  
Old 11th October 2006, 10:21 PM
fun_key's Avatar
fun_key fun_key is offline
Senior Member
 
Join Date: Sep 2006
Posts: 427
Default

Wow, very nice work!

I ll setup your fix right now; this is just marvelous
Reply With Quote

  #3  
Old 11th October 2006, 10:43 PM
lpsi2000's Avatar
lpsi2000 lpsi2000 is online now
Senior Member
 
Join Date: Jan 2004
Location: TriState
Posts: 1,278
Default

As always, nicely done Sleuth255
__________________
HTC Leo / AT&T Tilt 2/ HTC Fuze / HTC Advantage / I-Mate JasJam / JasJar / Pocket PC / XDA
Future Phones: Don't know yet
Network: AT&T
OS: WM 6.5.1
ROM version:230xx
ROM date:
Radio version: Stock
SPL-Hard SPL .85 Olinex
Security Unlocked (not yet)
Various WM6
Flashing with Vista Ultimate
Reply With Quote

  #4  
Old 11th October 2006, 10:58 PM
Sleuth255's Avatar
Sleuth255 Sleuth255 is offline
Moderator
 
Join Date: Mar 2006
Posts: 3,432
Default

ok, so I've completed the message map decode.

For developers, the PTT button event comes in with a message value of 0x312. When this message occurs, lParam is 0x1000 for the release event and something else for the press event. Essentially, my code in the message handler to trap a PTT press event is this:

Code:
LRESULT __stdcall KeyboardProc(HWND hWnd,UINT nCode,WPARAM wParam,LPARAM lParam)
{

	switch (nCode) 
    {
        case WM_COMMAND:
            break;
        case WM_CREATE:
            break;
        case WM_PAINT:
            break;
        case WM_DESTROY:
            PostQuitMessage(0);
            break;
        case WM_ACTIVATE:
            break;
        case WM_SETTINGCHANGE:
            break;
	case 0x312:
	     if (lParam != 0x1000)
                  CreateProcess(_T("\\windows\\sddialer.exe"),NULL,NULL,NULL,FALSE,0,NULL,NULL,&StartupInfo,&ProcessInfo);
	     break;
        default:
            return DefWindowProc(hWnd, nCode, wParam, lParam);
    }
    return DefWindowProc(hWnd, nCode, wParam, lParam);
}
Later on, when any bugs are ironed out (doubtful 'cause it compiled cleanly heheheh) and I have a few minutes, I'll pull the process-to-execute out of the registry and give everyone a little foreground app that lets you map whatever you want.
__________________
AT&T Tilt 2
ROM: Stock AT&T derivative
Radio: v4.48.25.20

My apps/patches (click them!)
All: SIPChange , UC v2.0
Hermes: PTTFix, ATI ImageON Fix, v3.2 Sleuth
Kaiser: v3.0 Sleuth



Last edited by Sleuth255; 11th October 2006 at 11:15 PM..
Reply With Quote

  #5  
Old 11th October 2006, 11:41 PM
lpsi2000's Avatar
lpsi2000 lpsi2000 is online now
Senior Member
 
Join Date: Jan 2004
Location: TriState
Posts: 1,278
Default

Excellent, we will be waiting for the little program.
__________________
HTC Leo / AT&T Tilt 2/ HTC Fuze / HTC Advantage / I-Mate JasJam / JasJar / Pocket PC / XDA
Future Phones: Don't know yet
Network: AT&T
OS: WM 6.5.1
ROM version:230xx
ROM date:
Radio version: Stock
SPL-Hard SPL .85 Olinex
Security Unlocked (not yet)
Various WM6
Flashing with Vista Ultimate
Reply With Quote

  #6  
Old 12th October 2006, 12:45 AM
markw996 markw996 is offline
Member
 
Join Date: Oct 2006
Posts: 32
Thumbs up

Sleuth255, Thankyou so much, it works perfectly!

You've just fixed my biggest headache with the 1.34 ROM upgrade
Reply With Quote

  #7  
Old 12th October 2006, 12:48 AM
ID64's Avatar
ID64 ID64 is offline
Senior Member
 
Join Date: Oct 2003
Posts: 611
Wink

Thanks a lot!

Is it possible to make another dll, but with MS VoiceDialer please?
Reply With Quote

  #8  
Old 12th October 2006, 12:54 AM
Sleuth255's Avatar
Sleuth255 Sleuth255 is offline
Moderator
 
Join Date: Mar 2006
Posts: 3,432
Default

sure. what's the full path executable name for MS Voicedialer?

I've gotta get this app I guess.... everybody raves about it.
__________________
AT&T Tilt 2
ROM: Stock AT&T derivative
Radio: v4.48.25.20

My apps/patches (click them!)
All: SIPChange , UC v2.0
Hermes: PTTFix, ATI ImageON Fix, v3.2 Sleuth
Kaiser: v3.0 Sleuth


Reply With Quote

  #9  
Old 12th October 2006, 01:10 AM
Sleuth255's Avatar
Sleuth255 Sleuth255 is offline
Moderator
 
Join Date: Mar 2006
Posts: 3,432
Default

Quote:
Originally Posted by markw996 View Post
Sleuth255, Thankyou so much, it works perfectly!

You've just fixed my biggest headache with the 1.34 ROM upgrade
Good to hear this... Now there's two. You're helping to prove out my theory that the fix will work on all 3 Cingular ROMS. What device do you have btw?
__________________
AT&T Tilt 2
ROM: Stock AT&T derivative
Radio: v4.48.25.20

My apps/patches (click them!)
All: SIPChange , UC v2.0
Hermes: PTTFix, ATI ImageON Fix, v3.2 Sleuth
Kaiser: v3.0 Sleuth


Reply With Quote

  #10  
Old 12th October 2006, 01:14 AM
ID64's Avatar
ID64 ID64 is offline
Senior Member
 
Join Date: Oct 2003
Posts: 611
Default

Quote:
Originally Posted by Sleuth255 View Post
sure. what's the full path executable name for MS Voicedialer?

I've gotta get this app I guess.... everybody raves about it.
Program Files\Voice Command\voicecmd.exe

Thanks!

Drop me a PM
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump


All times are GMT +1. The time now is 11:53 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.