[Galaxy S II Android Development] remuntada78:
another thing, i need to add this code , in the .method public onPreferenceChange on LockScreenSettings.smali

iget-object v10, p0, Lcom/android/settings/LockScreenSettings;->mLockscreenEffect:Landroid/preference/ListPreference;

if-ne p1, v10, :cond_0

check-cast p2, Ljava/lang/String;

invoke-static {p2}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

move-result-object v10

invoke-virtual {v10}, Ljava/lang/Integer;->intValue()I

move-result v9

invoke-virtual {p0}, Lcom/android/settings/LockScreenSettings;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v10

const-string v11, "unlock_effect"

invoke-static {v10, v11, v9}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

goto/16 :goto_1
.end method

it is right to do it this way?

stock:

.method public onPreferenceChange(Landroid/preference/Preference;Ljava/lang/Object;)Z
.
.
.
.line 509
.end local v5 #mAppServiceStatus:I
.end local v6 #mCurrentAppServiceStatus:I
.end local v7 #mNewValue:I
.end local v9 #value:Ljava/lang/Boolean;
:cond_15
const-string v10, "lock_screen_shortcut"

invoke-virtual {v10, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v10

if-eqz v10, :cond_17

.line 510
check-cast p2, Ljava/lang/Boolean;

.end local p2
invoke-virtual {p2}, Ljava/lang/Boolean;->booleanValue()Z

move-result v10

if-eqz v10, :cond_16

const/4 v9, 0x1

.line 511
.local v9, value:I
:goto_d
invoke-virtual {p0}, Lcom/android/settings/SettingsPreferenceFragment;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v10

const-string v11, "lock_screen_shortcut"

invoke-static {v10, v11, v9}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

goto/16 :goto_1

.line 510
.end local v9 #value:I
:cond_16
const/4 v9, 0x0

goto :goto_d

.line 515
.restart local p2
:cond_17

iget-object v10, p0, Lcom/android/settings/LockScreenSettings;->mCameraShortCut:Landroid/preference/SwitchPreferenceScreen;

if-ne p1, v10, :cond_0

.line 516
const-string v10, "LockScreenSettings"

const-string v11, "onPreferenceChange, mCameraShortCut"

invoke-static {v10, v11}, Landroid/util/secutil/Log;->secD(Ljava/lang/String;Ljava/lang/String;)I

.line 517
check-cast p2, Ljava/lang/Boolean;

.end local p2
invoke-virtual {p2}, Ljava/lang/Boolean;->booleanValue()Z

move-result v10

invoke-virtual {p0, v10}, Lcom/android/settings/LockScreenSettings;->setCameraShortCut(Z)V

goto/16 :goto_1
.end method

modded in red

.method public onPreferenceChange(Landroid/preference/Preference;Ljava/lang/Object;)Z
.
.
.
.line 509
.end local v5 #mAppServiceStatus:I
.end local v6 #mCurrentAppServiceStatus:I
.end local v7 #mNewValue:I
.end local v9 #value:Ljava/lang/Boolean;
:cond_15
const-string v10, "lock_screen_shortcut"

invoke-virtual {v10, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v10

if-eqz v10, :cond_17

.line 510
check-cast p2, Ljava/lang/Boolean;

.end local p2
invoke-virtual {p2}, Ljava/lang/Boolean;->booleanValue()Z

move-result v10

if-eqz v10, :cond_16

const/4 v9, 0x1

.line 511
.local v9, value:I
:goto_d
invoke-virtual {p0}, Lcom/android/settings/SettingsPreferenceFragment;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v10

const-string v11, "lock_screen_shortcut"

invoke-static {v10, v11, v9}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

goto/16 :goto_1

.line 510
.end local v9 #value:I
:cond_16
const/4 v9, 0x0

goto :goto_d

.line 515
.restart local p2
:cond_17
iget-object v10, p0, Lcom/android/settings/LockScreenSettings;->mCameraShortCut:Landroid/preference/SwitchPreferenceScreen;

[COLOR="Red"] if-eqz v10, :cond_18[/COLOR]

.line 516
const-string v10, "LockScreenSettings"

const-string v11, "onPreferenceChange, mCameraShortCut"

invoke-static {v10, v11}, Landroid/util/secutil/Log;->secD(Ljava/lang/String;Ljava/lang/String;)I

.line 517
check-cast p2, Ljava/lang/Boolean;

.end local p2
invoke-virtual {p2}, Ljava/lang/Boolean;->booleanValue()Z

move-result v10

invoke-virtual {p0, v10}, Lcom/android/settings/LockScreenSettings;->setCameraShortCut(Z)V

goto/16 :goto_1

[COLOR="Red"]:cond_18
iget-object v10, p0, Lcom/android/settings/LockScreenSettings;->mLockscreenEffect:Landroid/preference/ListPreference;

if-ne p1, v10, :cond_0

check-cast p2, Ljava/lang/String;

invoke-static {p2}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

move-result-object v10

invoke-virtual {v10}, Ljava/lang/Integer;->intValue()I

move-result v9

invoke-virtual {p0}, Lcom/android/settings/LockScreenSettings;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v10

const-string v11, "unlock_effect"

invoke-static {v10, v11, v9}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

goto/16 :goto_1[/COLOR]
.end method

thanks:D