[JASJAR, XDA Exec, MDA Pro Software Upgrading] helmi_c:
hmm...

For porting this stack to other device U need to learn the device COM driver status, and the device Bluetooth type and port...

check the:

[HKEY_LOCAL_MACHINE\Drivers\Active]

and see what COM is occupied, and what COM is free.

then U need to modify as needed. and Also what ur BT com port Number and TYPE (BRF or COM or USB)

for example (HTC ARTEMIS, WIZARD):

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\HCILL]
[B]"Index"=dword:1[/B]
"name"="COM1:"
"Prefix"="BRF"

so U need to mod bellow registry to:

[HKEY_LOCAL_MACHINE\SOFTWARE\WIDCOMM\BTConfig\SerialTransport]
"Port"=dword:1
"Device"="BRF"

for Universal, APACHE

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial_BTUR]
"Prefix"="COM"
[B]"Index"=dword:7[/B]

so u need to modify:

[HKEY_LOCAL_MACHINE\SOFTWARE\WIDCOMM\BTConfig\SerialTransport]
"Port"=dword:7
"Device"="COM"

For prophet, XDAIIs

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial_BTUR]/[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Bluetooth]
"Prefix"="COM"
[B]"Index"=dword:4[/B]

so u need to modify:

[HKEY_LOCAL_MACHINE\SOFTWARE\WIDCOMM\BTConfig\SerialTransport]
"Port"=dword:4
"Device"="COM"

for bluetooth serial4 & serial5 after u consult ur device HKEY_LOCAL_MACHINE\Drivers\Active

u might need to modify some reg:

change both COM acording to ur device spesific/Free com port.

and also u might need to check this reg:

[HKEY_LOCAL_MACHINE\SOFTWARE\Widcomm\BtConfig\General]
"OriginalAudioDriver"="wavedev.dll"

if ur device wavedev driver is not wavedev.dll, change wavedev driver to ur original original wavedev driver name (dll) for example "OriginalAudioDriver"="pxa27x_wavedev.dll" for Asus525 device.

and lastly check the:

[HKEY_LOCAL_MACHINE\SOFTWARE\WIDCOMM\BTConfig\General]
"PowerControlLibrary"="LGBTPwrCtrl.dll"
"RadioInitPostLoadScript"="Init_Rom_v316.bts"

on some device u better use this configuration

[HKEY_LOCAL_MACHINE\SOFTWARE\WIDCOMM\BTConfig\General]
"PowerControlLibrary"="Auto"
"RadioInitPostLoadScript"="Auto"

or try other BTS file (include in setup CAB)

cos I dont think change:

[HKEY_LOCAL_MACHINE\SOFTWARE\WIDCOMM\BTConfig\SerialTransport]
"BaudRate"=dword:e1000

is neccesary if ur default BT speed is also E1000/921000, but u just need correct BTPower dll..

and about Routing audio to handsfree its device spesific, Some Use AudioGW.dll some Use PCM Routing, Some Use RILProxy, as u can see, the setup cab contain thoose 3 method (AudioGW.DLL, HTC_PCM_ROUTING.DLL,and BTRILProxy.dll) u just need to modify the reg to suite ur device need, cos I dont hv all that device, I just provide the file, so the setub cab should be ready to port to other device (with patch cab for other device?)... currently activated method is AudioGW cos Uni use audiogw method.

for BTRil method add thefolowing registry:

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\BtRilProxy]
"DeviceArrayIndex"=dword:00000001
"Dll"="BtRilProxy.dll"
"FriendlyName"="BT RIL Interface on BTR1:"
"Index"=dword:00000001
"Order"=dword:00000001
"Prefix"="BTR"

for PCM method add/change the following reg:

[HKEY_LOCAL_MACHINE\Software\WIDCOMM\Plugin\HandsFree]
"AudioSetupDll"="\\Windows\\HTC_PCM_Routing.dll"

and

[HKEY_LOCAL_MACHINE\SOFTWARE\Widcomm\BtConfig\General]
"PCMRouting"=dword:00000001

hopes that I didn't forget something...:)