Guide for Porting the LG Weather/Clock Widget to any ROM

LGWidget

The weather widget has, since the days of TouchFLO in Windows Mobile, become an iconic feature on most smartphones. Its main purpose in life is to make your life a little simpler by giving you snippets of information regarding the weather in your neck of the woods (or anywhere in the world). In this day and age, the Android ecosystem has spawned several different variants of the infamous widget, each one presenting different features and eye candy animations. Manufacturers also present their own versions of it and LG is no exception. The weather/clock widget from the LG UI is a nice looking, animated widget that pretty much looks great on any home screen (YMMV, of course).

This is all great but, getting it to work on a ROM without the corresponding framework is a different story altogether. We normally either look for a flashable zip, an APK, or something to quickly get our fix. Asking devs to port it would also be a viable option, however, you could end up waiting for a while depending on who you ask. Since we at XDA-Developers believe in getting what you want/need by learning, we are always glad to come across guides like the one created by XDA Forum Member devilex94. The dev has created a quick guide showing how to modify framework.jar from any ROM in order to get the widget working. The process is relatively straight forward, and in essence it involves pulling and decompiling the aforementioned jar, adding a file provided by the dev, recompiling it, and pushing the modified framework.jar back into /system/framework.

There are a few tools that you will need, such as apktool for compiling/decompiling the framework.jar. We strongly recommend that you take a look at the original apktool thread by XDA Forum Member iBotPeaches as well, in case you are not familiar with how it works. Happy porting!

Requirements-
*A nice working rooted mobile phone
*A working PC with java installed
*apktool-[Don’t ask how to use it]

You can find more information in the original thread.

Want something published in the Portal? Contact any News Writer.


_________
Want something on the XDA Portal? Send us a tip!