HTC Debug Tools - Networking

Hi guys.
I stumbled upon this fantastic website which has already help me to understand my windows mobile 6 device.
However i have noticed that in the program list there is a folder named - HTC Debug Tools. Within this folder is a program named - QxdmSdLog.
Now i know that QxdmSdLog is a logging tool. I want to know how this tool can be activated so i can log the workings of the device. I know that the QxdmSdLog program states to have the Radio Flags in the Debug Tool program set to 4xx. Does anyone know what 4xx means???
If only i could get the logs through QxdmSdLog!!
Any help would be greatly appreciated please.
Thanks in advance.
bashme

I am interesting. How to get the HTC debug tools?

1. Run Debug Tool
2. Set [5]Debug flags to '5'
3. Set [8]Radio Flags to '405'
4. Reset device
You'll see \HtcLog folder with a text file inside. Actually this file should appear on SD card but looks like it depends on the phone. I have XPeria X1

Related

USB Drivers for Vista

Hi
As explained here:
http://wiki.xda-developers.com/index.php?pagename=BA_USBModem
The driver won't load under Vista with an error "can't find specified file", it looks like the usbser.sys file is missing in Vista.
Has anyone succeeded in getting the TyTN working as a USB modem?
With HSDPA speed, bluetooth isn't fast enough
Maximum speed I've been able to achieve over bluetooth is about 400kbit/s while over USB I can easily get over 1.1Mbit/s
I got it to work in Beta 2 & RC1 but since RC2 I get the same error
I have the same error.
It worked in Beta 2 and RC1 OK, but not in RC2. The error is 'can't find specified file' as noted above.
No one found a solution yet ???
kittiyut said:
No one found a solution yet ???
Click to expand...
Click to collapse
I'm having the same problem after doing a fresh install of build 5744. I had it working on the system before - upgraded from RC1 to 5744, so evidently there is something missing in 5744 that breaks this if installed from scratch.
/POL
here is the same error in 5840, i will wait until RTM version to test it again
guys have you tried installing it while logged in as the 'Administrator' not a different username just added to the Administrators group because as you all know applications being installed are run as standard 'User' privlages until installed by the default 'Administrator' account.
try that and let me know...
Got it working for Vista RC2
You have to first read http://support.microsoft.com/kb/837637 and change your driver INF file accordingly. I have a version of the P2K driver file that recognizes the motorola V360 which I'm attaching for ilustration purposes.
Hope this helps...
Working on Vista RC2 Build 5744
Thanks for that. It's now working in my version of Vista (this post is written whilst using the USB connection).
I used the files attached which I tweaked thanks to xargons17's note.
My tweaks included changing the following so I could check the correct driver was being installed:
[Strings]
PROV = "HTC"
USB\Vid_045E&Pid_0079.DeviceDesc = "RAV Hermes WM5 USB Modem"
USBFilterString ="RAV Hermes WM5 Modem Driver"
and it involved changing the following reference (commenting out usbser.sys,,,0x20):
[UsbModemFiles]
;usbser.sys,,,0x20
;
; Explicitly states the usbser.sys should not be taken from the CD/Disk
;
When installing always choose 'Let Me Pick From A List of Device Drivers On My Computer' option. And choose 'Have Disk' to navigate to the attached .inf file. The device being installed should be the 'RAV Hermes WM5 Modem Driver' or whatever you decide to call it in the [Strings] section. I changed the strings name so I could be certain I was selecting the correct driver/device.
This assumes that the file usbser.sys has been copied to c:\windows\system32 folder as this is hardcoded in the usbmdm.inf file attached. Make sure you have the usbser.sys in that folder before attempting to install.
Hope that's helpful to somebody else.
USB Modem
I had the same problem and ended up buying PDANet which works great! www.junefabrics.com/palmnet/
rav your download is corrupt!!! i am having problems installing the file. not working in vista....
file not working
I tried downloading that file that you had already modded but it was a corrupt zip file. please repack!
another file
I created my own file and works fine on Vista RTM, This file assumes that the usbser.sys is under c:\windows\system32
Here are the files again.
rav said:
Here are the files again.
Click to expand...
Click to collapse
Still seems corrupt.
I've just checked from another PC and can download and open the zip file fine. Have others downloaded successfully?
rav said:
Thanks for that. It's now working in my version of Vista (this post is written whilst using the USB connection).
I used the files attached which I tweaked thanks to xargons17's note.
My tweaks included changing the following so I could check the correct driver was being installed:
[Strings]
PROV = "HTC"
USB\Vid_045E&Pid_0079.DeviceDesc = "RAV Hermes WM5 USB Modem"
USBFilterString ="RAV Hermes WM5 Modem Driver"
and it involved changing the following reference (commenting out usbser.sys,,,0x20):
[UsbModemFiles]
;usbser.sys,,,0x20
;
; Explicitly states the usbser.sys should not be taken from the CD/Disk
;
When installing always choose 'Let Me Pick From A List of Device Drivers On My Computer' option. And choose 'Have Disk' to navigate to the attached .inf file. The device being installed should be the 'RAV Hermes WM5 Modem Driver' or whatever you decide to call it in the [Strings] section. I changed the strings name so I could be certain I was selecting the correct driver/device.
This assumes that the file usbser.sys has been copied to c:\windows\system32 folder as this is hardcoded in the usbmdm.inf file attached. Make sure you have the usbser.sys in that folder before attempting to install.
Hope that's helpful to somebody else.
Click to expand...
Click to collapse
I don't get the 'Let Me Pick From A List of Device Drivers On My Computer' option. Windows automatically install the default driver. Even if I uninstall the default driver it still intalls it with out giving me the oprion to pick.
Vista USB driver problem
I am also having trouble with Vista USB driver & usbser.sys.
Can anyone please advise on modifying my .inf file?
; Windows USB SID Setup File
; Copyright (c) 2000 Microsoft Corporation
; Copyright (C) 2005 Plescon Ltd
[Version]
Signature="$CHICAGO$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%MCHP%
LayoutFile=layout.inf
DriverVer=08/17/2001,5.1.2600.0
[Manufacturer]
%MFGNAME%=DeviceList
[DestinationDirs]
DefaultDestDir=12
[DeviceList]
%DESCRIPTION%=DriverInstall, USB\VID_ffff&PID_32a3
;------------------------------------------------------------------------------
; Windows 2000/XP Sections
;------------------------------------------------------------------------------
[DriverInstall]
CopyFiles=DriverCopyFiles
AddReg=DriverInstall.AddReg
[DriverCopyFiles]
usbser.sys
[DriverInstall.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,"usbser.sys"
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
[DriverInstall.HW]
AddReg = DriverInstall.AddRegHW
[DriverInstall.AddRegHW]
HKR,,PortName,0x00000020,"COM4"
[DriverInstall.Services]
AddService=psp_usbser, 0x00000002, DriverService
[DriverService]
DisplayName=%SERVICE%
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\usbser.sys
;------------------------------------------------------------------------------
; String Definitions
;------------------------------------------------------------------------------
[Strings]
MCHP="Plescon Ltd"
MFGNAME="Plescon Ltd"
DESCRIPTION="USB SID"
SERVICE="USB Scanner Controller"
Easy as ABC to resolve Vista USB problem..
Hi guys, I have been having lots of prblem with USB devices ( pen drive, USB portable HDD, IDE-USB HDD, USB MODEM, PDAs etc.. ) but I have found a simple way to resolve all my problem then going thru different ways to resolve issues caused by different devices..
Please read below:
Special Thanks to: http://teknobabble.wordpress.com/20...ems-installing-a-usb-media-reader-a-solution/
Problem:
•In C:\Windows\System32\DriverStore\FileRepository I had two folders named “usbstor.inf” but each one had a different set of numbers attached to the end of the folder name. <- could this be where part of the problem lies?
•When I looked in my C:\Windows\inf folder I discovered the usbstor.inf and usb stor.pnf files were missing <- this definitely had to be an issue.
Once I discovered these anomalies, I proceeded to copy the pnf and inf files from the most recently updated usbstor.inf folder to C:\Windows\inf. I then went back to the update driver wizard, pointed to the inf folder and what do you know but they all started working again.
So with some scepticism I tried this approach and it worked.
I have also attached a ZIP(.doc) file with screen shot for easier reference.
Hope this helps everyone....
Apology for the late reply.
I attached more files to share.
-=SAVE THE WORLD=-
Hi!
I followed all hints, but it doesn't work. The driver can not be installed says Vista. Files are placed in the correct folders.
HTC has release a zip with the drivers, but i can't find it on the web, does anyone have it and could post it?
Thanks
Wonko

HTC Debug Tools

Hi guys.
I stumbled upon this fantastic website which has already help me to understand my windows mobile 6 device.
However i have noticed that in the program list there is a folder named - HTC Debug Tools. Within this folder is a program named - QxdmSdLog.
Now i know that QxdmSdLog is a logging tool. I want to know how this tool can be activated so i can log the workings of the device. I know that the QxdmSdLog program states to have the Radio Flags in the Debug Tool program set to 4xx. Does anyone know what 4xx means???
If only i could get the logs through QxdmSdLog!!
Any help would be greatly appreciated please.
Thanks in advance.
bashme

ESNkit by tatotato for 6700/Apache: change ESN, NAM, SPC, etc.

For about a year I have looked for a way to read and write NAM data from HTC CDMA phones.
Today I finished my search and have put together a kit for doing the above stuff, at least for the Apache/6700. It includes all the drivers and a very nice program to hack around with your phone (CDMA Workshop).
You guys have helped me out SO much in the past, so I'd like to give something back.
So without further ado, here are the instructions.
1. Remove all drivers from previous attempts to get it working (if any) then download the attachment and uncompress to an empty folder.
2. In ActiveSync, go File -> Connection Settings and uncheck the box labelled "Allow USB connections".
3. On your phone, go Start -> Programs -> File Explorer and browse to the Windows folder.
4. Scroll down until you find a program called DMrouter. Open it and click start.
5. Plug your Apache into cradle/cable.
6. The add new hardware wizard will come up. Do not allow it to connect to windows update. Click next and select "Install the drivers from a specific location" and browse to the drivers folder inside wherever you put the ESNkit.
7. If all goes well, another add new hardware wizard will come up. Repeat the exact same process as step 6.
8. On your computer, go Start -> Control Panel -> System -> Device Manager -> View -> Devices by Connection. Then play around until you see under a USB Root hub a USB composite device with two devices in its sub-tree. One of them will have a COM port number e.g. COM6. Write this down.
9. Go into the ESNkit folder and run cdma_wshop_loader. The password is ogmisthebest
10. CDMA workshop should load. Select port you wrote down e.g. COM6, click Connect, click Read, and you're in!
How to read SPC (Greetz to rafaelc, this is for you )
After step 10, go to the Security tab, and under the SPC section, select Universal, EFS Method in the listbox.
Click read.
Click OK in the dialog.
There will be a dialog pop up with a whole lot of dots and numbers. The first 6 Numbers after the dots end are your SPC.
If you want to change NAM data with this SPC, type it into the box and click SPC then click Send and go to the NAM tab, click read, and hack away!
How to change ESN (Proof of concept , changing to an actual ESN is illegal pretty much everywhere)
After step 10, go to the Security tab, and under the ESN section, select Universal, EFS Method in the listbox.
MAKE SURE YOU WRITE DOWN YOUR CURRENT ESN JUST IN CASE.
Click Read.
It will show your ESN!
To change, type in your new ESN and click write.
Done!
Have fun guys!!
http://clickapic.com/file/3556/esnkit-zip.html
Here is the link - with correct drivers this time!
http://www.mediafire.com/?llpenydz90l
oh and greetz to helmi_c!
You are THE MAN helmi. Without you I would have no motivation to hack around with my phone.
RS Mirror: http://rapidshare.com/files/101115120/esnkit.rar
thanks man.
Lvballer06 said:
RS Mirror: http://rapidshare.com/files/101115120/esnkit.rar
Click to expand...
Click to collapse
no drivers cdma in folder,
My silly old mistake - look for version with correct drivers above.
to program nam help
Good Friend I am of Venezuela and have a problem with my apache ppc6700 want to change minlock to him and have intetado me many form and I have not been able agradeco that can help me
file has a backdoor trojan
Confirmed
charlesnett said:
file has a backdoor trojan
Click to expand...
Click to collapse
Avast found it too!
There is no backdoor trojan, I suspect Avast may be picking up the loader for the program as a trojan. Avast is a hypochondriac program that sucks anyway
My NOD32 doesn't pick up anything.
My currently updated NOD32 AV shows :
http://rs342tg2.rapidshare.com/files/101115120/91242/esnkit.rar
multiple threats connection terminated - quarantined Threat was detected upon access to web by the application: C:\Program Files\Mozilla Firefox\firefox.exe.
http://rs342tg2.rapidshare.com/files/101115120/91242/esnkit.rar » RAR » esnkit\cdma_workshop_FULL_Cracked.exe probably a variant of Win32/Packed.Themida application
http://rs342tg2.rapidshare.com/files/101115120/91242/esnkit.rar » RAR » esnkit\cdma_wshop_loader.exe probably a variant of Win32/Rbot trojan
jbeam06 said:
My currently updated NOD32 AV shows :
http://rs342tg2.rapidshare.com/files/101115120/91242/esnkit.rar
multiple threats connection terminated - quarantined Threat was detected upon access to web by the application: C:\Program Files\Mozilla Firefox\firefox.exe.
http://rs342tg2.rapidshare.com/files/101115120/91242/esnkit.rar » RAR » esnkit\cdma_workshop_FULL_Cracked.exe probably a variant of Win32/Packed.Themida application
http://rs342tg2.rapidshare.com/files/101115120/91242/esnkit.rar » RAR » esnkit\cdma_wshop_loader.exe probably a variant of Win32/Rbot trojan
Click to expand...
Click to collapse
Wowee...
I think it may be detecting the loader as a virus because of the way it fiddles with the RAM. Just a guess though. Note the _probably_ a variant. It does honestly work fine.
What just happened!!!
I did everything that you said, and it restarted my computer when i opened the program!
To change the esn... does that mean i can use a phone that is on the lost list then?
bigsniperboy said:
What just happened!!!
I did everything that you said, and it restarted my computer when i opened the program!
Click to expand...
Click to collapse
Program is probably buggy, does some stuff with memory pointers to make the CDMA workshop think its registered and may have thrown something out of balance. I give you my word that to the best of my knowledge your computer will not be broken in any way.
camadot said:
To change the esn... does that mean i can use a phone that is on the lost list then?
Click to expand...
Click to collapse
Hell yes it does.
ALSO, update:
I'm looking for a full version of CDMA workshop that doesn't throw everybody's antivirus programs into paranoid spasms, will post back later with results.
I tried it again and it worked this time, but i still have the drivers from last time, how do i uninstall them? thx
went into antivirus spasm mode.
both copies i tried to download.
did you ever find a solution??
sounds like a handy piece of software i'd like to add.
Great! It looks like i'm gonna try it on my Apache..
does this work on htc hero?
abs0lut3z33r0 said:
does this work on htc hero?
Click to expand...
Click to collapse
Well the file only contains the drivers for the Apache and the ESN change program, but if you can find the Hero drivers, the program in the rar should work fine.
thank you
i cound not understand very much

Accessing Extended ROM

Hi
Im not a newbie but I think this is a bit too advanced for me without some help. I have just bought some software and it says to do this:
"If you are an advanced user and know how to access the extended ROM of your device then this section will inform you how to install remotePROTECT automatically following a hard reset.
Copy the setupE file from \Program Files\remotePROTECT into the extended ROM, place the appropriate remotePROTECT.CAB (Pocket PC2003, Windows Mobile 5.0 or Smart Phone 5.0) file in the same directory (this is on the
PC where the install took place C:\Program Files\sCPsOFT\remotePROTECT v1.5\<SP5 or WM5 or PPC2003> RemotePROTECT.XXX.CAB )
The setupE file contains your current SIM information (IMSI number) so after the reinstall will automatically look for that SIM in your device, if your device has been stolen , the SIM changed and then hard reset then you are still protected and the device will automatically LOCK and send a SMS to the predefined number.
The setupE is encrypted and therefore is safe to keep on your PC for future use."
Can anyone help me to do this please.
Thanks

Getting started with ROMs

I want to modify the messaging program but I've not done any WM coding before. I've looked at a number of posts on the forum and taken a look at the wiki but I'm still totally confused about where to start.
My current view is that I need to:
Extract the messaging program from the ROM I'm using
Is this possible? If so, what tools do I need? I found a few utilities that look promising on the wiki but there is no documentation for them so I've got no idea how to use them.
Disassemble the program
Can I do this with Visual Studio? Ideally I would like to step through the execution to find the bits I need to change, can I do that with the extracted program in the WM emulator? Or can I do it directly on my PDA?
Patch the program
I can probably figure this bit out by myself.
Get the patched program onto my PDA
As the program is in ROM, I'm assuming I'll have to re-make the ROM. Or can ROM files be updated/overwritten without rebuilding the ROM?
Each of those steps is assuming the previous one is the correct approach and is actually possible. I'm not looking for hand holding at every step, just some good pointers to relevant information and tools. Thanks.
0. - which programm you want to hack ?
1. What type of PDA you use ?
for example - for hx4700 -
prepare_imgfs.exe dump.dat
viewimgfs.exe imgfs_raw_data.bin
2. IDA - diassemble, or Visual Studio for debugging - if you know how
3. What type of PDA you use ?
for example - for hx4700 - like vivi kitchen.
4. ...
Thanks for your reply.
0. - which programm you want to hack ?
Click to expand...
Click to collapse
The messaging program, is it called Outlook Mobile? Do you know if it is native or managed code? If not, what's the easiest way to tell?
1. What type of PDA you use ?
for example - for hx4700
Click to expand...
Click to collapse
I've got a Kaiser. Currently running "udK 8.0 R0 Vega" ROM (WM6.1). Forgot to mention that in my previous post.
IDA - diassemble, or Visual Studio for debugging - if you know how
Click to expand...
Click to collapse
Does IDA support remote debugging on Windows Mobile? Also, are there any restrictions on what you can debug in VS, ie. do they stop you from debugging things you don't have the source for or are Microsoft applications (eg. Outlook) restricted from debugging in some way?
I'm finding it really hard to get decent information on these kinds of things. If I actually manage to get anywhere with this then I'll write up some kind of guide for the wiki.
Ok, I've used this tool to extract the ROM and get a file called 00_OS.nb. I then got these tools and managed to dump the NB file so that I now have all of the files inside the ROM.
I've been playing about with IDA but when I try and run poutlook.exe in the debugger, it runs but exits straight away (ie. it doesn't create a window on the PDA). I tried copying poutlook.exe onto my device but it doesn't run, I think I need to get it running from the exe before I do anymore IDA stuff. I remember reading somewhere that executables in the ROM image have been manipulated in some way (addresses rewritten or relocated or something), is that what is affecting it? Or do I need to run some additional tool on the extracted exe before it will run standalone?
How do I get an executable extracted from the ROM to run on my device? Or do I have to roll it all up into a ROM for it to work?

Categories

Resources