Do you live somewhere that doesn’t show up on weather apps or widgets and you wish there was some way to make your town show up? Now there’s a solution that involves editing a db file in order to add your location to the weather widget.
The file to edit is located in the phone at /data/data/com.htc.provider.weather/files/WP_0409WWE.db.
To get the file you need a rooted phone, and to use Root Explorer (which you can find in the market) or QtADB which simplifies the process of moving the files from phone to the PC and vice versa.
I you’ll use Root Explorer, copy the WP_0409WWE.db file to the sdcard and then you can copy it to your computer for editing.
If you use QtADB, just plug the phone in leave it on charge only and QtADB will bring up a phone and PC directory side by side and you can migrate to the file and drag it to the a directory on the computer
To edit the database file, you’ll need to use SQLite Database Browser. Open the WP_0409WWE.db file in the editor click the Browse Data tab and under the Table drop down list choose locationlist. At the bottom of the page click the forward arrow until you reach the end of the file and scroll to the bottom of the list. Click new record at the upper right and a new line will appear at the bottom of the list. To get your city information, it is in Accuweather format, just go to the website put your city in and the info will be in the browser bar. I have found the world search in Accuweather retrieves the info in a format the database likes. You can check the other listings in the database to get an idea of the info that is needed and how it is formatted for you custom locations. To edit the database cells with SQLite editor double click on a cell and an editing window will pop up. Click in the window; input your info and click apply changes at the bottom of the window. Once you are satisfied with your edits, save the file and replace the one in the phone with your new file. This is where QtADB makes copying file easy, just drag and drop form one window to another and you’re done. Reboot your phone and enjoy you new locations.
If you found this interesting, please don't forget to like/share it. Like the page too, in order to receive all the updates in Facebook.
You might also like: