Hi all, I am a newbie and this thread is about enabling the Light effect or Particle effect on Note 3 Kitkat LockScreen.
Please check this post for Galaxy Note 8.0 Post-31
Thanks @Cheico --> updating for NB1 firmware.
Their might be other ways to implement it. but I am writing the steps which I have followed.
You Need:
1. Windows PC.
2. JRE installed.
3. Download the required tools from here. You can get the latest aapt.exe here, apktool.jar here, baksmali.jar and smali.jar files here
So here is the step by step guide on how to do it.
1. Copy framework folder (/system/framework) from your phone to C:\apktool\system\framework folder of your PC, and Keyguard.apk, Keyguard.odex files from your phone (/system/priv-app) to C:\apktool folder of your PC.
2. baksmali the Keyguard.odex present in C:\apktool folder using the command
4. Navigate to C:\apktool\out\com\android\keyguard\sec, and open the file KeyguardEffectViewMain.smali.
5. Open the file and search for .line 254 , for NB1 firmware please search for .line 244
6. Change the red line to, as shown below for getting Lens Flare Effect instead of Circle Effect.
7. For getting Particle effect, search for .line 253, or ( .line 243 for NB1 firmware ) and make the changes in the code as shown below, you just have to replace wallpaper with particle and circle with particle, as shown below for getting Particle Effect instead of Circle Effect.
8. Once changes are done, smali the out folder present in C:\apktool using the command
10. After the command in Step 9, Size of apk file should increase, Now Zipalign the apk using the command.
11. Now you will see a new apk file named "Keyguard_new.apk", Copy the Keyguard_new.apk to your phone and rename it to Keyguard.apk, This is deodexed .apk file, and you can directly push this apk into your phone path /system/priv-app using RootExplorer and set the permission to rw-r--r--, and delete the Keyguard.odex file from the framework folder.
Restart the phone, and select unlock effect to none.
12. If you want to create the Keyguard.odex file from the Keyguard.apk file then their are few more steps, which involves Terminal Emulator, but this apk will work fine, please delete or remove the Keyguard.odex file from the system/priv-app folder and keep only Keyguard.apk, because this apk is deodexed and working fine for me.
Snapshots:
Lens Flare Effect
Particles Effect
Download Flashable zip for latest NI4 firmware from here by Stavr0s91i
Thanks @Stavr0s91i
See here for enabling various unlock effects on Galaxy Note 8.0 running 4.4.2 Kitkat.
Thanks @jazzespresso
P.S: Sound will not come as expected for Particle effect, Working Perfect for LensFlare Effect.
You can edit the sound files as per your wish in /system/media/audio/ui folder of your phone.
For enabling Ripple ink effect with fingers or without S-pen, check out here...
My Note 3 details:
Variant: SM-N9005,
ROM: Stock odexed ROM-rooted,
Firmware: N9005XXUGNG1,
Region: BTU.
Variant: SM-N9005,
ROM: Stock odexed ROM-rooted,
Firmware: N9005XXUGNG1,
Region: BTU.
Please check this post for Galaxy Note 8.0 Post-31
Thanks @Cheico --> updating for NB1 firmware.
Their might be other ways to implement it. but I am writing the steps which I have followed.
You Need:
1. Windows PC.
2. JRE installed.
3. Download the required tools from here. You can get the latest aapt.exe here, apktool.jar here, baksmali.jar and smali.jar files here
So here is the step by step guide on how to do it.
1. Copy framework folder (/system/framework) from your phone to C:\apktool\system\framework folder of your PC, and Keyguard.apk, Keyguard.odex files from your phone (/system/priv-app) to C:\apktool folder of your PC.
2. baksmali the Keyguard.odex present in C:\apktool folder using the command
Code:[/B][B][COLOR="Red"]java -jar baksmali.jar -d C:\apktool\system\framework -x Keyguard.odex[/COLOR][/B]
-d path of directory where framework files are placed.
-x target .odex file (in our case it's Keyguard.odex)
3. Once command is completed, you will see a folder named out .4. Navigate to C:\apktool\out\com\android\keyguard\sec, and open the file KeyguardEffectViewMain.smali.
5. Open the file and search for .line 254 , for NB1 firmware please search for .line 244
Code:[/B][B] .line 254 (.line 244 for NB1 firmware) iget-object v0, p0, Lcom/android/keyguard/sec/KeyguardEffectViewMain;->mForegroundTypeMapping:Ljava/util/HashMap; invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 [COLOR="Red"]sget-object v2, Lcom/android/keyguard/sec/KeyguardEffectViewMain$Foreground;->[COLOR="Blue"]circle[/COLOR]:Lcom/android/keyguard/sec/KeyguardEffectViewMain$Foreground;[/COLOR] invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; [/B]
6. Change the red line to, as shown below for getting Lens Flare Effect instead of Circle Effect.
Code:[/B][B] .line 254 (.line 244 for NB1 firmware) iget-object v0, p0, Lcom/android/keyguard/sec/KeyguardEffectViewMain;->mForegroundTypeMapping:Ljava/util/HashMap; invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 [COLOR="Red"]sget-object v2, Lcom/android/keyguard/sec/KeyguardEffectViewMain$Foreground;->[COLOR="Blue"]lens[/COLOR]:Lcom/android/keyguard/sec/KeyguardEffectViewMain$Foreground;[/COLOR] invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; [/B]
7. For getting Particle effect, search for .line 253, or ( .line 243 for NB1 firmware ) and make the changes in the code as shown below, you just have to replace wallpaper with particle and circle with particle, as shown below for getting Particle Effect instead of Circle Effect.
Code:[/B][B] .line 253 (.line 243 for NB1 firmware) iget-object v0, p0, Lcom/android/keyguard/sec/KeyguardEffectViewMain;->mBackgroundTypeMapping:Ljava/util/HashMap; invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 [COLOR="red"]sget-object v2, Lcom/android/keyguard/sec/KeyguardEffectViewMain$Background;->[COLOR="Blue"]particle[/COLOR]:Lcom/android/keyguard/sec/KeyguardEffectViewMain$Background;[/COLOR] invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .line 254 (.line 244 for NB1 firmware) iget-object v0, p0, Lcom/android/keyguard/sec/KeyguardEffectViewMain;->mForegroundTypeMapping:Ljava/util/HashMap; invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v1 [COLOR="Red"]sget-object v2, Lcom/android/keyguard/sec/KeyguardEffectViewMain$Foreground;->[COLOR="Blue"]particle[/COLOR]:Lcom/android/keyguard/sec/KeyguardEffectViewMain$Foreground;[/COLOR] invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; [/B]
8. Once changes are done, smali the out folder present in C:\apktool using the command
Code:[/B][B][COLOR="Red"]java -jar smali.jar -o classes.dex out[/COLOR][/B]
-o the name of newly created .dex file.
out is the folder name.
9. Once you see the classes.dex file in the folder, then push this .dex file into Keyguard.apk file using the commandCode:[/B][B][COLOR="Red"]aapt add Keyguard.apk classes.dex[/COLOR][/B]
10. After the command in Step 9, Size of apk file should increase, Now Zipalign the apk using the command.
Code:[/B][B][COLOR="Red"]zipalign -fv 4 Keyguard.apk Keyguard_new.apk[/COLOR][/B]
11. Now you will see a new apk file named "Keyguard_new.apk", Copy the Keyguard_new.apk to your phone and rename it to Keyguard.apk, This is deodexed .apk file, and you can directly push this apk into your phone path /system/priv-app using RootExplorer and set the permission to rw-r--r--, and delete the Keyguard.odex file from the framework folder.
Restart the phone, and select unlock effect to none.
12. If you want to create the Keyguard.odex file from the Keyguard.apk file then their are few more steps, which involves Terminal Emulator, but this apk will work fine, please delete or remove the Keyguard.odex file from the system/priv-app folder and keep only Keyguard.apk, because this apk is deodexed and working fine for me.
Snapshots:
Lens Flare Effect
Particles Effect
Download Flashable zip for latest NI4 firmware from here by Stavr0s91i
Thanks @Stavr0s91i
See here for enabling various unlock effects on Galaxy Note 8.0 running 4.4.2 Kitkat.
Thanks @jazzespresso
P.S: Sound will not come as expected for Particle effect, Working Perfect for LensFlare Effect.
You can edit the sound files as per your wish in /system/media/audio/ui folder of your phone.
For enabling Ripple ink effect with fingers or without S-pen, check out here...
Hit THANKS button, If I helped You.
Last edited: