[GUIDE] All weather effect on LockScreen - G3

Search This thread

Oderschvank

New member
Dec 26, 2014
1
0
Its possible to make it do not use "Current Location" ? So we can have "Location" off to save battery. The weather widget have a list of cities anyway... It should be possible to use one of the cities set in the app.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 22
    Enable all weather effect on LockScreen - G3
    Clear effect, Rainy effect, Snowy effect, Cloudy effect and Thunder effect.


    Decompile file priv-app/LGKeyguard.apk

    Edit com/lge/effect/weather/WeatherEffect.smali,
    Method .method public static getWeather()I

    Find
    Code:
        sget v4, Lcom/lge/lockscreen/feature/LGFeatureConfig;->UI_VERSION:F
    
        invoke-static {v4, v5}, Ljava/lang/Float;->compare(FF)I
    
        move-result v4
    
        if-lez v4, :cond_2
     
        .line 89
        [B][COLOR="Red"]const/4 v2, 0x0[/COLOR][/B]
    
        goto :goto_0
    
        .line 91
        :cond_2
        const/4 v2, 0x3
    
        .line 93
        goto :goto_0

    Replace with

    Code:
        sget v4, Lcom/lge/lockscreen/feature/LGFeatureConfig;->UI_VERSION:F
    
        invoke-static {v4, v5}, Ljava/lang/Float;->compare(FF)I
    
        move-result v4
    
        if-lez v4, :cond_2
     
        .line 89
        [COLOR="red"][B]const/4 v2, 0x3[/B][/COLOR]
    
        goto :goto_0
    
        .line 91
        :cond_2
        const/4 v2, 0x3
    
        .line 93
        goto :goto_0


    Find

    Code:
        sget v4, Lcom/lge/lockscreen/feature/LGFeatureConfig;->UI_VERSION:F
    
        invoke-static {v4, v5}, Ljava/lang/Float;->compare(FF)I
    
        move-result v4
    
        if-lez v4, :cond_3
    
        .line 97
        [COLOR="red"][B]const/4 v2, 0x0[/B][/COLOR]
    
        goto :goto_0
    
        .line 99
        :cond_3
        const/4 v2, 0x4
    
        .line 101
        goto :goto_0


    Replace with

    Code:
        sget v4, Lcom/lge/lockscreen/feature/LGFeatureConfig;->UI_VERSION:F
    
        invoke-static {v4, v5}, Ljava/lang/Float;->compare(FF)I
    
        move-result v4
    
        if-lez v4, :cond_3
    
        .line 97
        [B][COLOR="red"]const/4 v2, 0x4[/COLOR][/B]
    
        goto :goto_0
    
        .line 99
        :cond_3
        const/4 v2, 0x4
    
        .line 101
        goto :goto_0


    Compile LGKeyguard.apk, replace to priv-app and give permission 644
    Remove LGKeyguard.odex and reboot.
    Good luck.

    My other mods:

    [GUIDE] All weather effect on LockScreen - G3
    [GUIDE] All LockScreen Effect on G3

    If you like my work, click here to buy me a beer.

    Source: http://lgviet.com/forum/threads/26145/
    2
    Or you can download it from the Zone Rom OP.

    Sent from my LG-D851 using Tapatalk

    Or here (with Zone's permission, worked credited):
    http://xdaforums.com/showthread.php... TO][VS985] All Weather Effects on Lockscreen

    LG G3 flies faster than a G6
    OG RAZR XT912 got 4.4 before S4
    1
    Perfect funcional Bro. Made it following your guide on my .10i D855. ;)

    When you have time write other mods you know using same method you used here.

    Thanks