[RELEASE] HTC Hub for everyone!

Search This thread

Heathcliff74

Inactive Recognized Developer
Dec 1, 2010
1,646
2,610
Hi,

You can download the rar's. They contain the xap. You can use any dev-unlocked device (also non-HTC). This was quite a reversing-adventure. I learned a lot.

A few remarks:
- This is not the latest version of the HTC Hub. It does not have the live-tile. Maybe I'll update later.
- I had to rewrite some parts of the code. It all works 100% but I think it can be done better, so maybe I'll update that later.
- Note the about screen :D
 

Attachments

  • HTC_Hub.part1.rar
    7.2 MB · Views: 16,601
  • HTC_Hub.part2.rar
    5.6 MB · Views: 13,482
Last edited:

fb401

Senior Member
Apr 26, 2006
657
44
Philly, PA
www.defconjive.com
Word! It works but it still *****es about not being able to reach HTC's service. Great job regardless Heathcliff.

EDIT: The wild thing about it is, I can actually reach into HTC's section of the Marketplace through this app. That's crazy.
 
Last edited:
G

GuestK00306

Guest
Hi,

You can download the rar's. It contains the xap. You can use any dev-unlocked device (also non-HTC). This was quite a reversing-adventure. I learned a lot.

A few remarks:
- This is not the latest version of the HTC Hub. It does not have the live-tile. Maybe I'll update later.
- I had to rewrite some parts of the code. It all works 100% but I think it can be done better, so maybe I'll update that later.
- Note the about screen :D

Good work. Works on my Omnia7, the graphics look like sh*t though on my lovely screen :p

I don't get any errors or anything here - weather/time/location all work great. As fb401 says - you can access the HTC Marketplace, but you can access any Marketplace app as long as you know the ProductID.
 

jessej

Senior Member
Nov 23, 2010
105
8
Does access to the other apps from the marketplace on the phone allow use of the excellent HTC flashlight app or any additional HTC apps?
 

Heathcliff74

Inactive Recognized Developer
Dec 1, 2010
1,646
2,610
Word! It works but it still *****es about not being able to reach HTC's service. Great job regardless Heathcliff.

EDIT: The wild thing about it is, I can actually reach into HTC's section of the Marketplace through this app. That's crazy.

Anyone having the message about not being able to reach the HTC server, plz verify that you have either Wifi or cellular connection and try refresh-button. It definitely works.

but I am getting errors unzipping with 7zip, what is the way you guys are successful with?

Download both parts in the same folder and use WinRar.

Does access to the other apps from the marketplace on the phone allow use of the excellent HTC flashlight app or any additional HTC apps?

No, it won't work. You can try to install, but the program will try to use the HTC drivers and hardware, and it will quit. These programs need (a lot of) work to get running on other devices. Look here and here.
 
Last edited:

fb401

Senior Member
Apr 26, 2006
657
44
Philly, PA
www.defconjive.com
Anyone having the message about not being able to reach the HTC server, plz verify that you have either Wifi or cellular connection and try refresh-button. It definitely works.

I was still plugged into my laptop in airplane mode. When I disconnected and went back, it worked perfectly.

As fb401 says - you can access the HTC Marketplace, but you can access any Marketplace app as long as you know the ProductID.
Sure you can, but there's literally no way inside of the HTC walls on my LG phone besides this hub.
 

buffalosolja42

Senior Member
Aug 19, 2007
1,111
22
Gainesville
getting crc failure from file htchub1

edit*** downloaded on fedora then transferred to vm win7 and looks like file is ok after crc check
 
Last edited:
G

GuestD2492

Guest
Excellent job, will be bookmarking this thread to see if the live tile gets added. Great work Heathcliff.
 

Heathcliff74

Inactive Recognized Developer
Dec 1, 2010
1,646
2,610
Is it possible to get the HTC Connection Setup app to work on a non-HTC phone?

I guess you're asking this to be able to get provxml working. Well, that's not really possible. Because the HTC Connection Setup calls the HTC drivers which will in turn process the provxml. So I would be able to get the HTC Connection Setup running, but it will not be able to call the driver on non-HTC devices. I guess in time we'll find the necessary security holes to get in the TCB chambers to execute these types of code and config files.

The OEM drivers are very usefull, because they provide (limited) access to the high-privilege TCB-chambers. The drivers contain hardware-specific functions and non-hardware-specific functions. Those non-hardware-specific functions (like registry- and file-system-access) are the most interesting for us. The drivers can be called from unmanaged code, which in turn can be called by managed code through a com-interface. But since we have no way to port drivers between devices (yet), those non-hardware-specific functions remain device-specific for now.
 

slysy

Senior Member
Jan 7, 2011
74
5
I guess you're asking this to be able to get provxml working. Well, that's not really possible. Because the HTC Connection Setup calls the HTC drivers which will in turn process the provxml. So I would be able to get the HTC Connection Setup running, but it will not be able to call the driver on non-HTC devices. I guess in time we'll find the necessary security holes to get in the TCB chambers to execute these types of code and config files.

The OEM drivers are very usefull, because they provide (limited) access to the high-privilege TCB-chambers. The drivers contain hardware-specific functions and non-hardware-specific functions. Those non-hardware-specific functions (like registry- and file-system-access) are the most interesting for us. The drivers can be called from unmanaged code, which in turn can be called by managed code through a com-interface. But since we have no way to port drivers between devices (yet), those non-hardware-specific functions remain device-specific for now.

Thanks for the response. I asked because the Samsung Connection Setup app doesn't support my network, so I can't configure or use MMS. I know that the HTC Connection Setup app does however, so I want to use it to configure my network settings. Do you think this is possible (I didn't understand everything you said, so sorry if this is a silly question)?
 

Heathcliff74

Inactive Recognized Developer
Dec 1, 2010
1,646
2,610
Thanks for the response. I asked because the Samsung Connection Setup app doesn't support my network, so I can't configure or use MMS. I know that the HTC Connection Setup app does however, so I want to use it to configure my network settings. Do you think this is possible (I didn't understand everything you said, so sorry if this is a silly question)?

Hmm.. I don't know about that. HTC Connection Setup is not a solution, because you don't have the necessary drivers on your device. Samsung has a set of predefined xml's in the \windows folder. Every country has it's own xml with the settings of the known network operators. There is a trick to configure one of these. Info is in this thread. But I'm not sure if there is an xml on your phone that contains the info for your network operator. Good luck.
 
  • Like
Reactions: slysy

domineus

Senior Member
Jun 16, 2007
2,388
202
Xiaomi Mix Fold 2
OnePlus Open
Hmm.. I don't know about that. HTC Connection Setup is not a solution, because you don't have the necessary drivers on your device. Samsung has a set of predefined xml's in the \windows folder. Every country has it's own xml with the settings of the known network operators. There is a trick to configure one of these. Info is in this thread. But I'm not sure if there is an xml on your phone that contains the info for your network operator. Good luck.

wow it works well
now the question is
will the youtube app receive the same treatment?
 

Heathcliff74

Inactive Recognized Developer
Dec 1, 2010
1,646
2,610
wow it works well
now the question is
will the youtube app receive the same treatment?

Haha. Well, I haven't taken a look at that one. But I can assure you that reversing a Windows Phone Silverlight app is a very complex task. I have done this once, so I could maybe do it again. Depends on how much of the HTC driver has to be rewritten for that app. But I probably won't do that very soon. The truth is that I did this mainly to learn about the inner works of Windows Phone and Silverlight. And I have a couple of other 'projects' I'm working on, so I want to focus on that. Maybe someone else will pick up the task for the Youtube app.
 

ronalgps

Senior Member
Mar 27, 2009
204
8
aalst
Heathcliff74

thank u for the hub

do you know any way to add driver to other OEM from htc

long ago i have omnia 2 and we could add some DLL to windows to make compatible with Samsung

do you think to with could be able to play with youtube app from htc i can get him open but i dont have connection
 

Top Liked Posts

  • There are no posts matching your filters.
  • 18
    Hi,

    You can download the rar's. They contain the xap. You can use any dev-unlocked device (also non-HTC). This was quite a reversing-adventure. I learned a lot.

    A few remarks:
    - This is not the latest version of the HTC Hub. It does not have the live-tile. Maybe I'll update later.
    - I had to rewrite some parts of the code. It all works 100% but I think it can be done better, so maybe I'll update that later.
    - Note the about screen :D
    5
    Thanks for your reply,
    I try to explain in a better way:

    I used Tom XAP Installer 1.2, added XAP File "HTC_hub.xap" and select install (on device).
    PC thinks... and after a minut the error say:
    Error Connection:
    - please make sure your phne was unlocked
    - please make sure you connected device to PC and Zune lunched

    I'm quite sure of both notes: I used chevron (with a note of unlocked device) and zune is working...

    ... any idea?

    Thanks

    The XAP still has ID_CAP_INTEROPSERVICES in it. Therefore you would need Interop Unlock. Your DVP doesn't have Interop Unlock. Tom's XAP installer doesn't give any specific errors, it will just fail with that error-message you got.

    But because of the changes I made to the HTC Hub, I don't think ID_CAP_INTEROPSERVICES isn't actually used anymore. That means, that if you remove it, you should be able to deploy it to a device which has only a regular unlock and no Interop Unlock.

    To remove ID_CAP_INTEROPSERVICES do this:
    - Rename the .xap to .zip
    - Extract the file WMAppManifest.xml
    - Open that file in a text-editor
    - Remove the line with ID_CAP_INTEROPSERVICES
    - Save the file
    - Put the file back in the zip (replace the original file)
    - Rename the .zip back to .xap
    - Deploy the modified xap to you DVP.

    Tell me if that works for you.

    Ciao,
    Heathcliff74

    PS. Funny to see that there are 9200 downloads and 13 people took the effort to hit the Thanks-button :eek:
    1
    Thanks for the response. I asked because the Samsung Connection Setup app doesn't support my network, so I can't configure or use MMS. I know that the HTC Connection Setup app does however, so I want to use it to configure my network settings. Do you think this is possible (I didn't understand everything you said, so sorry if this is a silly question)?

    Hmm.. I don't know about that. HTC Connection Setup is not a solution, because you don't have the necessary drivers on your device. Samsung has a set of predefined xml's in the \windows folder. Every country has it's own xml with the settings of the known network operators. There is a trick to configure one of these. Info is in this thread. But I'm not sure if there is an xml on your phone that contains the info for your network operator. Good luck.
    1
    What does the updated version have that this version doesnt.... the live tile I guess... but what does it show on the live tile? The weather? I've wanted this for quite sometime. I almost went with the HTC phone at ATT but decided to go with the samsung cause of the better screen... it was my first departure from an HTC phone in a long long time. I knew this would eventually work on our phones so it wasnt a make or break decision.

    Good job though! Theres a few people working on this already and you seemed to have beaten them to the punch! Unless of course they are working on the updated version or something :p

    Regardless... JUST AWESOME!!!! works perfect on my focus! Already pinned to start!

    Thanks.

    The new version shows a weather picture, temperature and location on the live-tile. I'm not sure what the other differences are.

    I only noticed HTC updated the hub, when I was almost finished reversing the old version. The newer version needs a bit more work. For the old version I had to rewrite some stuff. Mainly for foreign time-calculations, but also some code to access the HTC server.

    The live-tile info is stored in the registry, for which HTC specific drivers are needed. This probably needs to be reworked so that it'll read and write that info to and from the isolated storage in order to make it work.

    Apart from that it is a little bit more difficult, because the new version is obfuscated. But they did a really bad job in obfuscating, because almost all the important code is still visible.

    The biggest job was to find out how to decompile to a compilable project. There are A LOT of caveats to get there. And at first it seemed I had to extract and reattach all resources one by one. That would make it nearly impossible to do by hand. But I found a trick so I could let all the resources as they were and only extract the ones I really need to change. I took notes during the process, so I'm now able to get this working for many apps.

    I also did some research on code-obfuscation for Windows Phone 7 apps. And that is really disappointing at the moment. I tried a few of the big names in obfuscating. Downloaded the latest versions that are said to support Windows Phone 7. But most of them failed the simplest assemblies. I really tried all possible settings and assemblies etc. They could simply not produce protected assemblies that would actually run. I got some obfuscation working, but its a real pain to find out which options to use. It absolutely does not work right out of the box. And with the best configuration possible, there is still a lot of readable code. HTC Hub 1.5.0.0 proves this.

    I'm not sure when I have time to take a closer look on the new version of the HTC Hub. It may take a while, but I guess I'm going to do it sometime later.
    1
    Is the live tile also working?

    Live tile works but only if you have custom rom with built in HTC drivers. On stock roms it won`t work on non HTC devices.