Project Ara Smartphone Will Run Modified Android L with Hot Swapping

Project Ara is a very exciting topic–both for hardware and … more

Streamline Android Theme Customization with Graphic Porter

I dont have a custom theme on my Android phone, and the reason for this is because … more

Boost the Brightness of Your Sony Xperia Z1’s LED

I think the last time anyone has ever used a physical torch to find their earphones, … more

XDA Xposed Tuesday: Modify the Look of Your Volume Control – XDA TV

How many screenshots have you seen with a volume status bar in the … more
Post Reply

Cingular ROM users: PTT function hacked!

11th October 2006, 09:17 PM   |  #1  
Sleuth255's Avatar
OP Retired Senior Moderator
Flag Milwaukee
Thanks Meter: 39
 
3,543 posts
Join Date:Joined: Mar 2006
More
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 - [Click for QR Code] (44.9 KB, 14907 views)
Last edited by Sleuth255; 20th September 2007 at 05:35 PM. Reason: Version 1.07 Released!
11th October 2006, 09:21 PM   |  #2  
fun_key's Avatar
Senior Member
Thanks Meter: 0
 
442 posts
Join Date:Joined: Sep 2006
More
Wow, very nice work!

I ll setup your fix right now; this is just marvelous
11th October 2006, 09:43 PM   |  #3  
lpsi2000's Avatar
Senior Member
Flag TriState
Thanks Meter: 143
 
2,435 posts
Join Date:Joined: Jan 2004
More
As always, nicely done Sleuth255
11th October 2006, 09:58 PM   |  #4  
Sleuth255's Avatar
OP Retired Senior Moderator
Flag Milwaukee
Thanks Meter: 39
 
3,543 posts
Join Date:Joined: Mar 2006
More
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.
Last edited by Sleuth255; 11th October 2006 at 10:15 PM.
11th October 2006, 10:41 PM   |  #5  
lpsi2000's Avatar
Senior Member
Flag TriState
Thanks Meter: 143
 
2,435 posts
Join Date:Joined: Jan 2004
More
Excellent, we will be waiting for the little program.
11th October 2006, 11:45 PM   |  #6  
Member
Thanks Meter: 0
 
32 posts
Join Date:Joined: Oct 2006
More
Thumbs up
Sleuth255, Thankyou so much, it works perfectly!

You've just fixed my biggest headache with the 1.34 ROM upgrade
11th October 2006, 11:48 PM   |  #7  
ID64's Avatar
Senior Member
Thanks Meter: 2
 
611 posts
Join Date:Joined: Oct 2003
Wink
Thanks a lot!

Is it possible to make another dll, but with MS VoiceDialer please?
11th October 2006, 11:54 PM   |  #8  
Sleuth255's Avatar
OP Retired Senior Moderator
Flag Milwaukee
Thanks Meter: 39
 
3,543 posts
Join Date:Joined: Mar 2006
More
sure. what's the full path executable name for MS Voicedialer?

I've gotta get this app I guess.... everybody raves about it.
12th October 2006, 12:10 AM   |  #9  
Sleuth255's Avatar
OP Retired Senior Moderator
Flag Milwaukee
Thanks Meter: 39
 
3,543 posts
Join Date:Joined: Mar 2006
More
Quote:
Originally Posted by markw996

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?
12th October 2006, 12:14 AM   |  #10  
ID64's Avatar
Senior Member
Thanks Meter: 2
 
611 posts
Join Date:Joined: Oct 2003
Quote:
Originally Posted by Sleuth255

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

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes