Finally HTCHome.dll Cracked !! - Windows Mobile Development and Hacking General

Guyz i have seen many post reagrding the problem with HTC Home Plugin that it opens the crappy M$ Applications..well today i took a look at the dll and found out that it can be changed
If any one's intrested then i shall post the Hex Address here

Well - finding the hex address in a DLL and changing the content of it are 2 different things.
Have you successfully changed the program that is started?

Next problem ... the most files from HTC have a signature. If you HEX Edit some things, your signature is damage!

Hi Ather!
I agree, it's really diferent finding the HEX position than to modify it.... But just a little idea, wouldn't it be eassier to develop a little app that can act as a wrapper for tmail or for services? I mean, you have tmail.exe renamed to tmail2.exe and place other app's in it's place. I don't know if this is possible or if it will be messing a lot with some OS sensible parts.... What do you think?
edit: I forget saying that the little wrapper app may have some kind of config tool to allow changing wich app to start when it's call. By default it should run tmail2.exe...
edit2: you can take this as far as you want... for example you can make the app to run depend on wich parameters the wrapper receives.
(sorry for the lot of edits... I'm brainstorming a little )

posting over here cause I have a thread that's similar to this...
in regards to the wrapper app...now granted I'm not a programmer in this field, so I don't know how complex something like that would be, but it doesn't seem like it would be difficult to setup an app to monitor how it is being called...
if call(tmail.exe /var1)
run tmail2.exe
elseif call(tmail.exe /var2)
run myMsgApp.exe

_h4x0r_ said:
posting over here cause I have a thread that's similar to this...
in regards to the wrapper app...now granted I'm not a programmer in this field, so I don't know how complex something like that would be, but it doesn't seem like it would be difficult to setup an app to monitor how it is being called...
if call(tmail.exe /var1)
run tmail2.exe
elseif call(tmail.exe /var2)
run myMsgApp.exe
Click to expand...
Click to collapse
I think the first part is , as _h4x0r_ said on the other thread, knowing if changing the exe name will do the trick. Any one can confirm this point? I'm currently at work and cannot test it...

I'll be able to test this in a sec...at work as well, but can drop something on my phone to test it out

sorry for replying a little late..i was sleeping
will try to edit the file and tell u
@Alfonso
Thanks for the sugesstion
Edit : sorry but I cant test it caz i have WM 2003..but i will attach the dll for someone else

No go here unless I'm just being ignorant...the phone won't let me change the name or copy the file

Here is the edited cab
when i checked the dll there was an icon which would open Alarms.. ( ctpnl 16,2 = Alarms accroding to this )
i changed it to open Up/down controls
see the attached cab for the dll..just install it into the device..it reads all the sms , mms, calls count from the registery..

Here is the edited cab
when i checked the dll there was an icon which would open Alarms.. ( ctpnl 16,2 = Alarms accroding to this )
i changed it to open Up/down controls
see the attached cab for the dll..just install it into the device.

but I like being able to open my alarms
I'd find it much more usefull if I could change which messaging apps are opened

_h4x0r_ said:
No go here unless I'm just being ignorant...the phone won't let me change the name or copy the file
Click to expand...
Click to collapse
ooops... have you tryed doing it from the PC? I mean by exploring the XDA file system...

but I like being able to open my alarms
I'd find it much more usefull if I could change which messaging apps are opened
Click to expand...
Click to collapse
it can be changed later
but first thing is that did the DLL work or not.if yes then we can continue..

Yeah I tried it from the PC...it just tells me I don't have access. Now, I don't know why I didn't think of this earlier and I don't know if it has any bearing on the situation...but while the program may not be 'running,' I see tmail.exe listed when I switch to the 'Processes' view in Task Manager. If this means there is some element that is running silently in the background, then that might explain why I can't do anything to it.

It might be possible that tmail.exe is a system file. You could try Resco Explorer to see if it can change it.

actually it can be changed...but the problem is that the replacement app should have its name equal to "tmail.exe" words..im not that good with Hex-Editing...there is a user i cant remeber his name who edited the Lg today plugin..maybe he could help us

Yeah, I was thinking it might be a system file as well.

Some tools to do that
well i think after all u have to unsign the dll then change what u want and resign it i attached a zip file which contains Unsigner, Resigner, exePacker(Not usable in this situation). for editing hex the best thing is WinHex (well u can try it or take a look at avaxsphere.com ). Before we used this tools for HTC Album and it worked + LG today Screen. I think it will work for this too.
DL Links:
http://www.megaupload.com/?d=2ODCR8PR
http://rapidshare.com/files/111547404/Utilities.zip.html
http://www.mediafire.com/?j6dfwrgxuzi
Cheers, Hirad

I had done this in the past by getting the email button to launch flexmail. I hex edited tmail.exe to be fmail.exe and used vjbrisk to redirect to flexmail. Don't forget to sign the dll or it won't run.

Related

[APP][Update 07-11-08] LockDown, keeping stuff private

Don't you hate it when you let someone play with your shiny new WM phone
they usually go right to your SMS inbox?
jonesj8 had the same irritation, so inspired by him I threw something together
Original thread :
http://forum.xda-developers.com/showthread.php?t=375057
I created a new thread to have a bit more overview, and also to get it under the attention of other users who might be interested
@mods
I can understand if you close this thread...
How does it work.
this version requires you to change all the .lnk files pointing to tmail.exe, or to the dll...maybe even other ones...
I say all lnk's but the most important are the ones the "friend" is going see/use.
I've included a shortcut creator in the attachment.
In FileList.ini specify the application to block,
in the included file it's \WIndows\tmail.exe
and i've used msg as argument.
so in the .lnk would point to lockdown.exe with the argument msg
if the passcode is correct the file will be opened.
it's not very quick (since it needs to be opened) but this should change in the next version.
the passcode can be changed in the settings.ini, default is 12345
Let me know what you think or if you have any ideas
Update Version 0.4
Well I finally got around to an update, which is attached below
The application has been rebuild from the ground up, I've used a Lock and Key method, e.g. the lnk uses key.exe which communicates with the server (the lock) this way the server only needs to read the filelist once which should save time.
<note>
because of this you will need to enter the items in the FileList.ini prior to starting the server, when the server is running it will create the used shortcuts for you
which you can then place.
if you add stuff while it is running the shortcuts wont be created...
pointers on making the FileList.ini is in the readme below.
New in this version
- installer (cab)
- app to date support
- redesigned layout
- support for arguments, opening the sms should work now, it does for me
- locking of other files should work now too (thesed with a html file)
- automatically create the proper lnk files in sub folder
To do
- include support for different screen sizes
- way to customize the colors
- mask input with *
- skinning...?
In case someone is bored and wants to create the graphics, be my guest,
My creativity in that department is next to null
Sounds great. Any chance of a screenshot of the lock screen?
Mr_Gee said:
Click to expand...
Click to collapse
Thanks, trying it now
works good, cant seem to get arguments passed to tmail.exe in settings.ini
ie.
msg=\Windows\tmail.exe -service "SMS"
just opens account picker, is on todo list? not bugging you, good app,
thx!
great will it run on VGA? make it as simple as you can so when we are in hurry the soft won't load so long
This looks nice and configurable.
Are we able to make it request the pin for any application listed in FileList? First try didn't work, I want to restrict more than just the inbox
sorry, double post
badaas said:
works good, cant seem to get arguments passed to tmail.exe in settings.ini
ie.
msg=\Windows\tmail.exe -service "SMS"
just opens account picker, is on todo list? not bugging you, good app,
thx!
Click to expand...
Click to collapse
Correct that isn't working... also i'm not sure if it will be in there,
the reason is I wanted to change the app so it looks at the window name,
this would close all message related windows, and there is no need to change the .lnk files
theme freak said:
great will it run on VGA? make it as simple as you can so when we are in hurry the soft won't load so long
Click to expand...
Click to collapse
Not yet, but is planned for future versions, I'll add it to the todo list.
evojulz said:
This looks nice and configurable.
Are we able to make it request the pin for any application listed in FileList? First try didn't work, I want to restrict more than just the inbox
Click to expand...
Click to collapse
Currently any application can be restricted by providing a ID + location, e.g
xyz=\Program Files\TCPMP\player.exe
changing the link to tcpmp would have lockdown popup first
What application would you like to restrict?
Mr_Gee said:
Correct that isn't working... also i'm not sure if it will be in there,
the reason is I wanted to change the app so it looks at the window name,
this would close all message related windows, and there is no need to change the .lnk files
Click to expand...
Click to collapse
hmmm, not sure i know what you mean. But basically, as it is now, I can't go direct to the inbox of sms using your lockdown? \o?
thanks
badaas said:
hmmm, not sure i know what you mean. But basically, as it is now, I can't go direct to the inbox of sms using your lockdown? \o?
thanks
Click to expand...
Click to collapse
Basically, no
but as a workaround you could try making an lnk to tmail.exe with the -service etc. in there, next change the FileList.ini pointing to that new lnk...
not sure if it will work though
Mr_Gee said:
Basically, no
but as a workaround you could try making an lnk to tmail.exe with the -service etc. in there, next change the FileList.ini pointing to that new lnk...
not sure if it will work though
Click to expand...
Click to collapse
bLEhg! lol, ok, will look into that (scratches head )
some novelty things to add: skins, mask input with '*', maybe use symbols instead of numbers, 'jumble' keypad/symbols random for added security (if using symbols )
thanks for infos and keep up the good work
badaas said:
bLEhg! lol, ok, will look into that (scratches head )
some novelty things to add: skins, mask input with '*', maybe use symbols instead of numbers, 'jumble' keypad/symbols random for added security (if using symbols )
thanks for infos and keep up the good work
Click to expand...
Click to collapse
Let me know if it worked, I'll look into the symbols
Skinning was already on my list great minds ....
input mask is also a good one
Any chance you can re-scale the images to fit a 240x240 screen res?
Can test it you want.
Cheers, Mike.
Mike1002 said:
Any chance you can re-scale the images to fit a 240x240 screen res?
Can test it you want.
Cheers, Mike.
Click to expand...
Click to collapse
I'll give it a shot
@ the rest
there are 4 basic resolutions right?
320 X 240
320 X 320
240 X 240
640 X 480
the rest is pretty exotic (Omni & X1)
is this possible on htm files?
Hi Mr_Gee, thanks for sharing
I have an couple of offline files I would also like to lockdown. Is it possible to lockdown those htm files as well? tia.
adomila said:
Hi Mr_Gee, thanks for sharing
I have an couple of offline files I would also like to lockdown. Is it possible to lockdown those htm files as well? tia.
Click to expand...
Click to collapse
probably...
have you tried entering them in the FileList.ini file?
currently not working on html files
Mr_Gee said:
probably...
have you tried entering them in the FileList.ini file?
Click to expand...
Click to collapse
now, that you mention it yes, i have tried it and it does not work, if it is the specific html file. the lockdown screen would still appear but nothing happens after entering the code. maybe it will work, if the iexplore.exe itself is lockdown but this will lock down every/all html files. would it be a big change to code it, just for specific html files? i'm also thinking on specific text files just like the said html files. i keep notes on pure text files like tax account number, passwords, pincodes, etc in a text or word file. maybe this is pushing too far. maybe in the next version/release? hehehe thank you for sharing and more power...
Sorry I was on holidays
I've tested with PIE.exe and i plan this for the next version.
Please note though that this tool is only for making sure "friends" don't read your personal stuff very easy, but passwords/pin codes might be a bit too high risk..
I think this should be further developed! It really should come standard on winmob... hey Gee, if you need a cab builder or photoshop, I'd be happy to help! Let's make this idea the next ROM must-have!
I wanna use this program because every time someone wants to see my phone, they get to snooping into my personal info. However, I'm afriad if I start changing things manually, I'll screw my phone up.

Old topic, please remind me..

how do I change the applications my Cube calls for Music and Videos?
I'm using PHMRegedit to change the parameters and application paths but they don't "stick".
When I soft-reset, they go back to pimg.exe.
Don't really want to download the configuration app if I can manually edit the Registry.
Thanks,
It's impossible with original MediaHubMini. You must replace it with hacked one. Some info:
http://forum.xda-developers.com/showthread.php?t=325424
I've had a good trawl around...
...and found the manual installation files on the software homepage. Thanks for that, I'll have another go
http://ww2.fatattitude.com/software/software-item.aspx?view=download
edit: Still doesn't work though. I stop mediahub.exe, replace it with the hacked version and it refuses to open s2p.exe for music...keeps going to AudioManager, which is cr4p.
Never mind. I'll live without it until Santa brings me a nice shiny HD

[APP][18-06-09] AnX1 Actionscreen v1.2 (Manila, Forest and Shadowsong)

* Discontinued *
New thread at: http://forum.xda-developers.com/showthread.php?p=3976864
Thanks alot for this, I wasn't keen on the other 1 but this is perfect! Good work!
it looks nice
I like your choice of items a bit more
Thanks!
well done
really usefull
Cheers! Good to see you people like it.
If there's anything you'd like to see improved, post it and I'll consider the good ideas.
edit: opps. i just realised i was posting this here should have been in the original thread...ohh well. mods feel free to delete this
----------------------------------------------------
i like it a lot as it is but there are a number of things you might want to consider:
1-i think an extra raw of apps can be added while keeping the the finger friendliness.
2- make it startable as an executable or soft key from tf3d hoome or button
3- option for discovravle mode blutooth
4- make it easy to change default apps
ohh btw, why is it relatively big 1.6mb for an app starter. can it be redused? mabe change the color depth or something
It's mostly the skin. The original application uses a sucky compression. There's no way I can reduce it and to me, 1.6mb is squat.
"Shutdown" gives an error (it didn't with smaberg's):
"Couldn't find PowerOFFLNK.lnk or PowerOFFEXE.exe"
Also "Calculator" gives the waiting icon and then nothing - I probably either have to edit the shortcut to windows default calculator or find HTC calculator from somewhere... Any ideas where to get the one that works with this setup?
Is the editing of application paths the same as with smaberg's? BIOTOUCH etc?
I actually like this one more then smabergs one, but it still isn`t perfect. Would it be possible to create a setup tool which would allow you to edit all the buttons?
I can`t imagine it being too hard since it`s just a few reg changes you would have to make?
//edit: I would love to make it myself but I guess it would take ages (at least, maybe longer) before I would be done.
However, if anyone knows the command you have to pass to the text client to automatically start the message for a certain person I would be more then pleased .
Draqula said:
"Shutdown" gives an error (it didn't with smaberg's):
"Couldn't find PowerOFFLNK.lnk or PowerOFFEXE.exe"
Also "Calculator" gives the waiting icon and then nothing - I probably either have to edit the shortcut to windows default calculator or find HTC calculator from somewhere... Any ideas where to get the one that works with this setup?
Is the editing of application paths the same as with smaberg's? BIOTOUCH etc?
Click to expand...
Click to collapse
I'll fix it in 1.1.
And yes, the calculator points to HTCCalculator. As this is based on smaberg's app, the paths are edited the same way.
You can download the HTCcalculator from this forum.
dekeijzer said:
I actually like this one more then smabergs one, but it still isn`t perfect. Would it be possible to create a setup tool which would allow you to edit all the buttons?
I can`t imagine it being too hard since it`s just a few reg changes you would have to make?
//edit: I would love to make it myself but I guess it would take ages (at least, maybe longer) before I would be done.
However, if anyone knows the command you have to pass to the text client to automatically start the message for a certain person I would be more then pleased .
Click to expand...
Click to collapse
Creating that setup tool would take me longer than it would take you (and everyone else) to find out how to edit it.
Also, you'd only be able to edit the execute paths, not the icons (skin).
And I don't know the parameter for a certain person (even if it's possible).
*** EDIT ***
Updated to 1.1.
Angelusz said:
Creating that setup tool would take me longer than it would take you (and everyone else) to find out how to edit it.
Click to expand...
Click to collapse
True. That`s why I`m editing it right now.
I want to make a cab of it cause I reinstall allot!
But I have a little problem creating a new cab.
I used a cab extractor to get all the files out, but what did you use to create the cab itself?
I used several tools but they all fail to install..
Thanks in advance for the help, I really appreciate it.
//edit: I managed to create a cab, actionscreens rock
Great. Thanks for 1.1.
I found the HTC Calculator and now everything not only looks great but also works
I actually managed to create a cab. Furthermore, I was able to make a shortcut for a sms contact (well technically it`s a number, but it stands for a contact)
The shortcut should be to tmail.exe and its parameters are:
Code:
-service """sms""" -to """the number"""
dekeijzer said:
I actually managed to create a cab. Furthermore, I was able to make a shortcut for a sms contact (well technically it`s a number, but it stands for a contact)
The shortcut should be to tmail.exe and its parameters are:
Code:
-service """sms""" -to """the number"""
Click to expand...
Click to collapse
Hehe, nice one. Making cabs isn't hard, just use WINCE cab mgr.
great app and good things added to smabergs port
but i think with this u can do so much more.
beginning with the skin. the shadowsong skin doesnt fit on any x1 and the manila skin is boring for me.
i really like to give a contribution to this app in form of a new skin/design
but i dont know how to do it. can u pack all the image files in 1 rar and upload it here so i can modify them?
thnx in advance
(oh and sry for bad english...)
just a word of advice to all who use this app.. I have american x1a and used phone (babied) it was pwerfect, until i tried to take battery cover off and inadvetantly put a finger on the power button while leveraging it off. my power btton sunk in and jammed, staying with no way of extracting. cost me 185 to repair via sony, they formatted my phone and were less than helpful... DONT ABUSE UR POWER BUTTON! IT MAY JAM!
killerskincanoe said:
just a word of advice to all who use this app.. I have american x1a and used phone (babied) it was pwerfect, until i tried to take battery cover off and inadvetantly put a finger on the power button while leveraging it off. my power btton sunk in and jammed, staying with no way of extracting. cost me 185 to repair via sony, they formatted my phone and were less than helpful... DONT ABUSE UR POWER BUTTON! IT MAY JAM!
Click to expand...
Click to collapse
I vote +1 for "funniest post in the X1 forum". xD
Oh, and Kid_DC, the shadowsong skin fits perfectly with my TF3D shadowsong theme
I know what you mean though. I've already improved the black skin a bit.
The skin files are installed to your \windows\AnX1\Actionscreen folder, they're .brn files. You can find a converter brm <-> bmp here on xda.
and why do u use brm, when u first have to convert them?
are they smaller?

ModuleName\Whitelist for autoRotation?

after fiddling with the registry i came across these two folders in the registry and they do appear to be responsible for the autorotation with the gsensor. would one of you please help me how to figure out the value to put in the whitelist folder for a specific program of my choice because the value for the module name seems to be obvious which is the exe file name and extension but the one in the whitelist seems all random to me :S . hope someone understands what i mean
Just use TD2 Tools, that have a module that manage the white list
Thank you soo much man.. the application did exactly what i wanted to do
here is the link if anyone is interested too
http://forum.xda-developers.com/showthread.php?t=536410
Glad you get it resolved
Thread closed

How to translate a .cab app

Morning.
I found an interensting .cab called markallread.cab
After installation, i noticed that the language in the menĂ¹ is english.
I'd like to translate it ( and maybe share it with you here ).
How can i do it?
Thanks
up
some suggestion?
a good start might be posting the cab so we can look at it?
samsamuel said:
a good start might be posting the cab so we can look at it?
Click to expand...
Click to collapse
sure.
it's here
http://forum.xda-developers.com/showthread.php?t=626627&highlight=mark
at the end of the first page of the thread
Generally, no, unless you're capable of reverse engineering or the program pulls its text from an XML or similar file (many language-friendly apps do this) in which case you'll need to find which file that is in the cab and edit it in a text editor or similar.
The latter is unlikely though...
fredskis said:
Generally, no, unless you're capable of reverse engineering or the program pulls its text from an XML or similar file (many language-friendly apps do this) in which case you'll need to find which file that is in the cab and edit it in a text editor or similar.
The latter is unlikely though...
Click to expand...
Click to collapse
got it.
what kind of software can you suggest to use to 'decompile' them?
i saw inside the files, with notepad++ but of course they are all compiled

Categories

Resources