Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,805,594 Members 39,370 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE] All weather effect on LockScreen - G3

Tip us?
 
hoangnova
Old
(Last edited by hoangnova; 5th August 2014 at 05:22 AM.)
#1  
hoangnova's Avatar
Senior Member - OP
Thanks Meter 626
Posts: 328
Join Date: Feb 2011

 
DONATE TO ME
Default [GUIDE] All weather effect on LockScreen - G3

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/
If you like my work, and want to help me click here to donate
The Following 20 Users Say Thank You to hoangnova For This Useful Post: [ Click to Expand ]
 
hoangnova
Old
#2  
hoangnova's Avatar
Senior Member - OP
Thanks Meter 626
Posts: 328
Join Date: Feb 2011

 
DONATE TO ME
@Fauert @cnn888 @zone23
If you like my work, and want to help me click here to donate
The Following 2 Users Say Thank You to hoangnova For This Useful Post: [ Click to Expand ]
 
marcowind80
Old
#3  
Senior Member
Thanks Meter 9
Posts: 102
Join Date: Mar 2006
Please, can you make this mod apk file?
 
Skizzy034
Old
#4  
Skizzy034's Avatar
Senior Member
Thanks Meter 999
Posts: 4,940
Join Date: Mar 2010
Location: Amsterdam, NY
Or you can download it from the Zone Rom OP.

Sent from my LG-D851 using Tapatalk
*NOTE* I'll never recommend using a toolkit to root your device because if you don't know how to root your phone manually, you shouldn't be rooting your phone. -KidCarter93

My Facebook:
http://www.facebook.com/sgutowski77
 
RED ZMAN
Old
#5  
Senior Member
Thanks Meter 298
Posts: 1,291
Join Date: Mar 2008
Location: LL NM

 
DONATE TO ME
Quote:
Originally Posted by Skizzy034 View Post
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.

 
Samsung Galaxy S III Pebble Blue - CM10.1 Masta Mix - TWRP 2.5.0.0
Nexus 7 (In Dashboard) - Timur's USB ROM - CM10.1 Based - TWRP 2.5.0.0
HTC Rezound - Unlocked - NeWts zOnE XxX RLS 3.2.1 - Selling!
HTC Evo View 4g - S-Off CG Rom RC2.2 AOKP
Galaxy Tab 7 2 - CM 10.1 Nightlies
ASUS Transformer - Team EOS 4 (4.2.2) Nightlies - K.A.T. Kernel
Galaxy Tab 7 - 4.1.1 - Sapir Nightlies - Retired
Droid X - CM7 Rev Numbers GB Nightlies - Still works!
G1 - CM6 - Still works!
 
cnn888
Old
(Last edited by cnn888; 4th August 2014 at 04:20 PM.)
#6  
Senior Member
Thanks Meter 94
Posts: 763
Join Date: 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?
 
Skizzy034
Old
#7  
Skizzy034's Avatar
Senior Member
Thanks Meter 999
Posts: 4,940
Join Date: Mar 2010
Location: Amsterdam, NY
Quote:
Originally Posted by RED ZMAN View Post
I don't see a ROM called Zone Rom anywhere in this subforum.
T-Mobile android development.

Sent from my LG-D851 using Tapatalk
*NOTE* I'll never recommend using a toolkit to root your device because if you don't know how to root your phone manually, you shouldn't be rooting your phone. -KidCarter93

My Facebook:
http://www.facebook.com/sgutowski77
 
ins5736
Old
#8  
ins5736's Avatar
Senior Member
Thanks Meter 226
Posts: 471
Join Date: Mar 2013
Location: Rochester
Quote:
Originally Posted by Skizzy034 View Post
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
My RAZR got 4.4.3 before the S5!
The Following 2 Users Say Thank You to ins5736 For This Useful Post: [ Click to Expand ]
 
hoangnova
Old
#9  
hoangnova's Avatar
Senior Member - OP
Thanks Meter 626
Posts: 328
Join Date: Feb 2011

 
DONATE TO ME
Don't sign apk.
If you like my work, and want to help me click here to donate
 
hoangnova
Old
#10  
hoangnova's Avatar
Senior Member - OP
Thanks Meter 626
Posts: 328
Join Date: Feb 2011

 
DONATE TO ME
Quote:
Originally Posted by cnn888 View Post
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 .
If you like my work, and want to help me click here to donate

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes