Service bypass - Windows Mobile Development and Hacking General

I don't know how much you are aware here about our Samsung application autoclosing bug/feature/whatever. This appears to be connected to taskmon.dll service since when I disable it, it stops. Thing is that this dll is also appears to be controlling another dll service motionagent.dll that controls things like slider response in the system.
So my question is: is there a way to either "emulate" taskmon or get info from/to motionagent based solely on data from these 2 files?

are you talking about Omnia II? I can never run more than 3-4 apps at the same time and always the "oldest" one is being closed. Veeeeeeeery annoying!

Both Omnia II and B7610 have the same problem, but for you it's easier and since you don't have slider you shouldn't have problem i have. Try this and let me know how it works for you.

great! It seems to be working!
What is this slider thing you are talking about?

Well slider is hardware keyboard that b7610 has.

maybe it's working to hook into the DLL and disable calls to function "SuspendThread"?

You may want to refer to the kingmobi article that provides more insight into the matter:
http://translate.google.com.hk/tran...ww.kingmobile.net/bbs/archiver/tid-98483.html

now it's finally done properly:
http://forum.xda-developers.com/showthread.php?t=637771

Related

Questions From ex-Treo650 user

OK I had gotten board with the lack of wifi and decent web browser on the Treo 650 that I decided to make the move to the 8125. I knew about the speed difference and some of the other issues discussed in these forums because I researched the device for months before making the move. Therefore I wont say much about that. Unfortunately I have a few issues that I can't seem to find answers for in this forum and I was hoping other users out there could help.
1. Is there any way of making the navigation pad useful? I cant access anything on the taskbar and it would be great if I could. I installed magic button so I can close apps and switch back to home when I want. Furthermore there is almost no documentation on how to use the nav pad. All application instructions say tap the icon. It's very convenient to have one handed use. for example i have yet to figure out how to get back to the location bar in Pocket IE so I can enter a url without having to tap the screen.
2. Is it common that some applications just freak out when you switch to landscape mode (scroll bars not working and such)?
3. As mentioned I installed magic button but is there an application that will pop up a list of running tasks so I can switch between them easily with the navigation pad.
4. Backup. I may be very wrong on this but I fear that active sync does not actually backup my entire device like palm does. Could someone clear this up and if I'm correct is there a way for active sync to do this. I have more programs on this device than what is on my add/remove prog screen.
5. Notification reminders. I see a feature to have the led for a period of time but it would be nicer if it could be set to play its sound also. Like the pagers of old.
6. Notification of lost service. This phone never tells me I have no cell service. Last thing I want is battery draining searching or worse assuming I have service and miss all calls.
If anyone could provide some info on the above it would be a great help. i have already found many other programs that make up for the lacking features. Below is a list of what I have installed please make any suggestions you think would be helpful.
1. AnthaVPN - easiest and fastest to install
2. TN520 by mochasoft
3. Pocket Putty SSH client
4. Eyes On Call - Callfilter like program with many features still limited but the developer is very quick in implementing suggestions.
5. Info sharp - same developer as above but this provides sms capabilities that are very impressive. He almost has chat style sms with the way this program works.
6. OMAPclocker - for clocking to 220. I actually see the difference.
7. IM+ - Sametime/AOL instant messenger client.
8. Info apps I have Metro, Ereader, Bdicty, VadeMecum
9. TCPMP
10. Registry Wizard
11. Calc98 - the built in calc app is a joke.
12. Xpressmail - dont care what anyone says this app does what it says it will do. Pushes email to your phone.
Thank You
- Richard
sorry, you are in the wrong forum. This here is the Universal, not the Hermes (or whatever the 8125 is)
thx
wow didn't notice I posted on universal forum. well at least I can correct the typos and vgrammer before posting on wizard.
-Richard

Help on other phones Slide notifications

I've written an application to extend phones behaviour when moving their slides (hanging up, locking, etc). I wrote it to work on my HTC Dual Touch a.k.a Nikki. Here's it's thread and homepage.
This application may very well work with any HTC Slider (running WM6 and/or .NET CF 2) but I don't know. I haven't any to test.
If any volunteers would like to do me and my application a favour, and possibly get to use this application themself, could they please give it a go on and let me know if it works on their non-Niki phone.
If someone was generous and has a phone it doesn't work on, possibly even a non-HTC phone, it'd be nice if they could use RegLogger or the like to try and find a different notificastion key that records the phones slider state.
The Niki (and maybe others) stores it in "HKEY_LOCAL_MACHINE\Software\OEM\Keyboard DWORD:SlidingOut".
I'm trying find out how wide spread that is, or other options for other phones.

New audio switch program for skype and others.

This program is an evolution of the first I made. It will route the audio to the earpiece when an certain program is running.
I put the program here because I have test it in wizard, if people test this in others phones and it works, please post here and maybe move this this thread to an more "generic" forum.
the program MUST be under "\($program files)\audioswitch" folder, you must unzip the contents to this folder.
the configuration file (command.txt) is under this format:
1000
skype
fring
etc
the first line is the delay(in miliseconds) in witch the program will "look" if a program in the list is in the top level window, faster phone, smaller delays, I recommend 1000 ms.
the next 20 lines are the programs you want the audio to be routed to the earpiece(max 20 lines for now).
Again the program is under the "do it on your own risk" and "I am not responsible for anything" licence. And,of course, it is free!! Do not sell it!
It is manly intended for little expert users, as it is still in "beta" fase, hehehe.
How it works:
the program runs in an eternal loop and look for the title of the current window that is displayed for the user in a time interval.
When the program mach the title window with one of the names user configured it it will switch the audio, when the program is not running anymore, the audio will swich back.
Do not launch two or more instances of the program at the same time, could really mess things up. -- se the forum (thanks tucahara)
To stop the program, u must use a process manager.
it would be good if someone could make a cab to install it. -- done see the forum (thanks tucahara)
this is still a beta, I intend to make ajustments as people give feedback.
Thanks,
hope u like.
-----first update---
now, an file called "audioswitch_error.txt" in the root directory will hold the error messages.
------------ List - Working ------------
wizard - I tested
P3301 or P3300 - I tested
att tilt - I tested
touch 3452 and 3450
touch dual
touch cruise
touch HD
Sony Ericsson Xperia X1
BenQ E72
Titan --> see the forum
------------ List - NOT working ------------
T-Mobile Diamond
HTC Touch by Sprint
Samsung SGH-i780
------------------------------------------------------------------------------------
check the new thread at:
http://forum.xda-developers.com/showthread.php?t=502361
new aproach to do the switch and now open source, even with an class that others can improve and put in other apps...
Some people complain about me not openning the source of the app, I have just made this way because there was proprietary code inside and I had no time to rewrite it without the proprietary code.
I have made the best I could, and now I had some time and rewrite the app in open source, to those who only complain about it, get the code and make it better instead of complaining!
Thanks for all that encourage me to continue the work and helped the development.
will retire this project for while...
thanks u all.
Audioswitch for Skype
On HTC Touch by Sprint (CDMA, also known as Vogue), audioswitch does switch the audio in the Skype 2.5 windows mobile PPC from external speaker to handset. Unfortunately, the microphone is then also disabled. I hope you'll be able to tweak your audioswitch to resolve this.
Thank you so much for developing this wonderful applet. I'm sure you will have the gratitude of many frustrated Skype windows mobile users.
What really happens is that when the sound output is switched in some phones, the microphone gain changes too. This happens because the phone thinks it is a "normal call".
Most of the times the mic gain increases, but in your phone it must be decreasing. Try to figure out in registry where the mic gain controls are recorded and chage all of then to the same value. I had this issue with my P3301 and solved this way, but there is quite a time now and I do not remenber where are the reg keys to change, but I have found the information here in the forum.
I will try to figure out for other "hack" to solve this issue... thanks for reply.
doesn't work at T-Mobile Compact IV (aka Diamond)
Sound went to loudspeaker....
PS: fring last version working fine with sound at mine phone (without any additional programms). Sound is going to correct destination automatically
I just tried the latest version of Fring, which automatically switches audio to earpiece when call is connected.
The same issue occurs with the new Fring as I described above with your audioswitch program: I can hear audio through earpiece, but microphone doesn't work (or is inaudible).
I couldn't find a tweak or registry hack to correct this. Any help would be greatly appreciated.
MarceloFB said:
This program is an evolution of the first I made. It will route the audio to the earpiece when an certain program is running.
I put the program here because I have test it in wizard, if people test this in others phones and it works, please post here and maybe move this this thread to an more "generic" forum.
the program MUST be under "\($program files)\audioswitch" folder, you must unzip the contents to this folder.
the configuration file (command.txt) is under this format:
1000
skype
fring
etc
the first line is the delay(in miliseconds) in witch the program will "look" if a program in the list is in the top level window, faster phone, smaller delays, I recommend 1000 ms.
the next 20 lines are the programs you want the audio to be routed to the earpiece(max 20 lines for now).
Again the program is under the "do it on your own risk" and "I am not responsible for anything" licence. And,of course, it is free!! Do not sell it!
It is manly intended for little expert users, as it is still in "beta" fase, hehehe.
How it works:
the program runs in an eternal loop and look for the title of the current window that is displayed for the user in a time interval.
When the program mach the title window with one of the names user configured it it will switch the audio, when the program is not running anymore, the audio will swich back.
it would be good if someone could make a cab to install it.
this is still a beta, I intend to make ajustments as people give feedback.
If someone like this program and wants to make an donation...
https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=4WLQVA6LTKWSL&lc=GB&item_name=marcelofb&item_number=marcelofbxdadonations&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG_global%2egif%3aNonHosted
Thanks,
hope u like.
Click to expand...
Click to collapse
I have an idea. Rather than regularly polling to see what the current windows is, why not use a windows hook to monitor windows messages. When you see a message indicating a window has come to the foreground test it against your list of windows and enable/disable audio switch as necessary. Use SetWindowsHookEx and hook for WH_CBT messages. If you are unfamiliar with using SetWindowsHookEx I could supply you with the hooking code and all you would need to do is insert the code to check the window names, enable the audio switch, and disable the audio switch. Or you could send me the enable/disable routines.
Another tip, I noticed that skype places an icon in the notification area during a call. If there is someway of detecting the notification icon that could be another great way to trigger the switch.
Great program though. Works beautifully.
OOOH
If this program works on the new BenQ E72 I'm getting in a couple of days I'll certainly donate!
THANKYOUTHANKYOUTHANKYOU
hello,
it does not work on hermes (tytn).
by the way "troca2" does work on hermes! - maybe you guys want to work together?
baal_zebub said:
hello,
it does not work on hermes (tytn).
by the way "troca2" does work on hermes! - maybe you guys want to work together?
Click to expand...
Click to collapse
hehhehe, I made troca2, I will see if the switch code is the same or if I have made some mistake...
are u sure you have put the program in the correct directory?? I will make some modifications to have an error feedback. So u can see if something is wrong...
JKingDev said:
I have an idea. Rather than regularly polling to see what the current windows is, why not use a windows hook to monitor windows messages. When you see a message indicating a window has come to the foreground test it against your list of windows and enable/disable audio switch as necessary. Use SetWindowsHookEx and hook for WH_CBT messages. If you are unfamiliar with using SetWindowsHookEx I could supply you with the hooking code and all you would need to do is insert the code to check the window names, enable the audio switch, and disable the audio switch. Or you could send me the enable/disable routines.
Another tip, I noticed that skype places an icon in the notification area during a call. If there is someway of detecting the notification icon that could be another great way to trigger the switch.
Great program though. Works beautifully.
Click to expand...
Click to collapse
It is a good idea to use hook, I have not think of it!
I use a proprietary code included in a lib at the company I work for to make the "switch" but it is not different of what u find here in the forum.
Maybe we can make an effort to re-make it with hooks...
so this program must run all the time? after every softreset you have to start it?
is it not easier with mortscript (for example) to make an shortcut that opens skype as well as the audioswitch program? and closes the audioswithc program when you close skype?
I am using it right now and it seems to work perfect:
i used this script after installing mortscript (http://www.sto-helit.de/):
run( "\Windows\SkypeSoundSwitch.exe" )
runwait( "\Program Files\Skype\Skype.exe" )
close( "troca2" )
(see that in my case i downloaded your original program and renamed it to skypesoundswitch.exe and put it in the windows map)
I renamed it so i could remember what the purpose the file had.. changed nothing but the name!
Thanks for the program by the way! it always worked perfect!!
so to sum up the way i have it now (most files included) on my xperia x1:
1) installed skype
2) installed mortscript
3) add skypesoundswitch to \windows\....
3) add skype.mscr to \.... (root)
4) overwrite skype.lnk with the new skype.lnk in \windows\start menu\programs\..
in the way whenever i open skype(.lnk), it opens skype.mscr, this opens skypesoundswitch.exe and than skype.exe... when you close skype.exe it closes skypesoundswitch.exe...
it seems to work perfect.. but hey maybe i am doing something totally wrong here.. than just shout!
by the way, the .mscr and the .lnk files are offcourse edit-able .. so you can put the files everywhere you like..
madhijs said:
so this program must run all the time? after every softreset you have to start it?
is it not easier with mortscript (for example) to make an shortcut that opens skype as well as the audioswitch program? and closes the audioswithc program when you close skype?
I am using it right now and it seems to work perfect:
i used this script after installing mortscript (http://www.sto-helit.de/):
run( "\Windows\SkypeSoundSwitch.exe" )
runwait( "\Program Files\Skype\Skype.exe" )
close( "troca2" )
(see that in my case i downloaded your original program and renamed it to skypesoundswitch.exe and put it in the windows map)
I renamed it so i could remember what the purpose the file had.. changed nothing but the name!
Thanks for the program by the way! it always worked perfect!!
Click to expand...
Click to collapse
That works great too. The advantage of this new program is that it will only reroute the audio when skype is in the foreground. You could minimize skype and leave it running, and audioswitch will automatically restore your sound. Get a call and open up skype and your sound goes back to the earpiece.
I will create the code to do it with a windows hook when I get a chance MarceloFB. Please pm me your email address. All you will have to do is insert the code to read the config file, check the window names, and when necessary enable or disable the switch. Or please show me where to find details on how to code this myself. Thanks!
Hat off to both of you and really glad that we will have a much improved solution.
JKingDev said:
That works great too. The advantage of this new program is that it will only reroute the audio when skype is in the foreground. You could minimize skype and leave it running, and audioswitch will automatically restore your sound. Get a call and open up skype and your sound goes back to the earpiece.
I will create the code to do it with a windows hook when I get a chance MarceloFB. Please pm me your email address. All you have to do is insert the code to read the config file, check the window names, and when necessary enable or disable the switch.
Click to expand...
Click to collapse
okay! I only used skype to make calls and than get offline so this way did the trick for me! but i have to admit it would be much better when i can keep skype online!
this new program does the trick indeed! it changes the output back when i minimize skype!
But still my question above, you have to start this program on every startup isn't it? what does it do with the battery?
madhijs said:
okay! I only used skype to make calls and than get offline so this way did the trick for me! but i have to admit it would be much better when i can keep skype online!
this new program does the trick indeed! it changes the output back when i minimize skype!
But still my question above, you have to start this program on every startup isn't it? what does it do with the battery?
Click to expand...
Click to collapse
Yes it must be run at startup but placing a link in your startup folder will make everything transparent to the user. I don't think there will be an effect at startup. In it's current form it must check every second (or whatever you set the timeout to), but its only a little bit of code. I am not really sure if that will really have an effect. The more often it checks the faster it will switch when you open skype, but also the more processor use. Check less often and it uses less processor, but there might be a delay in switching the audio. I proposed doing it by hooks though because this would use even less processor. The app will only check when a new window takes focus, rather than just periodically checking. This way it only checks when it needs to and will always switch instantly.
I am glad u liked the program.
I will try to answer most of the questions...
1- JKingDev:
I have though in your idea of using hooks, but if I use a hook, the program will have a loop anyway to check for the messages(hidden loop ;-) ), and it would have to have an "fake window" or something to process the messages. This way we have only one loop, in a very simple command line program with high optimization, so we have to think what is really the best way of doing it... I will pm u as soon I have any time to "program" again. hehe
2- people that uses mortscript with the old "troca2"
I will try to make a way to make this program work the same way as troca2, maybe with an "argc argv", wait the next update.
3- the battery life??
if u notice any battery life decreasing with the usage of the program, configure a bigger delay, maybe 5000ms, it is a matter of adjust the "timming" for each processor. Post your results here so others can find the optimum value for the delay in their phones.
4- have to start the program every reset?
yes, just put it in the startup folder.
maybe someone can make an cab that put the program in the right place and a link in the startup, it would be cool! I dont have an easy program to deal with cabs, and the vs projects for cabs.... I really cant make that thing work!!
well it is only the batterylife i was worried about. but i'll try running the phone this weekend with the program running and doing some skype.. lets see how it turns out!
For folks who have issues of mic on using this program, there is a quick solution for this problem. You can try sjphone. It provides a internal mic volume control. However, the major setback is that it's only working in wm5.
my 2 cents
weekendli said:
For folks who have issues of mic on using this program, there is a quick solution for this problem. You can try sjphone. It provides a internal mic volume control. However, the major setback is that it's only working in wm5.
my 2 cents
Click to expand...
Click to collapse
will check this, but people reported that worked in xperia... and it is running in my P3301... anyway, will check and post an wm6 build if it is the case... check the error file and see if it tells anything.
Other thing, this program uses low level api`s, so your windows MUST be fully unlocked for it to work in wm6.

Tracker for Topaz ??

Hi all,
Having recently lost my TD, I have purchased a new Topaz. Are any of the tracking programs useable on the TD2. Has anyone got any experience with any of them???
Thanks
Pete
Remote Tracker
I use Remote tracker:
http://remotetracker.sourceforge.net/
It's a great (and free) program that allows you to send coded text messages to your missing phone, which will activate the gps and text you back with it's co-ordinates. You can do other stuff to, like wipe the address book, or just set off an alarm if you loose it in the house!
tonyh0905 said:
I use Remote tracker:
http://remotetracker.sourceforge.net/
It's a great (and free) program that allows you to send coded text messages to your missing phone, which will activate the gps and text you back with it's co-ordinates. You can do other stuff to, like wipe the address book, or just set off an alarm if you loose it in the house!
Click to expand...
Click to collapse
Tony, do you have it working on a Topaz?
I have it working on a Touch Diamond 2, aka a topaz, afaik.
Superman_1122 said:
I have it working on a Touch Diamond 2, aka a topaz, afaik.
Click to expand...
Click to collapse
Did you have to do anything special to get it working? Other than just run the CAB and start sending it messages beginning with rt#? Maybe there's something silly that I'm missing. I'll go read the directions again just in case...
there is a simillar function of Microsoft's Myphone i think
valkounnis said:
there is a simillar function of Microsoft's Myphone i think
Click to expand...
Click to collapse
Not quite similar. It only shows locations where the last known sync was executed, or where the last pics were shared....
Remote Tracker gives you a sms with lat/long position of the phone (I also got a Topaz; it works).
reperion has this function (use in stealth mode). Shows last reported position on Google Maps. Works very well... reporting distance is configurable, obviously accuracy depends on last GPS fix, but could locate it to nearest building.
I use it on my Diamond 2 and other WM phones and it works perfectly.
www.reperion.com
Maybe found the problem?
I found some additional information in another forum here which may be relevant. This program apparently uses a Windows Mobile function called the message interceptor. This function appears to not work if the following registry keys are present:
HKEY_LOCAL_MACHINE\Software\Microsoft\Inbox\Svc\SMS\Rules:{1000BC1C-F4A3-4210-B197-4AEBF2CEE6F5}
HKEY_LOCAL_MACHINE\Software\Microsoft\Inbox\Svc\SMS\Rules:{3AB4C10E-673C-494c-98A2-CC2E91A48115}
HKEY_LOCAL_MACHINE\Software\Microsoft\Inbox\Svc\SMS\Rules:{77990A0E-60B8-4103-B9AF-17157E4274FD}
HKEY_LOCAL_MACHINE\Software\Microsoft\Inbox\Svc\SMS\Rules:{A0C65276-77C8-48ef-B2AF-049DCB4171CD}
I have three of these keys present on my device.
Could someone with a Topaz and a working installation of Remote Tracker check and see if you have these registry keys?
Also, if anybody knows anything about these keys, particularly whether or not it's safe to delete them, please post.
Thanks!
like the sound of this app, very useful

[APP] Vehicle Switch -- Rotate Screen, turn on BT quickly & easily

I use my HTC Touch for GPS in the car, as well as being my media player, and also (obviously) as a phone.
This usage finds me frequently rotating the screen to the right, and turning on BT when I get in the car. Then when I get out, I have to undo those changes. It's a number of clicks to do this each time, and becoming something of a hassle.
I'm thinking of writing an application to automate the process. I wanted to get some feedback before I start.
1. Is anyone else interested in a project like this? (Note that this is just the beginning, additional functionality could be added, feel free to brainstorm!)
2. Is anyone who is interested in this project willing to beta-test this software?
Thanks for your input!
Shidell
I have a TILT with the 85 degree hardware mod
use it in the car all the time. trouble is that I drive different cars, and do not have a mount. so I usuall have to have it sideways all the time, because of the charger, and rarely able to flip the keboard.
I have an HV switch in Quick menu, but it usually turns the screen the wrong way. also manila keeps making the screen go back to portrait.
I would like to have a quick hardware button to switch, but again, manila gets in the way. do you think you can eliminte that problem?
in other words, yes I am interested if that issue can be solved.
hi, i´m interested too man, but i have a touc cruise, so also i can be a betatester,
and i´m a programmer too. so.---
Totally want this!
You might want to check out G-Profile first, it will do this and more. Profiles can be set based on time, cell id, running programs, or even equipment, such as being connected to power and headset at the same time. You could have G-Profile launch the app you want, set the volume, ringers, screen orientation and brightness, and turn on/off BT and WiFi when connected, then automatically switch it all back when you disconnect. Best part of all though, when profiles are activated, instead of linking to a single app to be executed, you can have it run a mortscript, upon which the possilities are pretty much limitless. You could get in your car, plug in your phone and have the script ask you if you want to listen to music, or navigate, or both. I use this setup with a script that asks me if I want C-apiSRO or Coreplayer when I get in my car when I connect my BT headset.
Oh I kinda forgot the important part, here is the link.
http://www.ageye.de/index.php?s=gprofile/about
Its from the same dev that made G-alarm, which should give you an idea of how nice this app is. Oh and best part is that its free.
I'd love to see a simple application that will do this. I would personally like to see an icon that will rotate the screen 180 and 270 with a simple tap. Bluetooth part would be nice as well (personally wouldn't use it much because i have my bluetooth connected to my headphones or car bt).
+1 on G-Profile. It'll allow you to create profiles that control radios, orientation, and launch programs. Of course, you could also just make use Gyration or some other similar rotation program to allow you screen to rotate via the G-sensor.
Hi Guys - I've got a Mortscript script somewhere that does this, although in my case, it was to flip the display on my Athena 180 degree's, as it was suspended upside down on the car holder I've got. I ran it from the HTC Manila 2d programmes tab.
I'll try and dig it out, but really, it wasn't complexlicated - worth a look certainly.
(Hey Diablo, I played with Ageye's implementation, and found it to be similar to what I'm working on, with more options. This is a fun project though, so I'm going to stick with it if there's interest.)
This is simply a proof of concept to prove it works functionally.
Please note that there is no installer (.cab) package right now, nor any icon, and no application settings. When you launch the application, it will determine your screen's current orientation and flip it, and it will also determine your BT's current setting and flip it. That's all this will do in it's current state.
What I need from you:
What model phone do you have?
Did the functionality work as I described? Any problems?
How would you change/improve this application?
I am considering adding a first-run type setup to determine how you want to run the flip--IE just turn on BT (as a shortcut), etc. Ideas?
Note: As it stands right now, V15 of NFSFAN's ROM using M2D will not "flip" orientation. Titanium is fine, but M2D doesn't like the "flip" and the screen will revert to standard orientation, even though the application runs as normal and will enable/disable BT.
Simply unzip this package and place it on your phone's memory--local, SD card, it doesn't matter. Make sure you include the .exe and the .dll. Then you can run the application by clicking it. Note that you can click and hold on the app. to send a shortcut to "Programs", to make it convenient to launch.
http://www.easy-share.com/1907580543/Vehicle_Flip.zip
Thanks!
Idk if you have found a solution for this yet but all this could be done quite easilly with mortsript. Then all you would have to do is run this when u get in and then run when u get out and it would do everything for you.

Categories

Resources