[Galaxy S II Android Development] remuntada78:
i need to add this code in my LockScreenSettings.smali in SecSettings

const-string v9, "unlock_effect"

invoke-virtual {p0, v9}, Lcom/android/settings/LockScreenSettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

move-result-object v9

check-cast v9, Landroid/preference/ListPreference;

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

const-string v9, "unlock_effect"

const/4 v11, 0x0

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

move-result v9

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

invoke-static {v9}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

move-result-object v9

invoke-virtual {v11, v9}, Landroid/preference/ListPreference;->setValue(Ljava/lang/String;)V

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

invoke-virtual {v11, p0}, Landroid/preference/SwitchPreferenceScreen;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V

can you help me to find the right place where to add it View attachment LockScreenSettings.zip

i was thinking about here

.line 142
.local v6, resolver:Landroid/content/ContentResolver;
new-instance v9, Lcom/android/internal/widget/LockPatternUtils;

invoke-virtual {p0}, Landroid/app/Fragment;->getActivity()Landroid/app/Activity;

move-result-object v10

invoke-direct {v9, v10}, Lcom/android/internal/widget/LockPatternUtils;-><init>(Landroid/content/Context;)V

iput-object v9, p0, Lcom/android/settings/LockScreenSettings;->mLockPatternUtils:Lcom/android/internal/widget/LockPatternUtils;

.line 144
const v9, 0x7f07003b

invoke-virtual {p0, v9}, Landroid/preference/PreferenceFragment;->addPreferencesFromResource(I)V

[COLOR="Red"]const-string v9, "unlock_effect"

invoke-virtual {p0, v9}, Lcom/android/settings/LockScreenSettings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

move-result-object v9

check-cast v9, Landroid/preference/ListPreference;

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

const-string v9, "unlock_effect"

const/4 v11, 0x0

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

move-result v9

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

invoke-static {v9}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

move-result-object v9

invoke-virtual {v11, v9}, Landroid/preference/ListPreference;->setValue(Ljava/lang/String;)V

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

invoke-virtual {v11, p0}, Landroid/preference/SwitchPreferenceScreen;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V[/COLOR]

.line 147
const-string v9, "lock_screen_shortcut"

invoke-virtual {p0, v9}, Landroid/preference/PreferenceFragment;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

move-result-object v9

check-cast v9, Landroid/preference/SwitchPreferenceScreen;

iput-object v9, p0, Lcom/android/settings/LockScreenSettings;->mLockScreenShortcut:Landroid/preference/SwitchPreferenceScreen;

.line 148
iget-object v9, p0, Lcom/android/settings/LockScreenSettings;->mLockScreenShortcut:Landroid/preference/SwitchPreferenceScreen;

invoke-virtual {v9, p0}, Landroid/preference/Preference;->setOnPreferenceChangeListener(Landroid/preference/Preference$OnPreferenceChangeListener;)V

.line 149

what do you think?