As title says, this mod brings you the ink effect with finger touch on ripple lockscreen. This mod is well tested on wanam v1.0 ROM!
Video will be posted here in a while
Min Requirements
1. apktool for compiling and decompile
2. 7zip
3. Notepad ++
4. Patience
Files Targeted
1. framework-res.apk
2. secsettings.apk
3. android.policy.jar (Here you can change as many colors as you need, but it is tedious work)
Note: I have just enabled only blue color at the moment, by following this guide and your knowledge you can assign as many colors as you want!
First copy the attached xml file from the attachment to /etc/permissions/
Target File:
framework-res.apk
1. Decompile the framework-res.apk
2. Navigate to framework-res\res\values and make following changes
to
3. Thats all! You done it! Recompile it!
Target File:
secsettings.apk
1. Decompile the above file
2. Navigate to smali/com/android/settings/LockscreenMenuSettings.smali and search for
- around line 998
and then delete the below line
then search for
and delete the following line
search for
and delete following line
and search for 'nop' and make following changes
Thats all! Compile the file
Target File:
android.policy.jar
1. Decompile the above file
2. Navigate to android.policy_mod.jar.out/smali/com/android/internal/policy/impl/keyguard/sec/CircleUnlockRippleRenderer.smali
and make following changes
Compile it !
Thats all! You will have a ink effect when you select the ripple in lockscreen!
One can activate any colors, but it needs some more work for which i will put seaprate guide and also i am planning to release the apk to control the colors!
Please rate the thread! If any dev uses this mod, please do give the credit and link to this thread!
Video will be posted here in a while
Min Requirements
1. apktool for compiling and decompile
2. 7zip
3. Notepad ++
4. Patience
Files Targeted
1. framework-res.apk
2. secsettings.apk
3. android.policy.jar (Here you can change as many colors as you need, but it is tedious work)
Note: I have just enabled only blue color at the moment, by following this guide and your knowledge you can assign as many colors as you want!
First copy the attached xml file from the attachment to /etc/permissions/
Target File:
framework-res.apk
1. Decompile the framework-res.apk
2. Navigate to framework-res\res\values and make following changes
PHP:
<bool name="config_isWaterInkEnabled">false</bool>
PHP:
<bool name="config_isWaterInkEnabled">true</bool>
Target File:
secsettings.apk
1. Decompile the above file
2. Navigate to smali/com/android/settings/LockscreenMenuSettings.smali and search for
PHP:
iget-object v10, p0, Lcom/android/settings/LockscreenMenuSettings;->mShortcutMenu:Landroid/preference/SwitchPreferenceScreen
and then delete the below line
PHP:
invoke-virtual {v8, v10}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z
PHP:
iget-object v11, p0, Lcom/android/settings/LockscreenMenuSettings;->mRippleEffect:Landroid/preference/CheckBoxPreference;
PHP:
invoke-virtual {v10, v11}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z
PHP:
iget-object v10, p0, Lcom/android/settings/LockscreenMenuSettings;->mInkEffect:Landroid/preference/PreferenceScreen;
PHP:
invoke-virtual {v8, v10}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z
PHP:
.line 240
+ nop
+
nop
:sswitch_data_0
Target File:
android.policy.jar
1. Decompile the above file
2. Navigate to android.policy_mod.jar.out/smali/com/android/internal/policy/impl/keyguard/sec/CircleUnlockRippleRenderer.smali
and make following changes
PHP:
const/16 v1, 0x4002
- if-ne v0, v1, :cond_4
+ if-ne v1, v1, :cond_4
.line 847
iget v0, p0, Lcom/android/internal/policy/impl/keyguard/sec/CircleUnlockRippleRenderer;->mouseX:F
Thats all! You will have a ink effect when you select the ripple in lockscreen!
One can activate any colors, but it needs some more work for which i will put seaprate guide and also i am planning to release the apk to control the colors!
Please rate the thread! If any dev uses this mod, please do give the credit and link to this thread!
Attachments
-
674 bytes Views: 618
Last edited:
