[REQ] LG Optimus Black weather widget

Search This thread

mortuus82

Senior Member
Apr 22, 2010
332
30
Malmo
Is there someone that could dump the weather widget found in the new lg optimus black so u can install it as an .apk file ?

here is how it looks.

gsmarena_002.jpg
 
  • Like
Reactions: Navios92

beeone42

Member
Feb 25, 2007
24
26
Paris
tl;dr: it doesn't work :(

i'm uploading it here:

ge.tt/3rQvmBD

ge.tt/3rQvmBD/WeatherWidget-signed.apk (not working)

edit: deodexed and signed version: ge.tt/3rQvmBD/WeatherWidget-signed.apk (not working)

i tried to install it on my htc hd2 (TyphooN CyanogenMod 7 Nightly v3.2.6 rom) but it fail to install

with adb:

Code:
C:\android-sdk-windows\platform-tools>adb install WeatherWidget.apk
2153 KB/s (16332962 bytes in 7.407s)
pkg: /data/local/tmp/WeatherWidget.apk
Failure [INSTALL_FAILED_DEXOPT]

C:\android-sdk-windows\platform-tools>

adb logcat:

Code:
D/AndroidRuntime(13289):
D/AndroidRuntime(13289): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
I/AndroidRuntime(13289): Heap size: -Xmx32m
D/AndroidRuntime(13289): CheckJNI is OFF
D/dalvikvm(13289): creating instr width table
D/AndroidRuntime(13289): Calling main entry com.android.commands.pm.Pm
D/dalvikvm(12973): GC_EXPLICIT freed 10K, 52% free 2687K/5511K, external 0K/0K, paused 49ms
W/ActivityManager( 3086): No content provider found for:
W/ActivityManager( 3086): No content provider found for:
D/PackageParser( 3086): Scanning package: /data/app/vmdl-842848858.tmp
D/dalvikvm( 3086): GC_CONCURRENT freed 1975K, 35% free 8628K/13127K, external 4085K/4505K, paused 8ms+12ms
D/dalvikvm( 3086): GC_FOR_MALLOC freed 1053K, 36% free 8528K/13191K, external 4085K/4505K, paused 197ms
D/dalvikvm( 3086): GC_FOR_MALLOC freed 1027K, 36% free 8531K/13191K, external 4085K/4505K, paused 176ms
D/dalvikvm( 3086): GC_FOR_MALLOC freed 1025K, 36% free 8538K/13191K, external 4085K/4505K, paused 182ms
D/dalvikvm( 3086): GC_FOR_MALLOC freed 1025K, 36% free 8546K/13191K, external 4085K/4505K, paused 186ms
D/PackageManager( 3086): Scanning package com.lge.sizechangable.weather
E/PackageManager( 3086): Package com.lge.sizechangable.weather has mismatched uid: 10036 on disk, 10177 in settings
I/PackageManager( 3086): Linking native library dir for /data/app/com.lge.sizechangable.weather-1.apk
D/installd(   69): DexInv: --- BEGIN '/data/app/com.lge.sizechangable.weather-1.apk' ---
W/dalvikvm(13300): DexOptZ: zip archive '/data/app/com.lge.sizechangable.weather-1.apk' does not include classes.dex
W/installd(   69): DexInv: --- END '/data/app/com.lge.sizechangable.weather-1.apk' --- status=0xff00, process failed
E/installd(   69): dexopt failed on '/data/dalvik-cache/data@app@com.lge.sizechangable.weather-1.apk@classes.dex' res = 65280
W/PackageManager( 3086): Package couldn't be installed in /data/app/com.lge.sizechangable.weather-1.apk
D/dalvikvm( 3086): GC_EXPLICIT freed 260K, 36% free 8518K/13191K, external 4085K/4505K, paused 180ms
D/AndroidRuntime(13289): Shutting down VM
I/AndroidRuntime(13289): NOTE: attach of thread 'Binder Thread #3' failed
D/dalvikvm(13289): GC_CONCURRENT freed 213K, 71% free 303K/1024K, external 0K/0K, paused 1ms+0ms
D/jdwp    (13289): adbd disconnected
 
Last edited:

beeone42

Member
Feb 25, 2007
24
26
Paris
Sounds like it was pulled directly from the dump without being deodexed. :)

yes, i simply took this file from my wife's lg optimus black:

/system/app/WeatherWidget.apk

now i took the .odex, used Deodexer_2_3, it added classes.dex into the apk

but it doesn't work

Code:
C:\android-sdk-windows\platform-tools>adb install WeatherWidget.apk
adb server is out of date.  killing...
* daemon started successfully *
1911 KB/s (16032027 bytes in 8.192s)
        pkg: /data/local/tmp/WeatherWidget.apk
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]

C:\android-sdk-windows\platform-tools>

Code:
D/AndroidRuntime(16199):
D/AndroidRuntime(16199): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
I/AndroidRuntime(16199): Heap size: -Xmx32m
D/AndroidRuntime(16199): CheckJNI is OFF
D/dalvikvm(16199): creating instr width table
D/AndroidRuntime(16199): Calling main entry com.android.commands.pm.Pm
D/dalvikvm(16104): GC_EXPLICIT freed 40K, 52% free 2687K/5511K, external 0K/0K, paused 50ms
W/ActivityManager( 3086): No content provider found for:
I/OnAlarmReceiver( 9819): onReceive...
V/NetMeterService----------( 9819): NetMeterService+ int p is equals=0
D/NetMeterService( 9819): ====> Updating database <====
D/NetMeterService( 9819): Service onStart ->
D/NetMeterService( 9819): rmnet0 done in 27 ms.
D/NetMeterService( 9819): eth0 done in 40 ms.
D/NetMeterService( 9819): Alert: 2 ms
W/ActivityManager( 3086): No content provider found for:
D/PackageParser( 3086): Scanning package: /data/app/vmdl1381269041.tmp
D/szipinf ( 3086): Initializing inflate state
E/PackageParser( 3086): Package com.lge.sizechangable.weather has no certificates at entry classes.dex; ignoring!
D/dalvikvm( 3086): GC_EXPLICIT freed 1061K, 37% free 8375K/13191K, external 4091K/4402K, paused 306ms
D/AndroidRuntime(16199): Shutting down VM
I/AndroidRuntime(16199): NOTE: attach of thread 'Binder Thread #3' failed
D/dalvikvm(16199): GC_CONCURRENT freed 213K, 71% free 303K/1024K, external 0K/0K, paused 1ms+1ms
D/jdwp    (16199): adbd disconnected
 

beeone42

Member
Feb 25, 2007
24
26
Paris
so...

i deodexed the apk with Deodexer_2_3
i signed the result with SignApk and uploaded it to ge.tt
i installed WeatherWidget-signed.apk, it worked

but the widget fail to run

Code:
D/szipinf ( 4257): Initializing inflate state
D/dalvikvm( 1032): GC_EXPLICIT freed 8K, 50% free 4201K/8327K, external 10759K/12807K, paused 119ms
D/szipinf ( 1032): Initializing inflate state
I/ActivityThread( 4257): Pub com.lge.weather.helper.weathercontentprovider: com.lge.sizechangable.weather.helper.WeatherContentProvi
der
I/Database( 4257): sqlite returned: error code = 14, msg = cannot open file at line 27205 of [42537b6056]
E/Database( 4257): sqlite3_open_v2("/data/data/com.lge.sizechangable.weather/databases/WeatherWidgetDB.db", &handle, 6, NULL) failed

D/AndroidRuntime( 4257): Shutting down VM
W/dalvikvm( 4257): threadid=1: thread exiting with uncaught exception (group=0x40015560)
E/AndroidRuntime( 4257): FATAL EXCEPTION: main
E/AndroidRuntime( 4257): java.lang.RuntimeException: Unable to get provider com.lge.sizechangable.weather.helper.WeatherContentProvi
der: android.database.sqlite.SQLiteException: unable to open database file
E/AndroidRuntime( 4257):        at android.app.ActivityThread.installProvider(ActivityThread.java:3709)
E/AndroidRuntime( 4257):        at android.app.ActivityThread.installContentProviders(ActivityThread.java:3461)
E/AndroidRuntime( 4257):        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3417)
E/AndroidRuntime( 4257):        at android.app.ActivityThread.access$2200(ActivityThread.java:123)
E/AndroidRuntime( 4257):        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:977)
E/AndroidRuntime( 4257):        at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 4257):        at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime( 4257):        at android.app.ActivityThread.main(ActivityThread.java:3835)
E/AndroidRuntime( 4257):        at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 4257):        at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 4257):        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
E/AndroidRuntime( 4257):        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
E/AndroidRuntime( 4257):        at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 4257): Caused by: android.database.sqlite.SQLiteException: unable to open database file
E/AndroidRuntime( 4257):        at android.database.sqlite.SQLiteDatabase.dbopen(Native Method)
E/AndroidRuntime( 4257):        at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1849)
E/AndroidRuntime( 4257):        at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:820)
E/AndroidRuntime( 4257):        at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:854)
E/AndroidRuntime( 4257):        at android.database.sqlite.SQLiteDatabase.openOrCreateDatabase(SQLiteDatabase.java:847)
E/AndroidRuntime( 4257):        at android.app.ContextImpl.openOrCreateDatabase(ContextImpl.java:570)
E/AndroidRuntime( 4257):        at android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:203)
E/AndroidRuntime( 4257):        at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:118)
E/AndroidRuntime( 4257):        at com.lge.sizechangable.weather.remoteservice.DataHelper.<init>(DataHelper.java:126)
E/AndroidRuntime( 4257):        at com.lge.sizechangable.weather.helper.WeatherContentProvider.onCreate(WeatherContentProvider.java:
50)
E/AndroidRuntime( 4257):        at android.content.ContentProvider.attachInfo(ContentProvider.java:798)
E/AndroidRuntime( 4257):        at android.app.ActivityThread.installProvider(ActivityThread.java:3706)
E/AndroidRuntime( 4257):        ... 12 more

i created /data/data/com.lge.sizechangable.weather/databases/ folder, so the widget created the databases into, but still not working

Code:
E/ApplicationContext( 1662): Couldn't create directory for SharedPreferences file /data/data/com.lge.sizechangable.weather/shared_prefs/Weather.xml

created /data/data/com.lge.sizechangable.weather/shared_prefs/, widget created Weather.xml and other xml files, but still not working, FC when trying to specify a weather location:

Code:
E/ActivityThread( 1771): Failed to inflate
E/ActivityThread( 1771): android.view.InflateException: Binary XML file line #279: Error inflating class <unknown>
E/ActivityThread( 1771):        at android.view.LayoutInflater.createView(LayoutInflater.java:518)
E/ActivityThread( 1771):        at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
E/ActivityThread( 1771):        at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:568)
E/ActivityThread( 1771):        at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
E/ActivityThread( 1771):        at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
E/ActivityThread( 1771):        at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
E/ActivityThread( 1771):        at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
E/ActivityThread( 1771):        at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
E/ActivityThread( 1771):        at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
E/ActivityThread( 1771):        at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:212)
E/ActivityThread( 1771):        at android.app.Activity.setContentView(Activity.java:1657)
E/ActivityThread( 1771):        at com.lge.sizechangable.weather.activities.TodaysViewActivity.onCreate(TodaysViewActivity.java:242)
E/ActivityThread( 1771):        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/ActivityThread( 1771):        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1722)
E/ActivityThread( 1771):        at android.app.ActivityThread.startActivityNow(ActivityThread.java:1598)
E/ActivityThread( 1771):        at android.app.LocalActivityManager.moveToState(LocalActivityManager.java:127)
E/ActivityThread( 1771):        at android.app.LocalActivityManager.startActivity(LocalActivityManager.java:339)
E/ActivityThread( 1771):        at android.widget.TabHost$IntentContentStrategy.getContentView(TabHost.java:654)
E/ActivityThread( 1771):        at android.widget.TabHost.setCurrentTab(TabHost.java:326)
E/ActivityThread( 1771):        at android.widget.TabHost.addTab(TabHost.java:216)
E/ActivityThread( 1771):        at com.lge.sizechangable.weather.activities.WeatherDetailsTabView.onCreate(WeatherDetailsTabView.java:173)
E/ActivityThread( 1771):        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/ActivityThread( 1771):        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1722)
E/ActivityThread( 1771):        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1784)
E/ActivityThread( 1771):        at android.app.ActivityThread.access$1500(ActivityThread.java:123)
E/ActivityThread( 1771):        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:939)
E/ActivityThread( 1771):        at android.os.Handler.dispatchMessage(Handler.java:99)
E/ActivityThread( 1771):        at android.os.Looper.loop(Looper.java:130)
E/ActivityThread( 1771):        at android.app.ActivityThread.main(ActivityThread.java:3835)
E/ActivityThread( 1771):        at java.lang.reflect.Method.invokeNative(Native Method)
E/ActivityThread( 1771):        at java.lang.reflect.Method.invoke(Method.java:507)
E/ActivityThread( 1771):        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
E/ActivityThread( 1771):        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
E/ActivityThread( 1771):        at dalvik.system.NativeStart.main(Native Method)
E/ActivityThread( 1771): Caused by: java.lang.reflect.InvocationTargetException
E/ActivityThread( 1771):        at java.lang.reflect.Constructor.constructNative(Native Method)
E/ActivityThread( 1771):        at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
E/ActivityThread( 1771):        at android.view.LayoutInflater.createView(LayoutInflater.java:505)
E/ActivityThread( 1771):        ... 33 more
E/ActivityThread( 1771): Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget
E/ActivityThread( 1771):        at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
E/ActivityThread( 1771):        at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:460)
E/ActivityThread( 1771):        at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:336)
E/ActivityThread( 1771):        at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:697)
E/ActivityThread( 1771):        at android.content.res.Resources.loadDrawable(Resources.java:1782)
E/ActivityThread( 1771):        at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
E/ActivityThread( 1771):        at android.view.View.<init>(View.java:1967)
E/ActivityThread( 1771):        at android.widget.ImageView.<init>(ImageView.java:112)
E/ActivityThread( 1771):        at android.widget.ImageView.<init>(ImageView.java:108)
E/ActivityThread( 1771):        ... 36 more
D/AndroidRuntime( 1771): Shutting down VM
W/dalvikvm( 1771): threadid=1: thread exiting with uncaught exception (group=0x40015560)
E/AndroidRuntime( 1771): FATAL EXCEPTION: main
E/AndroidRuntime( 1771): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.lge.sizechangable.weather/com.lge.sizechangable.weather.activities.WeatherDetailsTabView}: java.lang.Run
timeException: Unable to start activity ComponentInfo{com.lge.sizechangable.weather/com.lge.sizechangable.weather.activities.TodaysViewActivity}: android.view.InflateException: Binary XML file line #2
 
Last edited:

mortuus82

Senior Member
Apr 22, 2010
332
30
Malmo
Yeah install works fine but adding widgets doesnt work, the first one crashes when u try to configure it :(
 

mechaphil

Member
May 4, 2011
7
0
It's not exact (seems to only be missing the refresh and AccuWeather.com buttons), but search anyways for "3D Digital Weather Clock" in the Market.

I'd link to it, but I don't have enough posts to link yet.
 

Best01

Senior Member
Oct 19, 2010
67
1
Can someone try the one from the lg revolution. Maybe that one will work. I really want this widget. Is there a daily briefing widget like there was on the optimus 2x.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    tl;dr: it doesn't work :(

    i'm uploading it here:

    ge.tt/3rQvmBD

    ge.tt/3rQvmBD/WeatherWidget-signed.apk (not working)

    edit: deodexed and signed version: ge.tt/3rQvmBD/WeatherWidget-signed.apk (not working)

    i tried to install it on my htc hd2 (TyphooN CyanogenMod 7 Nightly v3.2.6 rom) but it fail to install

    with adb:

    Code:
    C:\android-sdk-windows\platform-tools>adb install WeatherWidget.apk
    2153 KB/s (16332962 bytes in 7.407s)
    pkg: /data/local/tmp/WeatherWidget.apk
    Failure [INSTALL_FAILED_DEXOPT]
    
    C:\android-sdk-windows\platform-tools>

    adb logcat:

    Code:
    D/AndroidRuntime(13289):
    D/AndroidRuntime(13289): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
    I/AndroidRuntime(13289): Heap size: -Xmx32m
    D/AndroidRuntime(13289): CheckJNI is OFF
    D/dalvikvm(13289): creating instr width table
    D/AndroidRuntime(13289): Calling main entry com.android.commands.pm.Pm
    D/dalvikvm(12973): GC_EXPLICIT freed 10K, 52% free 2687K/5511K, external 0K/0K, paused 49ms
    W/ActivityManager( 3086): No content provider found for:
    W/ActivityManager( 3086): No content provider found for:
    D/PackageParser( 3086): Scanning package: /data/app/vmdl-842848858.tmp
    D/dalvikvm( 3086): GC_CONCURRENT freed 1975K, 35% free 8628K/13127K, external 4085K/4505K, paused 8ms+12ms
    D/dalvikvm( 3086): GC_FOR_MALLOC freed 1053K, 36% free 8528K/13191K, external 4085K/4505K, paused 197ms
    D/dalvikvm( 3086): GC_FOR_MALLOC freed 1027K, 36% free 8531K/13191K, external 4085K/4505K, paused 176ms
    D/dalvikvm( 3086): GC_FOR_MALLOC freed 1025K, 36% free 8538K/13191K, external 4085K/4505K, paused 182ms
    D/dalvikvm( 3086): GC_FOR_MALLOC freed 1025K, 36% free 8546K/13191K, external 4085K/4505K, paused 186ms
    D/PackageManager( 3086): Scanning package com.lge.sizechangable.weather
    E/PackageManager( 3086): Package com.lge.sizechangable.weather has mismatched uid: 10036 on disk, 10177 in settings
    I/PackageManager( 3086): Linking native library dir for /data/app/com.lge.sizechangable.weather-1.apk
    D/installd(   69): DexInv: --- BEGIN '/data/app/com.lge.sizechangable.weather-1.apk' ---
    W/dalvikvm(13300): DexOptZ: zip archive '/data/app/com.lge.sizechangable.weather-1.apk' does not include classes.dex
    W/installd(   69): DexInv: --- END '/data/app/com.lge.sizechangable.weather-1.apk' --- status=0xff00, process failed
    E/installd(   69): dexopt failed on '/data/dalvik-cache/data@app@com.lge.sizechangable.weather-1.apk@classes.dex' res = 65280
    W/PackageManager( 3086): Package couldn't be installed in /data/app/com.lge.sizechangable.weather-1.apk
    D/dalvikvm( 3086): GC_EXPLICIT freed 260K, 36% free 8518K/13191K, external 4085K/4505K, paused 180ms
    D/AndroidRuntime(13289): Shutting down VM
    I/AndroidRuntime(13289): NOTE: attach of thread 'Binder Thread #3' failed
    D/dalvikvm(13289): GC_CONCURRENT freed 213K, 71% free 303K/1024K, external 0K/0K, paused 1ms+0ms
    D/jdwp    (13289): adbd disconnected
    2
    Could you elaborate a little bit how to? My way (learned from @doc3000) has certain weakpoint, it only applies to deodexed ROMs since it aquires classes.dex modification. But performance wise I don't see any inconveniences.

    You'll have to de-smali the LG Weather App and add in the missing Lg bit and modify it to use that instead of that from the framework.

    It's not hard but it takes time. ( for one person then anyone can use it ) I'm working on getting it to ICS from KU5900 to work on P970 so I don't have time to right now.

    If you change from one ROM to another you'll have to go through that procedure again if you do it your way.

    Sent from my LG Optimus Black
    1
    Is there someone that could dump the weather widget found in the new lg optimus black so u can install it as an .apk file ?

    here is how it looks.

    gsmarena_002.jpg
    1
    I had to modify my framework.jar with some classes from the LGs framework. Im not that into programming for knowing how to make these classes avaliable otherwise. Eg com.google.android.maps.jar provides additional classes, but i dont know how they do it.
    If you know how to unpack your framework.jar edit and repack it, you could try, but its not a very smart way.
    1
    I really love this widget, but I've changed my launcher to Launcher Pro and I can't use this widget anymore. I've tried to install from signed apk, but no luck.
    http://xdaforums.com/showpost.php?p=15618075&postcount=5