Steps towards extending Touch Flo 3D Weather panel - Touch Diamond, MDA Compact IV General

I believe I found the list of cities available in the weather panel of touch flo 3D. For my PDA it's called:
2330fc3c_manila located in the windows directory.
Unfortunately it is not that easy to modify: it is a SQLite database file (as clearly indicated by the first bytes "SQLite format 3")
when I find the time I might try to load up that file in a SQLite environment on my PC - let's see if it's possible to add cities to the list.
cheers,
Alex

That file is clearly a SQLite 3 database file - I loaded it up using the sqlite3.exe from
http://www.sqlite.org/download.html
and dumped all cities with
"select * from cities;"
City entries are dumped in that way (short excerpt):
Code:
3179|Zlatoust|||Russia|||ASI|RU|RS013|ZLATOUST
3180|Zlatoust|||Russia|||ASI|RU|RS057|ZLATOUST
3181|Zoetermeer|||Netherlands|||EUR|NL|NL012|ZOETERMEER
3182|Zonguldak|||Turkey|||MEA|TR|TU000|ZONGULDAK
3183|Zrenjanin|||Serbia And Montenegro|||EUR|CS|YI003|ZRENJANIN
3184|Zunyi|||China|||ASI|CN|CH008|ZUNYI
3185|Zürich|||Switzerland|||EUR|CH|SZ026|Z%fcrich
As you can see the character encoding is messed up for special characters - so that would be something to work on.
tomorrow I'll try adding a city and packing that file back onto my PDA. however I don't see why this wouldn't work.
Eventually that should probably packed into a WM6 application with SQLite compiled right into it?
Cheers,
Alex

Discovered an America Sorry Maybe you can look here.
http://forum.xda-developers.com/showthread.php?t=397599

Related

Weather PlugIn on HTC Home Page not updating.

The weather plugin is not updating on my tilt. I keep getting "Unable to retrieve data for selected city." Has anyone figured out how to fix this problem?
I've seen that too -- it's failed when connected to two different WiFi networks, so I think the problem is on the server end (accuweather.com, IIRC).
Good to know!
Same here, this morning I couldn't connect. Yesterday it was working fine, but last night I loaded in a new 'power status' application... Good to know it's not something I did!
Same here on my AT&T Tilt since Sunday night.
Mine just started this morning. Accuweather's site is working fine but since I'm not the only one it must not be my phone or connection.
I'm in the process of reading through and trying this fix:
http://forum.xda-developers.com/showthread.php?t=319187
The HTC home apps floating around have been modified so that they use a custom city database that spawns your requested city's forecast. This is done via a weather server that's owned not by HTC or accuweather, but by a private person (he's a member on thee forums, N2A).
N2A recently made changes to the way the data is pulled from his server. No longer can it use the modified IP-based hosts entries (which is what it was doing before).
The best way to get weather working again is to install N2A's patched home plugin then add the city to the XML per his instructions.
I used the patched Schen 2.1 HTC Home plugin and it works awesome again.
http://forum.xda-developers.com/showthread.php?t=319187
Why are we using his server instead of downloading from accuweather?
decimusmaximus7 said:
Why are we using his server instead of downloading from accuweather?
Click to expand...
Click to collapse
This plugin was made by HTC but never really intended to go to US market. The setup between accuweather and HTC only allowed for certain cities, and only a limited number of US cities are in the orignal database. The accuweather data just isn't there for all cities, I've tried following the syntex in the weather XML file and tried adding my home town. It just wouldn't work. So N2A modified the code int he plugin to point to his server. HTC Home Customizer does the same thing, when using the custom db, it redirects the request to N2A's server first.
N2A has made some changes and the old method is no longer working. You have to download one of his recently patched home plugins and enter the city zip code into XML file as instructed.
Ok I deselected my HTC Home in the Today settings and then downloaded "For other devices: UPX compressed" from http://forum.xda-developers.com/showthread.php?t=319187.
This is Schen's 2.1 with N2A weatherpatch. After this install I am able to add my custom city with HTC Home Customizer 1.0b without having to edit the XML files.
Just thought I'd share my success.
I had this same problem but that was from installing HTC Home Customizer. After I uninstalled HHC it still did the same thing. I had to hard reset and start from fresf again to get my weather working again. Does anyone using HHC have that same problem or did I do something wrong?
Could the program point to another server???
Could the software point to another server? ie:www.weather.com
www.nws.noaa.gov
www.accuweather.com
weather.yahoo.com
Hello, with the same problem since installing HHC.
ok people, this is an easy fix.
Uninstall prior versions, install the 2.1 version, find the weather XML file in \htchome directory, save the file to your PC, modify the file with the proper cities you want, goto the weather tab, click on the city and pull the new city you just added to the XML file. DONE!
It can be done in 5 minutes or less. This si not the fault of N2A nor the author of HHC. There's just been a change of the way the data is acquired, this was done to help users of certain networks to be able to use HTC Home.
Thank you smittyofdhs,
but "install the 2.1 version", of HHC ? or htc home plugin?
yeantbron said:
Thank you smittyofdhs,
but "install the 2.1 version", of HHC ? or htc home plugin?
Click to expand...
Click to collapse
No problem....
2.1 of plugin
HHC is only at ver 1.0b5
-Smitty
Newb trying to help!
Ok, here's the weather fix that worked for me. I am Currently using Dutty's TouchFlo Hybrid No.2 Final and HHCv.10b5 on my Tilt.
The following info was derived from N2A's post HERE. I just wanted to provide the instance specific fix for as it seems this might be a popular configuration. Hope its a good first post! Again this is what worked for me!
Pre-fix measures: In the HHC program be sure the weather database is set at Default.
Fix:
1) Install sdkcerts.cab to your device. Soft reset. (not sure if you have to reset but thats how i did it)
2)Install KaiserHTCHomeDLL.CAB. (Thanks N2A) This users post can be viewed HERE, This is the user that runs the weather server and has created the fixes. I belive! Much Credit to them.
3)Browse to My Device\WINDOWS\HH_0409_WeatherCities.xml. Activesync and Copy this file to Your Desktop Pc. If your having trouble seeing your Windows Directory from your PC start file explorer from your device and browse to the HH_0409_WeatherCities.xml file. Copy the file to My documents on the device then copy the file file to the PC.
4)On the PC, right click the HH_0409_WeatherCities.xml file. Select "Open With" then "Notepad".
5) In Notepad each location will appear as so. <city name="Atlanta, US" loca="NAM|US|GA|ATLANTA " land="United States "/>
6)Copy one of these lines and paste it directly under the original.
7)Edit the new line to reflect Your City like so. <city name="Your City, US" loca="xxxxx" land="United States "/> (xxxxx represents the Zip Code of the city your adding)
You can add more than one city if you choose.
8) Save your changes.
9) Replace the current .xml file in my documents with the one you just edited.
10) From your device, Open Total Commander then open the My Documents folder, browse to the HH_0409_WeatherCities.xml and select the "Copy/Move" option. Press the "Tree" button, highlight the Windows folder, press OK then press the "Move" button followed by the "Overwrite" button. Close Total Commander.
11)Select your city by going to the weather tab, and clicking on the area below "Weather". Choose your local town/city from the list.
12) Soft Reset.
Notes: The "US" inside the city name section of the .xml file can be changed to represent your state two letter postal code.
If your not using this configuration or just want more info you can visit N2A's post HERE.
Much thanks to all the pros that make this possible!
decimusmaximus7 said:
Ok I deselected my HTC Home in the Today settings and then downloaded "For other devices: UPX compressed" from http://forum.xda-developers.com/showthread.php?t=319187.
This is Schen's 2.1 with N2A weatherpatch. After this install I am able to add my custom city with HTC Home Customizer 1.0b without having to edit the XML files.
Just thought I'd share my success.
Click to expand...
Click to collapse
thanks for your post. i followed your instructions and it works just like it used to before the problem.
Anyone having problems with SPB Weather not updating either? It never gets to the forecast. Worked fine before I installed the cut-down no-bloat Tilt ROM from 11/30.
This works http://forum.xda-developers.com/showthread.php?t=319187

M2D Weather - Adding Custom Cities Tutorial

I just copied my other post to make it easier to find over here. Hopefully you will all find it useful and enjoy the information.
For those who might not understand how to do it, just wanted to post this guide here too.
What you need:
1) HH_0409_WeatherCities.xml file. I have attached one below which you can use, or alternatively you can copy the one from the your /windows folder.
2) If you don't have the version which is already patched then you will need the N2A patched file attached below as well.
Here are the steps:
1) Open HH_0409_WeatherCities.xml using Notepad.
2) You will see many cities listed like this:
<city name="Anchorage, US" loca="NAM|US|AK|ANCHORAGE " land="United States " /> (original)
<city name="Ketchikan, AK" loca="NAM|US|AK|KETCHIKAN" land="United States" /> (copied and edited)
Simply copy one of the cities from your country, or state and then edit the city information. You will notice in the example above i have changed "Anchorage, US" to "Ketchikan, AK" as this is just what will display on the screen. The section marked loca=con"CONTINENT|COUNTRY|STATE|CITY" must be typed in correctly or else you will not get any data.
3) Repeate step 2 for as many cities as you would like to add.
4) Disable touchflo on the today screen
5) Copy Manila2D.exe (if you are not using the version already patched), and your newly edited HH_0409_WeatherCities.xml file to the /windows folder.
6) Enable touchflo on the today screen again.
7) Go to weather and add new city, the new cities should be available to you. I would remove any old cities you had before as well.
Weather won't download via edge or 3g:
For those of you still having problems with the weather plug-in here is another thing I did to fix it:
1. Go to Settings - Connections - Connections - Advanced - Select Networks - Edit (MEdia Net) - Proxy Settings -> UNCHECK BOTH OPTIONS
2. Soft Reset
It should work fine
UPDATES
banzaiwolfe said:
As a side note, I was able to just use the Zip code instead of NAM|US|AK|KETCHIKAN.
Click to expand...
Click to collapse
polyrhythmic said:
Scotchua, nice tutorial. I've been using several of your fixes since I discovered them. However, the one note missing from your Manila2D Weather Custom Cities tutoria is how to determine the loca="NAM|US|AK|KETCHIKAN".
I have the solution! For most US locations, you can use the 5-digit ZIP code, but to determine ANY location, including outside the US, use this link to AccuWeather's RSS.
Simply put in your location as instructed in the 'Choose a location' field and click 'Set'. (For this example, I used Whistler, Canada.) The page then generates a URL for you, which looks like accuweather.com/rss/liveweather_rss.asp?metric=0&locCode=NAM|CA|BC|WHISTLER. The piece after locCode= (which I've hilited in Red) is what goes in the loca="" field in the XML file.
Then complete your tutorial, and choose the custom cities! Hope this helps someone else looking to make a quick fix.
Click to expand...
Click to collapse
Here's An Entirely New Method. I tried and it works on PDA V9 (Only one i tried it on).
macrossmerrell said:
Hi all,
Here is what I did to fix my the darn weather problem using my AT&T Tilt through MediaNet.
1. Make a copy of the HH_0409_WeatherCities.xml in the Windows folder.
2. Modify the file to include your info. (for me the zip code worked). See the examples below:
Code:
<city name="Idaho Falls, ID" loca="83406" land="United States"/>
<city name="Idaho Falls, ID, US" loca="NAM|US|ID|IDAHO-FALLS" land="United States"/>
3. Copy the HH_0409_WeatherCities.xml back to your device (your storage card or My Documents)
4. Disable TouchFlo in your Today Screen settings
5. Using TotalCommander overwrite the HH_0409_WeatherCities.xml file in the Windows folder
6. Go to Settings, Connections tab, Connections program and select the "Manage existing connections" option.
7. Click the Proxy Settings tab and uncheck the "This network uses a proxy server to connect to the Internet" option.
8. Click the OK at the top left.
9. Once again, select the "Manage existing connections" option.
10. Click the "Edit..." button for your MediaNet or ISP connection
11. Click Next, Next
12. Click the "Advanced..." button
13. Click the Servers tab at the bottom
14. Click "Use specific server address" and enter the two following addresses for DNS and Alt DNS:
208.067.222.222
208.067.220.220
15. Click OK at the top, then Finish at the bottom, click OK again at the top, then OK again.
16. Reenable TouchFlo in your Today options
17. Go to the Weather Tab and Add your city
18. Enjoy
I have tested the solution on are Garmin's ROMs, but it should solve proxy server issues and DNS issues relating to AT&T's seriously out of date default DNS servers (the proxy server uses an up to date DNS server).
The above DNS servers are from OpenDNS www.opendns.com
Please post and/or PM me if this solution works for you. I've been frustrated at the lack of working weather for my area, so this is the crazy solution I came up with!
Merrell
Click to expand...
Click to collapse
Any Suggestions
Hi, I've done everything. However when I try to copy the new file I created with the HH_0409 exe there's problems.
1) when i go into windows on my device and go the the HH_file it will not let me copy it or deleate it, so i could then put in the new file.
2) when I try to copy and paste my new file titled the same HH_0409_WeatherCities to the Windows in device I get a error message that reads (error copy file, cannot copy HH_4090_WeatherCities access is denied. Be certain that there is enough free storage memory that the destination is not write-protected and that the file is not currently in use.)
I have unchecked TouchFlo as stated and done everything as listed. I'd somehow had this working when using MD2 but now that I'm using the Solace 1.5 rom, I'll be darn that I can get this to work. I'm trying to put Millsboro, DE USA into the darn thing. If you have any suggestions I'd be greatly appreciative.
Thank you in advance.
Beachboyde/Jon
beachboyde said:
Hi, I've done everything. However when I try to copy the new file I created with the HH_0409 exe there's problems.
1) when i go into windows on my device and go the the HH_file it will not let me copy it or deleate it, so i could then put in the new file.
2) when I try to copy and paste my new file titled the same HH_0409_WeatherCities to the Windows in device I get a error message that reads (error copy file, cannot copy HH_4090_WeatherCities access is denied. Be certain that there is enough free storage memory that the destination is not write-protected and that the file is not currently in use.)
I have unchecked TouchFlo as stated and done everything as listed. I'd somehow had this working when using MD2 but now that I'm using the Solace 1.5 rom, I'll be darn that I can get this to work. I'm trying to put Millsboro, DE USA into the darn thing. If you have any suggestions I'd be greatly appreciative.
Thank you in advance.
Beachboyde/Jon
Click to expand...
Click to collapse
I use total commander (which i have added as an attachement to the first post) to copy the files. If you have tf2d, and done a soft reset, but still cannot copy the files using total commander then i really don't know why your files cannot be overwritten. I've honestly never had that problem before, so i just don't have anyway to help you.
I also got that same error when I was using file explorer but I did get it to work when I used Total Commander.
I downloaded the file to my desktop.
Then opened it with notepad.
Added my city
I then choose to save as and selected the file on my desktop to be overwritten.
I copied it to my storage card.
I then copied it using total commander to the windows directory with TF2d disabled.
soft reset
enabled TF2d and it was there.
Can you give example of with zip code. I tried it using the info off the rss feed hyperlink and still nothing. Thanks.
turcomora said:
Can you give example of with zip code. I tried it using the info off the rss feed hyperlink and still nothing. Thanks.
Click to expand...
Click to collapse
First Post Updated
NOt working for me
Scotchua, thanks for taking the time to put this together. I have edited my HH_0409... file and put the cities in. Now I am able to select the custom cities as new locations but I get the "unable to download..." message for those cities whil the original cities will download weather just fine.
Any ideas?
thanks.
good stuff
iamdamon said:
Scotchua, thanks for taking the time to put this together. I have edited my HH_0409... file and put the cities in. Now I am able to select the custom cities as new locations but I get the "unable to download..." message for those cities whil the original cities will download weather just fine.
Any ideas?
thanks.
Click to expand...
Click to collapse
you need to either copy the patched manila2d.exe file over to /windows or change the DNS server addresses. I tried both methods and they work. They're both in the instructions.
Thanks!
scotchua said:
you need to either copy the patched manila2d.exe file over to /windows or change the DNS server addresses. I tried both methods and they work. They're both in the instructions.
Click to expand...
Click to collapse
Hey I appreciate the help...I am up and running now. I had saved the Manila2D.exe file to my storage card--I thought I just had to run it like a .cab but obviously (I overlooked it before) you have to save it to /windows. (I didn't have to mess with the DNS settings and I was able to simply enter using the zip code method.)
Guys like you are an asset to the forum...
scotchua said:
I use total commander (which i have added as an attachement to the first post) to copy the files. If you have tf2d, and done a soft reset, but still cannot copy the files using total commander then i really don't know why your files cannot be overwritten. I've honestly never had that problem before, so i just don't have anyway to help you.
Click to expand...
Click to collapse
can you do a step by step using total comander, I stil get a message that the files can not be replaced
I have the same problem. I am using a touch cruise with chavon bravo's rom. Cant move the manila file to windows.
NOTE: OPEN THE XML WITH NOTEPAD, NOT WORDPAD.
Word pad will translate foreign characters and will corrupt the XML file.
I did the step by step instructions, copied both files to the windows folder, and then restarted touchflo. Wheni go to Select location, its completely blank. Any ideas on this one?
still nothing
i'm using hyperdragon IV IOLITE, with touchflo but same trouble, when i've update the XML the new location appears, but when i sync nothing comes, but if i overwrite the patched Manila2d.exe now doesn't come up the manilla.
i don't need the Connection setting, cuz i'm a Mexican user, i've my own settings.
any idea, anybody know if the Hyperdragon IV IOLITE has already the manilla patched version?
this is the change in the XML NAM|MX|MX019|MONTERREY, the original MONTERREY has MX005 and comes with other weather forecast not from my city
i've tried two ways, overtwritin' the original Monterrey item, and adding another as MonterreyNL, and as i told you, in both ways the new setting pops now but can't get weather and in the other locations JUST FINE!!
Custom M2D Weather
hi guys, maybe I have the definitive solution to setting new cities on M2D weather. (or at least on my Kaiser go on)
1) in M2D weather set one city whatever you want is indifferent.
2) disable touchflo in today setup
3) open REGISTRY EDITOR and go on HKEY_LOCAL_MACHINE
then open software, then open HTC, then open Manila2D, then open Weather here you have two choice "0" and "setting" in both of them there are two item: "Location" and "Location Code". (you have to modify the item in "0" and in "setting")
So, when you tap in Location, you have to insert a string like this:
Caprese Michelangelo, It (first city name and after the nation)
When you tap in location code, you have to insert a string like this:
eur|it|it016|Caprese Michelangelo
If you want repeat for other city. At the end enable touchflo on the today screen again and upgrade the weather.
Work fine for me on my Tytn II.
original manila
where can i get the original manila2d? cuz i dont like the patched one
pincopinco,
You the man!! Just tried it on my TyTNII and worked first time! Outstanding!
pincopinco said:
hi guys, maybe I have the definitive solution to setting new cities on M2D weather. (or at least on my Kaiser go on)
1) in M2D weather set one city whatever you want is indifferent.
2) disable touchflo in today setup
3) open REGISTRY EDITOR and go on HKEY_LOCAL_MACHINE
then open software, then open HTC, then open Manila2D, then open Weather here you have two choice "0" and "setting" in both of them there are two item: "Location" and "Location Code". (you have to modify the item in "0" and in "setting")
So, when you tap in Location, you have to insert a string like this:
Caprese Michelangelo, It (first city name and after the nation)
When you tap in location code, you have to insert a string like this:
eur|it|it016|Caprese Michelangelo
If you want repeat for other city. At the end enable touchflo on the today screen again and upgrade the weather.
Work fine for me on my Tytn II.
Click to expand...
Click to collapse
I seem to have deleted a DWORD in HKLM/SOFTWARE/HTC/MANILA 2D/WEATHER/SETTINGS because the keyboard was in the way and I rewrote a DWORD by mistake. Could anyone please list all DWORDS under HKLM/SOFTWARE/HTC/MANILA 2D/WEATHER/SETTINGS?
FINALLY a simple fix-Thanks!
pincopinco said:
hi guys, maybe I have the definitive solution to setting new cities on M2D weather. (or at least on my Kaiser go on)
1) in M2D weather set one city whatever you want is indifferent.
2) disable touchflo in today setup
3) open REGISTRY EDITOR and go on HKEY_LOCAL_MACHINE
then open software, then open HTC, then open Manila2D, then open Weather here you have two choice "0" and "setting" in both of them there are two item: "Location" and "Location Code". (you have to modify the item in "0" and in "setting")
So, when you tap in Location, you have to insert a string like this:
Caprese Michelangelo, It (first city name and after the nation)
When you tap in location code, you have to insert a string like this:
eur|it|it016|Caprese Michelangelo
Click to expand...
Click to collapse
Man, thank you, thank you, thank you! This is the first fix that worked easily without messing up something else. City data now updating like a charm on my Vogue. Thanks again for sharing.

HTC Weather, problem & fix

I thought I would add this here unless anyone else runs into the same problem. I broke my HTC Weather yesterday while trying to upload local cities into it. I am running the Dec 03 release of HyperDragon, but HTC Weather seems to be the same (at least in terms of files to edit) across different platforms.
After adding my local city, and uploading it back to the phone when I went into the weather tab to add a new city, I was unable to search for any cities. In fact the search screen contained no entries at all. Essentially, I corrupted the xml file, and the phone was unable to read it.
How I broke it:
Be careful what you edit with. I just opened the file with word pad in Vista to copy my new city information, but the xml file and word pad don't like each other. I found that the tilde ( ` ) <--- that character appearing over letters was unsupported in word pad. The xml file was unable to then read it. It saw it as corrupted data.
To fix it:
I just deleted the offending cities with tilde's in them. I didn't need them anyways. However, one could also just edit the file with a better program and re-upload it to the phone. Once I fixed the file, HTC Weather saw my new cities and was more than happy to read them.
Maybe someone else already went over this. I don't know. But I know I searched on the forum for quite some time without finding out what I did wrong.
AT&T tilt running Hyperdragon
The first mistake was editing an XML file with wordpad. Try using Komodo next time. Always use the proper software for certain editing functions.
Heres a link to the Freeware Komodo XML Editor.
http://community.activestate.com/products/Komodo
didnt I say that
SpiritOne said:
I thought I would add this here unless anyone else runs into the same problem. I broke my HTC Weather yesterday while trying to upload local cities into it. I am running the Dec 03 release of HyperDragon, but HTC Weather seems to be the same (at least in terms of files to edit) across different platforms.
After adding my local city, and uploading it back to the phone when I went into the weather tab to add a new city, I was unable to search for any cities. In fact the search screen contained no entries at all. Essentially, I corrupted the xml file, and the phone was unable to read it.
How I broke it:
Be careful what you edit with. I just opened the file with word pad in Vista to copy my new city information, but the xml file and word pad don't like each other. I found that the tilde ( ` ) <--- that character appearing over letters was unsupported in word pad. The xml file was unable to then read it. It saw it as corrupted data.
To fix it:
I just deleted the offending cities with tilde's in them. I didn't need them anyways. However, one could also just edit the file with a better program and re-upload it to the phone. Once I fixed the file, HTC Weather saw my new cities and was more than happy to read them.
Maybe someone else already went over this. I don't know. But I know I searched on the forum for quite some time without finding out what I did wrong.
AT&T tilt running Hyperdragon
Click to expand...
Click to collapse
Next time use notepad that is what i use...also the XML file is in my download section go there and download it open it in notepad and edit then move it into the windows folder...u should be good to go..
How did you manage to get adding cities to WORK?
I followed the instructions that have been posted around, but the URL fragment is NOT as displayed in those posts anymore on www.accuweather.com.
Going to htc.accuweather.com from my Kaiser gets me something that looks SOMEWHAT similar, but its not the same - if I try to use the same format that other US cities are in for mine, I can locate it in the list but it won't update.
Any help?
Genesis3 said:
How did you manage to get adding cities to WORK?
I followed the instructions that have been posted around, but the URL fragment is NOT as displayed in those posts anymore on www.accuweather.com.
Going to htc.accuweather.com from my Kaiser gets me something that looks SOMEWHAT similar, but its not the same - if I try to use the same format that other US cities are in for mine, I can locate it in the list but it won't update.
Any help?
Click to expand...
Click to collapse
I am not sure what you are asking...I just added my city like MOD Scotchua said to do and it worked...
http://forum.xda-developers.com/showpost.php?p=2644237&postcount=2366
Aha - I screwed up. Its working now
Spoke too soon..... it KINDA works.
The currnet Manila 2D executable will go back to the top screen (the home page) if you hit the END button twice. It also will mark an incoming SMS "read" if you sit on it on the top page for a few seconds.
The patched one does neither. It will not go back to home unless you navigate there, and SMS do not get marked read.
Is the patch involved (e.g. could I go in with a hex editor and make a change to the CURRENT Manila executable?)
Update to THAT....
I took a quick look at the executables and found the change, with the different URLs. However, it appears the new one is longer than the old, which means that a quick "patch in place" is unlikely to work (I have no idea what's AFTER that block of data - and it ain't zeros, and IS apparent UTF-8 text - so I'm likely to scramble something doing a quick overwrite.)
This in turn implies that you need a way to disassemble the exe file and replace the data, then reassemble it (e.g. to assembler, at least) assuming you don't have source.
So..... anyone have a tool for this or is this a case of "have lots of fun playing with something that can disassemble it, find a clean place in the data segment to put the new reference, and fix it that way" sort of game?
SpiritOne said:
didnt I say that
Click to expand...
Click to collapse
yep... just rubbing it in some more
I wouldn't use notepad either. I'd rather not get into a long discussion about editing xml files with notepad either
An XML editor is definitely the way to go.
Yet another update....
What's with the app here? I patched it with a string that fits using a hex editor.
What I wind up with refuses to run. Are these apps cryptographically signed?
Answer: Yep, and once modified, the signature is no good. I don't see anything in Advanced Config that can turn that protection off either; you can disable the requirement that CABs be signed, but I don't see where you can disable the requirement that APPLICATIONS be signed. My security policy settings are such that all security is off, but attempting to run the patched executable by hand elicits a complaint about the signature being invalid. I presume that a MISSING signature would be ok, but a CORRUPT one is going to get complained about - and I have no means to fix that.
Yet more....
I have found the code-signing tools after rooting around and re-signed the application.
It still fails to work; it appears there is a SECOND call to an HTC web site in the current Manila2D code which is NOT in the other patched file.
That one goes to: http://weather.manila1.htc.com/widget/htc/forecast-data_v3.asp?locCode=
DNS shows the address is a CNAME to htc.accuweather.com, and the worse news is that the replacement string that goes in the other place doesn't fit in there - its one byte too long.
It also looks like THIS is the one being called for updates, because changing the other, direct call to the htc.accuweather.com link doesn't change anything - the codes in the file that refer to places accuweather handles still work, but those that refer to other places do not.
Any ideas?
Final Fix - Read
Ok, here's what I've accomplished.
I patched the Manila2D.exe (the CURRENT copy from HyperDragon and others) and have re-signed the code (with a self-signed cert)
I also grabbed the php script and set it up on a VERY short domain name I registered this afternoon, htcwx.org - it exists ONLY for this purpose and is NOT a generic HTC web site.
I have modified the script as necessary, and the firmware as necessary. The replacement Manila2D.exe file is attached. To implement this simply replace the Manila2D.exe in your \Windows directory on the device with the one in this ZIP file. That's it; you can then add city codes at will in the weather file list and they will work.
The previously-posted version of Manila2D.exe has a couple of bugs that I consider show-stoppers, and patching the current version necessitated having a shorter URL as one of the places required to be patched would not allow the "not2advanced" url to fit.
Note that this weather reflector is being run by me, is OPEN and will remain indefinitely; I have a very high-bandwidth connection and expect no interruption in that service. Feel free to use it.
I now have WORKING HTC weather in Manila for virtually anywhere.... and you can too without the restrictions that existed in the previous patched copy (no return to home screen with the END key, and no SMS message marking)
This script "portal" should also work with any other patched HTC Home or HTC Manila applications; the complete url is http://htcwx.org/wx.php?
Note that there is NO general content on that web site.
Enjoy!
PS: As of this instant the .ORG TLD nameservers haven't picked the domain up yet from my registrar. That's abnormal; I see it on my infrastructure but not globally. It should be globally visible by morning.
There's just one thing left to say:
Thank you!
I've been fiddling with this for quite some time, and once I've found this thread everything worked as advertised!!
Happy new year!!
Glad it works for you! Happy New Year to you as well.
Hi Genesis3,
I have installed yesterday Josh's v15 M2D Plain 3G ROM and would like to customize the Weather and add my location.
Your Manila2D.exe is 1.1 Mo where the Manila2D.exe included in this ROM is only 410 KB .... Do you think I can change the original by your's ?
Thanks
That copy is PROBABLY compressed. If it is, the strings can no longer be patched.
You need to talk to the chef and get the uncompressed EXE file - if he has it.
Packed manila2d.exe
I haven't seen anyone post about this but the compressed manila2d.exe that I have uses UPX it worked for me to both unpack and repack the file.
Look into the file for "$Info" if it say's packed with UPX the link above may work for you too. (about 350h char's in)
ENJOY!
Genesis3 said:
That copy is PROBABLY compressed. If it is, the strings can no longer be patched.
You need to talk to the chef and get the uncompressed EXE file - if he has it.
Click to expand...
Click to collapse
As with everything here YMMV, make backups and if you blow it up don't blame anyone but the operator.

Start Menu Customisation

Hello everyone,
In my quest to automate set up post ROM flashing, I have written a Mortscript to set up the start menu and the Manila Program launcher.
Everyone has their own preferred set up, and I was finding it time consuming to move all the shortcuts around to the directories I wanted them in.
I know some installers like Sashimi allow you to place new cabs where you want, but I couldn't find anything to automatically reorganise my menu including existing apps in the ROM.
I tried xml provisioning and SDConfig etc, but I just couldn't get it to work in an acceptable fashion.
Hence the script.
OK, so the script moves all of the program shortcuts (lnk files) to a flat directory on the storage card.
The existing start menu is then deleted (with the exception of settings).
The script reads in a config file (needs to be in the storage card root and called custom.txt but can obviously be editted in the mortscript) and rebuilds the menu.
If no entry is found in the config file for a particular shortcut, then the shortcut is moved to "Program files\unused"
Hopefully the config file layout is self explanatory.
An example entry.....
--,\Windows\Start Menu\PIM
Messaging.lnk
contacts.lnk,
PIM Backup.lnk
iContact.lnk
Calendar.lnk
Tasks.lnk,1
Messaging.lnk
PIM Backup.lnk
ThumbCal.lnk
-- indicates a new directory to be created, in this case \Windows\Start Menu\PIM
The , is a separator between indicating it is a directory to be created and the directory structure itself.
The shortcuts speak for themselves, and will be set up under the directory structure above. If the shortcuts are succeeded by a , and a value between 1 and 18 (e.g. tasks in the example above) the shortcut will be mapped to the manila program launcher.
The spaces before the lnk files don't matter, just makes the config file easier to read.
No reset is required.
In terms of debugging, there is a debug flag in the script. Set the value to 1, and the output will be logged to Storage Card\log.txt
Hope this is useful for some of you.
*Note there are a couple of bugs.....
1) The icon's linked to folders (e.g. the little playing card associated with the games folder) often get deleted.
2) The .net configuration program. For some reason Mortscript doesn't seem to handle files starting with a . very well so there's some hardcoded renaming going on (all in a dedicated subroutine)
Hopefully I'll get those fixed, but no promises.
Enclosed zip has the script, an example of custom.txt and an example of the debug output.
Huge thanks to Mort as ever, as well as a couple of others from whom I have "re-used" ahem, some of their public scripts.
If anyone knows how to do this via provxml or SDConfig, then please post!
Mods - should I add this in to the mortscript examples thread (things do get a little buried on there & hope it's ok to post this here as its relevant to flashing) ?

HTC Youtube Application Fix for Landscape Search Issues

Hey guys. Well, I have the HTC Fuze (aka Touch Pro) and I love to use the slide-out keyboard. Well, using it with the latest HTC Youtube Application (v1.6.1820.4128), I found that the orientation did not switch and that a thin white rectangle would appear on the screen to show me what I typed. I think that those of us with this agree that it looks ugly.
I did a bit of tinkering and found that the Youtube.exe in the latest version does not orient Search to landscape properly on the Touch Pro. The only version that seems to do this properly is the one from the Diamond. To get the benefits of both worlds (latest Youtube and working landscape Search) all we need is the Youtube.exe from the previous version. No need to change any other files or add/delete registry entries.
Needed File: http://www.megaupload.com/?d=E8OM7PD4
Solution:
1. Go to your device's Windows folder and backup the original Youtube.exe.
2. Replace the original exe with the one you downloaded. Use TotalCommander or any other program that lets you edit system files. Overwrite if prompted. If you are unable to replace the file, soft reset your device and try again.
Now enjoy!
The only disadvantage of the Youtube.exe from the older version is that the Program Guide will not appear if you do not have any custom favorites/channels added. If you do add a custom favorite/channel, the Program Guide will appear like it did in the original HTC Youtube, but the Auto &Vehicles channel will give the error "No Videos Found". Anything you add will start at #13 and count up (14, 15 ,16, ...).
Program Guide Style Editing (If you do not want the default channels)
1. Use your favorite Registry Editor and navigate to
HKLM\Software\HTC\Youtube
2. Now inside this, find the ProgramGuideStyle key and change its value from 1 to 0. Hexadecimal or Decimal doesn't matter since 0 is the same in both number systems.
Now you will have a Program Guide whose only default channel will be "All Videos" and anything you add will start at 2 and count up (3,4,5, ...).
Needed File: http://www.megaupload.com/?d=E8OM7PD4
The above file was uploaded from a virus/spyware free system. However, I cannot guarantee that you will download a virus/spyware free file, so PLEASE SCAN THE FILE AFTER YOU DOWNLOAD to make sure it is virus/spyware free.
Hope this helps!
This is great!! That bug has been annoying the heck out of me for God knows how long!!

Categories

Resources