Post Reply

[GUIDE] All weather effect on LockScreen - G3

OP hoangnova

4th August 2014, 09:26 AM   |  #1  
hoangnova's Avatar
OP Senior Member
Thanks Meter: 661
 
339 posts
Join Date:Joined: Feb 2011
Donate to Me
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
    const/4 v2, 0x0

    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
    const/4 v2, 0x3

    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
    const/4 v2, 0x0

    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
    const/4 v2, 0x4

    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/
Last edited by hoangnova; 5th August 2014 at 05:22 AM.
The Following 20 Users Say Thank You to hoangnova For This Useful Post: [ View ]
4th August 2014, 09:28 AM   |  #2  
hoangnova's Avatar
OP Senior Member
Thanks Meter: 661
 
339 posts
Join Date:Joined: Feb 2011
Donate to Me
@Fauert @cnn888 @zone23
The Following 2 Users Say Thank You to hoangnova For This Useful Post: [ View ]
4th August 2014, 12:07 PM   |  #3  
Senior Member
Thanks Meter: 10
 
116 posts
Join Date:Joined: Mar 2006
Please, can you make this mod apk file?
4th August 2014, 12:51 PM   |  #4  
Skizzy034's Avatar
Senior Member
Flag Amsterdam, NY
Thanks Meter: 1,010
 
4,954 posts
Join Date:Joined: Mar 2010
Or you can download it from the Zone Rom OP.

Sent from my LG-D851 using Tapatalk
4th August 2014, 03:28 PM   |  #5  
Senior Member
Flag LL NM
Thanks Meter: 320
 
1,305 posts
Join Date:Joined: Mar 2008
Donate to Me
More
Quote:
Originally Posted by Skizzy034

Or you can download it from the Zone Rom OP.

Sent from my LG-D851 using Tapatalk

I don't see a ROM called Zone Rom anywhere in this subforum.
4th August 2014, 03:56 PM   |  #6  
Senior Member
Thanks Meter: 94
 
770 posts
Join Date:Joined: Dec 2008
followed the instruction, decompiling the file (deodexed first ofcourse), editting the smali file, recompiling the finally copy back the apk into priv-app. set the permission and reboot. i got endless systemui fc upon locking the phone on signed apk, and no lockscreen on unsigned.

file size is also very different. 31mb on uneditted, and 26mb on editted. is there any small trick of doing it?
is there anyone successfully doing this? can i just have the compiled apk for 10i please?
Last edited by cnn888; 4th August 2014 at 04:20 PM.
4th August 2014, 04:59 PM   |  #7  
Skizzy034's Avatar
Senior Member
Flag Amsterdam, NY
Thanks Meter: 1,010
 
4,954 posts
Join Date:Joined: Mar 2010
Quote:
Originally Posted by RED ZMAN

I don't see a ROM called Zone Rom anywhere in this subforum.

T-Mobile android development.

Sent from my LG-D851 using Tapatalk
4th August 2014, 05:54 PM   |  #8  
ins5736's Avatar
Senior Member
Flag Rochester
Thanks Meter: 233
 
486 posts
Join Date:Joined: Mar 2013
More
Quote:
Originally Posted by Skizzy034

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://forum.xda-developers.com/show... on Lockscreen

LG G3 flies faster than a G6
OG RAZR XT912 got 4.4 before S4
The Following 2 Users Say Thank You to ins5736 For This Useful Post: [ View ]
4th August 2014, 06:47 PM   |  #9  
hoangnova's Avatar
OP Senior Member
Thanks Meter: 661
 
339 posts
Join Date:Joined: Feb 2011
Donate to Me
Don't sign apk.
4th August 2014, 08:38 PM   |  #10  
hoangnova's Avatar
OP Senior Member
Thanks Meter: 661
 
339 posts
Join Date:Joined: Feb 2011
Donate to Me
Quote:
Originally Posted by cnn888

followed the instruction, decompiling the file (deodexed first ofcourse), editting the smali file, recompiling the finally copy back the apk into priv-app. set the permission and reboot. i got endless systemui fc upon locking the phone on signed apk, and no lockscreen on unsigned.

file size is also very different. 31mb on uneditted, and 26mb on editted. is there any small trick of doing it?
is there anyone successfully doing this? can i just have the compiled apk for 10i please?

You don't need to deodex .

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in G3 General by ThreadRank