How to switch Radio ON/OFF - Windows Mobile Development and Hacking General

Does anyone know how to write an application to switch radio on/off i PPC WM5?
Can you send me source ([email protected])? It could be in C++/C# or even worse
I was looking through google but nothing was helpful enough.
Thanks!

Danny, I'm still at work right now, no source code with me. I can try to send you some code a little later, subject to my brain functioning. If I don't send it tonight, please PM me tomorrow.
Basically, from memory, you have to set up a TAPI setup and toggle the radio mode there. Can't remember the details off hand though Later...
V

...originally it is meant to put audio continiously to your headphone by BT... but you can also use them offcourse as a shortcut to toggle on/off gprs, ir , bt.
Put the exe to anyplace and change shortcuts with total commander for changing the path within the files....
With thanks to VIJAY555...

Thanks Krinkiespijer!
... but what I'm waiting for is source code.
I have found tel.on-off_100.exe application which switches radio on/off but I have to write it in my own app!
Danny

Lost all day and still don't know how to do it....

Guys, I should clarify for Danny, that he's looking for a managed code solution. I've given him a pointer in native C++, but can't help with managed.
Danny, I suggest you look over http://www.opennetcf.org/ and then follow the functions I pointed you towards.
Basically you need to get a TAPI line and change the equipment state.
V

It's not that I need only managed code solution. I prefer it but native code is also enough. I was trying even understand it in native code but even msdn documentation is not enough to get by without complete source code.
Even though thanks for bothering

Hi guys, this is kinda OT here, but may i ask if there is a way to turn the Radio ON/OFF thru registry? Thanks

..no, you can only choose between always on or apps depending.
With next key key in register you can change it:
HKLM\CommConnMgr\Providers\{7c4b7a38-5ff7-4bc1-80f6-5da7870bb1aa}\connections\t-mobile]
always on dword=0=off dword=1=on
t-mobile is the name of your internetconnection

Related

Challenge to coders in here (Stolen Phone Location Cab file)

ok here is the challenge, now some of us know the horror of a lost or stolen phone. Who has it? Where is it? Can i track it? Well thats where this challenge comes in. We all know about the extended rom , most people dont think that u can mess with this but actually you can. For those who dont know what the extended rom is, it a file folder that contains all the cab files that are used to restore your pda back to factory preinstalled. Well i know that using some programs you can actually edit or delete files in this folder. What i propose or challenge the coders to see if they can come up with a cab file or program that can be placed into the E.R. so that if someone hard resets the pda, that when it comes back and resets it would set off the cab file to collect information like the phone number of the new sim card the thieves put in the stolen unit, and or any other info that can be used to track this device. to email it or say call you at a certian time. Point is that if you can get the number of the person that has your phone, you can get it traced and at least get the cops to go to the address that the new sim card is registered to.
Wow, I like that idea.
I was actually coding it so that the first thing it would do is execute a full-screen lock and you'd have to enter a preset passcode. The only way to get around anything in the Extended ROM though is by performing a soft-reset during the 3-second pause.
The problem with the current WM5 HTC devices (Wizard, Universal, and Apache) is that they have a digital signature feature enabled by default. So I can't hack the Autorun (even if I could) to bypass the 3-second pause, since that would break the authentication of the digital signature.
I could, however, disable the security on the Wizard and Universal with a digitally-signed CAB file found in the Apache's Extended ROM...
If someone could teach me how to access the SIM, that would be key...
Um, am I missing something or isn't this what IIWPO does (for the WM2003/SE devices anyway)? As soon as someone changes the owner info. and puts in a new SIM, it SMS's you the details - I already have it installed in my ext.ROM.
For the WM2005 devices it might not work but it's currently protecting my XdaII.
can you provide a link for iipwo
no sim
doesnt seem like that program access the sim, it seems that it relys on the new owner to input their information, but how many of us actually do that. i dont for sure. so if the new owner doesnt imput their contact info then there is no way of finding them, where as i propose to make come up with a way to read the sim and get the phone number, that way its definatly going to get them
BeyondtheTech said:
can you provide a link for iipwo
Click to expand...
Click to collapse
It's here on xda-dev, just search. Oh, and it's iiWPo not iipwo.
henvanvo said:
doesnt seem like that program access the sim, it seems that it relys on the new owner to input their information, but how many of us actually do that. i dont for sure. so if the new owner doesnt imput their contact info then there is no way of finding them, where as i propose to make come up with a way to read the sim and get the phone number, that way its definatly going to get them
Click to expand...
Click to collapse
They don't need to, all it does is compare the existing text (or lack of) with the stored value (your own), then gets any data and sends it. If nothing else you'll get the phone number as part of the SMS. If they DO enter info (and most people I know do, just in case it is returned if lost), then you get that too.
You also get the satisfaction of slowly racking up their bill for them if they are charged for SMS and if they query it and the telco starts to ask questions about where the 'faulty' handset came from or suggests it goes for repair... Gotcha!
wm5
isnt this only for WM 2003? has anyone got this to Work on a WiZard ?
if someone steals/finds a wizard then what are the chances they will know how to or even if you can hard reset it? and the ones "in the know" might just install a new/default rom image overwriting whats on the modified ext rom.
what you need is something that executes on maybe the 2nd or 3rd incorrect pin number entry.
not true
thats not true , u can get a manual at imate to show u how to hard reset. but there is no manual unless u read these kind of forums. most theives are crack heads that just take the phone to see if they can sell it for money. no knoledge of these devices
what i mean is there is no manual to enter the extended rom unless u read these kinda forum, we are fanatics
iiwpo relies on security by obscurity.
It works quite well on Walaby and Himalay.
If put into extROM it will be installed after hard reset as well (but since it is not signed the user wil get the ability to cancel in WM5.
I am planning to test its functionality on WM5 with my new Wizard.
BTW: Anyone allready has a ExtROM editor to bypass the read-only protection in newer ROMs?

Flashlight on without camera???

Hi Guys.
I use the flashlight a lot. It comes in handy but is a bit of a pain having to switch the camera on to use it.
I tried looking through the whole of the registry to see if I could find a way of switching it on without the Camera but no luck. If I could do it' I would either set up a voice command to use it or use one of the buttons directly to run a program to switch it either on or off depending on what it's state is now.
Is it possible or is the flashlight's functions restricted purely to the Camera?
Thanks in advance
Brian
Vijay of the forum has been working on this project with Vjcandela - as yet no joy, but we are forever hopeful :mrgreen:
see here http://forum.xda-developers.com/viewtopic.php?t=41642
Won't somebody please, give me a Wizard?!?
Just joking...
btw, can someone try Haret on the wizard and check if that starts up the flash. If it does, I'll reverse engineer from there. I don't have a wizard and can't test the more elegant driver based solution without the hardware.
V
vijay555 said:
Won't somebody please, give me a Wizard?!?
Just joking...
btw, can someone try Haret on the wizard and check if that starts up the flash. If it does, I'll reverse engineer from there. I don't have a wizard and can't test the more elegant driver based solution without the hardware.
V
Click to expand...
Click to collapse
Tried haret on my wizard vijay - application wouldn't even start
meschle: thanks for trying it. I'll get a Wizard one day. Until I get more HTC hardware to reverse engineer, I'm not really clever enough to implement a more generic solution. For now, Universal and variants only I think.
Hey, and thank you again for your PMs
V

Annoying Device Lock

Hi All,
I have a VPA Compact II (Cingular 8125) and am synchonizing this with the Exchange Server of my company.
My company have set a policy that the device is locked after 15 minutes.
My problem here is that I am using a navigation software and during my ride the device igets locked every 15 minutes. Very annoying.
Anybody knows a solution for this?
Is there a way to keep alive the device?
Thanks
Ooops.
SOrry found the solution already.
http://forum.xda-developers.com/viewtopic.php?t=47912&start=0&postdays=0&postorder=asc&highlight=
Sorry again
Must.....get......feedback.....
rogierh,
Let me know how it works. I've received zero feedback on this. I'm curious if people are using it, but just not posting feedback or if its too damn complicated and I need to refine my directions.
Justin
Hi,
I just installed and configured it as you discribed.
Unfortunately my device still gets locked up after 15 minutes (from the policy).
Till the 15 minutes are over the device is kept alive. Normally the backlight would die after 2 minutes, it now stays switched on.
Any idea?
I used the short methode of step 3.
Thanks a lot for your help.
Couple of questions first....
1) What gps software are you using?
2) When you open SKScheMa, does it say "WATCH ON" in the lower right corner?
Justin
Using TomTom.
Yes its ON
I think its a wizard or WM5 problem as it happens with me when listening to MP3s too
Sucks having a 15min lock policy, as i just set a 1hr timeout for mine and its enough to stp it irritating you much.
Is there anyway you can just "Forget" the policy or are you unable to.
Try these files...
Delete the old sksc and sksw file and try these files.
If they work, I'll post them to the original thread (which you posted in your second post). Place these files as described in steps 2 & 3. Sorry for the headache.
Let me know if this works.
Justin
Hmmm sorry to say, still the same.
It keeps the device alive till the 15 minutes policy comes in.
Might this be some other kind of trigger?
Some new files....
rogierh,
Sorry for the headaches. What I'd like to try next is have you try a new set of files. The ones you tried yesterday was supposed to prevent the device from locking by simulating the pressing of the "home" key. I'm wondering if this key doesn't work on your Wizard (I'm using a Universal). These new files will now simulate the pressing of the "enter" button. (Just so you know, when I tested this program on my JasJar/Universal, I did find that using certain "simulated" keys would not work. So maybe the "home" key doesn't work on your Wizard.).
Now this will not be the end solution. When you press the enter key when TomTom is running, it will bring up the main menu. When you press the enter button a second time, it returns you to the navigation screen. I want to test to see if SKScheMa is running properly. If it is, when you launch TomTom and don't touch anything, you should be able to see the screen cycle between the main menu and the navigation screen every 58 seconds.
Let me know if you see this behavior.
Thanks
Justin
Hi,
First of all thanks a lot that you are helping out here.
It doesn't seem to work. The screen does NOT change to the menu and back.
One comment, because I have a German device (unfortunately) , the program is in German as well. But that should not be a problem with the script I think.
You mention in your guide do click to ok button on the right top side. This closes the program and I do not find it running when looking under the started programs in settings. Is this correct?
I also tried not clicking ok, but this does not change anything.
Just trying to think with you. Is the ENTER key the same code as on your device?
BR Rogier
German.....
Thanks for the info on German. My guess is that the application name may be different (i.e. it's not TomTom Navigator but rather a German title). There's a relatively easy way to check.
First open TomTom.
Next, press the 'contacts' button.
From there, you should see the Windows Start Menu. Go to Windows Start -> Settings -> System -> Memory -> Running Programs.
There should be a list of the applications running. Do you see "TomTom Navigator" or something else?
Thanks
Justin
P.S. I think the code will work on non-english versions, but only the developer can really answer that.
The Name of TomTom Navigator is the same.
Also the SKSchema Program is in German of course :-(
Is there an other option in SKSchema I can test to see if this is working at all?
(I am waiting on a new english ROM from our IT department.)
You can experiment and create some "watch" functions/programs. I recommend that you use the program to create some test cases. Here's a link to their instructions on how to create watch programs (and scripts too):
http://s-k-tools.com/skschema/skschema.0409.htm
For example, when I learned how this program work, I created "test cases" in the watch section of the program. Some things you may want to try:
When a program is running (make it easy by using Contacts, Calendar, etc), play a sound.
Once you've created this "watch" script, SKScheMa will "watch" for the program to be launched and when I sees that it has been launched, it will continuously play a sound while the program is running.
Once you've sucessfully completed the sound test, you just start customizing it to your needs. For example, the next test may be to simulate pressing a key when the application is running. The simulation of pressing a key should prevent your device from locking. Using this test, you can see if your device still "locks" after 15 minutes.
Justin
P.S. I'm sorry you're having so much difficulty. If I can help you further (not that I've really helped you thus far), please let me know.
He no worries, I will have a look this weekend.
Many thanks.
Rogier
Unlocked device and updated to english ROM (finally).
Will test again.
simulating the pressing of the "enter" button now seems to work. COOL.
Will test with the other file now.
:-D
Ooooooo YES!!!!!
I am a Happy Man. This works now.
Seems the German Version of the Utility does not liked the script or so.
On an Englisch ROM all seems to work fine.
Thanks a lot for your help.
Rogier
Congrats....
I'm glad it worked out. I can't help but wonder....why does the language make a difference. I'm not a programmer so I guess I'll never know.
BTW, you can use SKTools to keep other programs open too. Let's say you want to keep your device alive while surfing the internet. You can develop a similar script for Pocket Internet Explorer/Opera/NetFront. I use it to keep alive TomTom and iGuidance. Take care. Justin
Thanks a lot for the tip.

Hidden engeneering mode view

regedit -goto
hklm/software/htc/engineermode/
and change buitinengineermode dword to 1
save
goto dial pad and enter: *#*#364#*#*
regards
Seth
I found that entry a few days ago. I tried it, but nothing happens.
What do you can see/do in engeneering mode?
Just tried it. It opened a tabbed dialog that shows all the info the phone is getting from the cellular network.
Tower number, GPRS settings and a lot of stuff I know nothing about. Nice diagnostic tool.
P.S.
funnysurf, did you dial the number correctly? For me it opened the second I entered the last *. (on Jamin, ROM 2.13.9.123)
It works... Latest Dopod ROM.
HTC Engineering Mode
I've been hunting for a way to see this info. I design cellular networks and this stuff is my second language. However, I don't see anything in any fields of GSM Test Mode. They start with "N/A" then immediately go blank. I've done the registry setting but no change. When I do the '*#'-thing, I get nada. Got any clues?
FYI- I found a program called NiceTrack that shows only some of this info, so I know it's in there somewhere, but I need to see more.
jott2me, post your ROM version. On the Dopod's 2.15 it works.
GSM Test Mode
The key word is “built in” If you have a little program GSM TestMode.exe in your windows directory, this registry tweak makes this program visible and executable. Plus don’t forget to soft reset your device in order for registry modification to take effect.
By the way, if you use this data a lot, you can make a shortcut to this utility as to any executable. No need to dial the *# a hundred times. Or just add it to your speed dial…
You guys sure respond fast! Wow! And thanks!
JWalker, here's my info:
ROM version: 1.8.10.2 WWE
ROM date: 12/10/05
Radio version: 01.09.10
Protocol version: 4.0.13.20
ExtROM version: 1.8.10.104
(I've only had this about a month so I'm leary of changing ROM versions.)
aleksandr,
I'm running Spb's Today screen (it's nice) and I've got an icon that puts me right into GSMTestMode.exe when the reg tweak is set to 1. I've reset several times still no luck seeing info. I made a contact with the '*#' stuff but when I dial it, I get, "The number you have dialed..." message.
Am I missing something?
Thanks for your help.
GSM menu
How did you reset your device, programmatic soft reset or with your stylus? Soft reset with stylus will erase registry modifications without saving them. Sorry, don't mean to use "dummy" talk, just want to make sure all proper steps are followed to eliminate all possible reasons in order to find the solution. Another reason for this issue could be in rom, but wait for J. Walker to respond. I'm in the office right now and don't have emulators here to experiment with your rom version. In the mean time make sure you’ve made all necessary registry changes in right registry entries, and soft reset using program, something like Nice start or shut down XP or SPB Pocket Plus reset function.
I've been using TRE to edit the registry then resetting it using the stylus and the hole on the right side. Every reg change I've made shows up after a reset as changed. I don't know of another way to soft reset it. Even when I've changed it back to 0 to try using JUST the GSM Test Mode.exe, it won't work. That's proof that the registry does see the changes (I think).
(... and I'm the newbie here so "dummy" talk is A-Okey doke w/ me.)
Guess, it is a good idea to change to 2.x ROM. The only thing I know that it works fine with my original S200 with Dopod's 2.15.13.27 ROM. It much morу stable and fast, so you will got the better feeling
Hi,
on Vodafone ROM 2.15.3.26 GER it does not work. I create an Link to \Windows\GSMTestMode.exe and do it that way
I tried creating the link to GSMTest but that still didn't work. I think I'm going to have to change ROMs. I'm very reluctant because I don't know where or how to get and install one. I've seen that this site is full of talk about ROM upgrades, but I haven't seen one that tells me how to do it.
The thing is that what I'm really really after is not just the GSMTest screen so it may or may not even involve a new ROM. What I really want is to learn where the info is hiding and how to display it and make some of it usable in graphical format (something like "NiceTrack" does but with all the info not just a couple fields). It's more of a programming thing. So if anyone knows where this info is stashed and how to read it, I'd go that direction. I thought that GSMTest would be a quick & easy step toward what I'm after.
any change someone could add the gsm test program. I did found the engineering key in the registry, but no program in the windows directory and entering the code on the phonedial pad didn't work as well.
i'm running tuma 1.3 wm5 rom on a qtec 9090
If you want a good guide to changing roms see this post
http://forum.xda-developers.com/viewtopic.php?t=52564&highlight=
sethxp said:
regedit -goto
hklm/software/htc/engineermode/
and change buitinengineermode dword to 1
save
goto dial pad and enter: *#*#364#*#*
regards
Seth
Click to expand...
Click to collapse
I'm sorry, but I have to ask this question. After a year or so of using these amazing little hacks I've always wondered one thing. . . How in the HELL do you folks figure out these things exist?!
I'm sorry, but I have to ask this question. After a year or so of using these amazing little hacks I've always wondered one thing. . . How in the HELL do you folks figure out these things exist?!
Click to expand...
Click to collapse
My thoughts exactly... I discovered this site 2 years ago when I had the Xda2 and I'm still amazed at the information that I can dig up here. Guess some of us have the privelege of playing with our gadgets more than others...
i had to go into the props of the file and change it from hide. i also had to use resco and searched for the file name and changed it there. from there i copied the file and choose poaste shortcut to the windows\start menu\programs

Problem with WiFi

If I press wlan button in Comm Manager than WiFi should be ON but it is not. I did use some different roms but still nothing. Somebody know what to do ?
settings-connections-wireless lan - there is only message:
Wireless LAN is OFF.Turn on Wireless LAN.
It does not work. Please help me.
Go back to wm5. If your lucky it might come back. The more I dig through here the more I see people with wifi problems after flashing. You might be out of luck
HOWEVER
I noticed under WM6 the bubble that pops up when you click on the wifi tower ALWAYS says 'turn on wifi'
Good luck!
Same problem with my WI-FI, Not working please help!!!!
Hi All. I am facing the same problem with my WI-FI as Vomithaus is having. Whenever I try to to connect to WIFI from Commmanager, it tries to and then to show disconnected. When i go to settings> Wireless LAN, it asks me to "Configure Network Adaptors", and lists all the adaptors and going into them asks about the ip settings and stuff like that. By the Way I Bricked my phone once and then i flashed with T-Mobile Ship WM6.0 RUU for the WING. And I strongly suspect that the registry setting are not right or the Radio ROM is F***ed up. Can any knowledgeable person help me please? I would greatly appreciated any help.
Same problem with my WI-FI, Not working please help!!!!
This is the addeneum to the last post. The last remaining screenshot for the above post. The last screen shot of the "Wi-Fi Status" in the "Settings > Connection", gives me an option to "Turn on Wi-Fi" but toggeling it results in nothing. Thank You everybody for your time and consideration.
It might help us to figure out how this happened too. I bought the EXEC off of ebay and it was like this from the get go. The previous owner flashed it to wm6 about 1 month ago, but said it was working fine... all he did was hard reset to get rid of the personal information. I want to believe him, but there are a few people on here complaining of flashing the exec and losing wifi. (even the official rom from O2).
Flashing COULD have damaged the transmitter, but it seems more likely that a setting is wrong somewhere (especially since there is a slider bar for WIFI battery vs performance).
This is good news (somewhat), but the bad news is that if there is one, no one knows about it. I have messed around in the registry (there were some promising entries related to POWER), but nothing that even showed a response. I found the entry that connects to the slider bar, but PERFORMANCE = zero, so there is nowhere to go there but WORSE.
This really sucks, is all I can say. I blew $500 on something that is useless (well... not useless, but no WIFI? WHY COULD IT HAVE NOT BEEN BLUETOOTH!)
Another step I have taken is contacting PPC Tech's via email and asking them if they have any idea how to repair it, and how much $$$
I'll keep you informed.
Can you tell me if yours EVER worked, and if so, when it stopped?
I just looked closer at your screenshots.... Do you have a WIFI card? (it say's 'adapter').
No, I dont have a WIFI card but this is way how windows handles all is peripherals (services), as an add-on card. just like you laptop.
Guys, There is a registry fix for this problem.
Please take look here :
http://forum.xda-developers.com/showpost.php?p=1475527&postcount=14
Ron
I am afraid Ron that this is not a case as suggested in Beowulf6's solution. If it is the solution I dont know how to exactly implement it. But I am posting here the exact registry key screenshot for you guys to take a look also. I can't see and TNETWLN1 or TNET12345 key here in my device. I still think it has to something with the registry. Can any one here with a T-Mobile WING verify and post their screen shot? or maybe send me a registry backup to compare with? It would be really grateful it some does that. Thanks everybody for a few seconds to read this.
In my herald i can't see TNETWLN1 or TNETWLN12345 too.
I did use Mobile Registry Editor for that , what you guys are useing?
(sorry for my English, if you dont understand me just tell me please)
Look at the screenshots, there a Reg Folder with the name WLAN, open it, and then open the key with all the numbers and letters. At the end of that line is a code. TNETWLAN1 is what it should be for the Herald.
f_v_man said:
I am afraid Ron that this is not a case as suggested in Beowulf6's solution. If it is the solution I dont know how to exactly implement it. But I am posting here the exact registry key screenshot for you guys to take a look also. I can't see and TNETWLN1 or TNET12345 key here in my device. I still think it has to something with the registry. Can any one here with a T-Mobile WING verify and post their screen shot? or maybe send me a registry backup to compare with? It would be really grateful it some does that. Thanks everybody for a few seconds to read this.
Click to expand...
Click to collapse
It is like Bio88 says.
You are already on the right track... click on WLAN and you will find the key.
Change the value of the key into TNETWLAN1
Done
bio88 said:
Look at the screenshots, there a Reg Folder with the name WLAN, open it, and then open the key with all the numbers and letters. At the end of that line is a code. TNETWLAN1 is what it should be for the Herald.
Click to expand...
Click to collapse
Hi Please look at my screen shot again clearly. I did post what is inside the WLAN folder. There are only two keys :
1) (Default) \Windows\ctlpnl.exe
2) CmdLine cplmain17
I still can't figure where is the key with numbers and letters. Sorry If I am a bit dumb or wrong. Thanks.
it is possible if you use the default Commanager that you dont have this registry key.
I dont know if it helps if you create it on your own.
but for me where i installed a different commanager, the Key was there and i edited it for the wlan button.
My Tmo Wing has "TIACXWLN1" in that registry key.
Do those changes apply to the herald and the Wing interchangeably?

Categories

Resources