While trying to find any hidden features Samsung may have kept hidden in the stock ROM for my Galaxy Ace II X (GT-S7560M), I found some smali code for the lockscreen options, that removed the option to toggle the ripple effect! If you don`t know what the ripple effect is, view this video. It replaces the stock Samsung slide unlock with what looks like a body of water. When you touch the screen, it makes a ripple in the water. Anyways, on to the mod.
I do not know if this mod will work on other Samsung ICS ROMs. All this mod does is make the option appear, by deleting a line of code (that makes the toggle not there). You can be on either an odexed or deodexed ROM, but the SecSettings.apk should be from a deodexed ROM, to make the process a lot easier. You can reodex the SecSettings.apk easily using this app. I`m assuming that you know the basics of decompiling and recompiling .apk files. I am in no way responsible for any damage done to your hardware. Let`s start:
--> Decompile SecSettings.apk (I use apktool)
--> Navigate to /smali/com/android/settings
--> Open LockScreenSettings.smali with your preferred text editor (I use Notepad++)
--> Search `mRippleEffect`, and search until you find the line with `mRippleEffect` that is above a line with the phrase `removePreference` in it.
--> Remove 4 lines - that `removePreference` line, and the 3 lines above it.
--> Save, recompile, push to /system/app/.
--> Decompile framework-res.apk
--> Navigate to /res/values
--> Open bools.xml
--> Search `config_isWaterRippleEnabled`
--> Change value from `false` to `true`
--> Save, recompile, push to /system/framework/
--> Change the permissions to 0644 (rw-r--r--)
--> Reboot, and enjoy!
An example of which lines to remove (taken from my SecSettings.apk, so code may differ slightly):
You should find the option to toggle the ripple lockscreen under Security > Lock screen options. Make sure that swipe unlock is enabled so you can access the Lock screen options.
You can also enable some other hidden lockscreen settings (like the Information Ticker, Camera Quick Access, Wakeup Command which requires S Voice, et cetera depending on whether or not Samsung has chosen to include certain features in the ROM. I can`t guarantee that there`ll be no bugs if you`re trying to enable another hidden option) by following this general method (of deleting code that is telling the device to hide the option). If you have any problems, questions, or comments, post them here! If you choose to include this mod in your ROM, please give me some thanks!
I do not know if this mod will work on other Samsung ICS ROMs. All this mod does is make the option appear, by deleting a line of code (that makes the toggle not there). You can be on either an odexed or deodexed ROM, but the SecSettings.apk should be from a deodexed ROM, to make the process a lot easier. You can reodex the SecSettings.apk easily using this app. I`m assuming that you know the basics of decompiling and recompiling .apk files. I am in no way responsible for any damage done to your hardware. Let`s start:
--> Decompile SecSettings.apk (I use apktool)
--> Navigate to /smali/com/android/settings
--> Open LockScreenSettings.smali with your preferred text editor (I use Notepad++)
--> Search `mRippleEffect`, and search until you find the line with `mRippleEffect` that is above a line with the phrase `removePreference` in it.
--> Remove 4 lines - that `removePreference` line, and the 3 lines above it.
--> Save, recompile, push to /system/app/.
--> Decompile framework-res.apk
--> Navigate to /res/values
--> Open bools.xml
--> Search `config_isWaterRippleEnabled`
--> Change value from `false` to `true`
--> Save, recompile, push to /system/framework/
--> Change the permissions to 0644 (rw-r--r--)
--> Reboot, and enjoy!
An example of which lines to remove (taken from my SecSettings.apk, so code may differ slightly):
Code:
invoke-virtual {p0}, Lcom/android/settings/LockScreenSettings;->getPreferenceScreen()Landroid/preference/PreferenceScreen;
move-result-object v5
iget-object v8, p0, Lcom/android/settings/LockScreenSettings;->mRippleEffect:Landroid/preference/CheckBoxPreference;
invoke-virtual {v5, v8}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)ZYou can also enable some other hidden lockscreen settings (like the Information Ticker, Camera Quick Access, Wakeup Command which requires S Voice, et cetera depending on whether or not Samsung has chosen to include certain features in the ROM. I can`t guarantee that there`ll be no bugs if you`re trying to enable another hidden option) by following this general method (of deleting code that is telling the device to hide the option). If you have any problems, questions, or comments, post them here! If you choose to include this mod in your ROM, please give me some thanks!