[Galaxy S II General] remuntada78:
Do you have the Rom Control?

If you don't have it, you have to follow the guide but instead to Navigate to res/xml/rom_settings.xml you have to go in res/xml/display_settings

in res/values/arrays..intead to add the following code:

<string-array name="entries_status_bar_transparency">
<item>0%</item>
<item>50%</item>
<item>100%</item>
</string-array>
<string-array name="values_status_bar_transparency">
<item>100</item>
<item>75</item>
<item>50</item>
</string-array>

you have to add this code:

<string-array name="entries_status_bar_transparency">
<item>0%</item>
<item>10%</item>
<item>20%</item>
<item>30%</item>
<item>40%</item>
<item>50%</item>
<item>60%</item>
<item>70%</item>
<item>80%</item>
<item>90%</item>
<item>100%</item>
</string-array>
<string-array name="values_status_bar_transparency">
<item>100</item>
<item>95</item>
<item>90</item>
<item>85</item>
<item>80</item>
<item>75</item>
<item>70</item>
<item>65</item>
<item>60</item>
<item>55</item>
<item>50</item>
</string-array>

when the guide says Navigate to smali/com/android/settings/didact/RomSettings.smali instead to Navigate to smali/com/android/settings/didact/RomSettings.smali you have to go in smali/com/android/settings/DisplaySettings.smali

when the guide says Find method "onCreate(Landroid/os/Bundle)V"

instead to add this

const-string v5, "lockscreen_type_key"

invoke-static {v4, v5, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v4

invoke-static {v4}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

move-result-object v4

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

[COLOR="Red"] const-string v1, "status_bar_transparency"

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

move-result-object v1

check-cast v1, Landroid/preference/ListPreference;

iput-object v1, p0, Lcom/android/settings/didact/RomSettings;->mStatusbarTransparency:Landroid/preference/ListPreference;

iget-object v1, p0, Lcom/android/settings/didact/RomSettings;->mStatusbarTransparency:Landroid/preference/ListPreference;

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

iget-object v1, p0, Lcom/android/settings/didact/RomSettings;->mStatusbarTransparency:Landroid/preference/ListPreference;

invoke-virtual {p0}, Lcom/android/settings/didact/RomSettings;->getActivity()Landroid/app/Activity;

move-result-object v4

invoke-virtual {v4}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v4

const-string v5, "status_bar_transparency"

invoke-static {v4, v5, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v4

invoke-static {v4}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

move-result-object v4

invoke-virtual {v1, v4}, Landroid/preference/ListPreference;->setValue(Ljava/lang/String;)V[/COLOR]

const-string v1, "enable_lockscreen_torch"

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

move-result-object v1

check-cast v1, Landroid/preference/CheckBoxPreference;

you have to add this

const-string v5, "lockscreen_type_key"

invoke-static {v4, v5, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v4

invoke-static {v4}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

move-result-object v4

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

[COLOR="Red"] const-string v1, "status_bar_transparency"

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

move-result-object v1

check-cast v1, Landroid/preference/ListPreference;

iput-object v1, p0, Lcom/android/settings/DisplaySettings;->mStatusbarTransparency:Landroid/preference/ListPreference;

iget-object v1, p0, Lcom/android/settings/DisplaySettings;->mStatusbarTransparency:Landroid/preference/ListPreference;

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

iget-object v1, p0, Lcom/android/settings/DisplaySettings;->mStatusbarTransparency:Landroid/preference/ListPreference;

invoke-virtual {p0}, Lcom/android/settings/DisplaySettings;->getActivity()Landroid/app/Activity;

move-result-object v4

invoke-virtual {v4}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v4

const-string v5, "status_bar_transparency"

invoke-static {v4, v5, v2}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v4

invoke-static {v4}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

move-result-object v4

invoke-virtual {v1, v4}, Landroid/preference/ListPreference;->setValue(Ljava/lang/String;)V[/COLOR]

const-string v1, "enable_lockscreen_torch"

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

move-result-object v1

check-cast v1, Landroid/preference/CheckBoxPreference;

and here Find method "onPreferenceChange(Landroid/preference/Preference;Ljava/lang/Objec)V"

instead to add this

:cond_4
iget-object v5, p0, Lcom/android/settings/didact/RomSettings;->mLockScreenStylePref:Landroid/preference/ListPreference;

if-ne p1, v5,[COLOR="Red"] :cond_6[/COLOR]

check-cast p2, Ljava/lang/String;

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

move-result v4

invoke-virtual {p0}, Lcom/android/settings/didact/RomSettings;->getActivity()Landroid/app/Activity;

move-result-object v5

invoke-virtual {v5}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v5

if-eqz v5, :cond_5

const-string v6, "lockscreen_ripple_effect"

const/4 v2, 0x0

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

const-string v6, "lockscreen_type_key"

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

goto :goto_0

:cond_5
const-string v6, "lockscreen_type_key"

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

const/4 v2, 0x1

const-string v6, "lockscreen_ripple_effect"

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

goto :goto_0

[COLOR="Red"] :cond_6
iget-object v5, p0, Lcom/android/settings/didact/RomSettings;->mStatusbarTransparency:Landroid/preference/ListPreference;

if-ne p1, v5, :cond_0

check-cast p2, Ljava/lang/String;

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

move-result v4

invoke-virtual {p0}, Lcom/android/settings/didact/RomSettings;->getActivity()Landroid/app/Activity;

move-result-object v5

invoke-virtual {v5}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v5

const-string v6, "status_bar_transparency"

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

move-result v2

goto :goto_0[/COLOR]
.end method

you have to add this

:cond_4
iget-object v5, p0, Lcom/android/settings/didact/RomSettings;->mLockScreenStylePref:Landroid/preference/ListPreference;

if-ne p1, v5,[COLOR="Red"] :cond_6[/COLOR]

check-cast p2, Ljava/lang/String;

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

move-result v4

invoke-virtual {p0}, Lcom/android/settings/didact/RomSettings;->getActivity()Landroid/app/Activity;

move-result-object v5

invoke-virtual {v5}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v5

if-eqz v5, :cond_5

const-string v6, "lockscreen_ripple_effect"

const/4 v2, 0x0

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

const-string v6, "lockscreen_type_key"

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

goto :goto_0

:cond_5
const-string v6, "lockscreen_type_key"

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

const/4 v2, 0x1

const-string v6, "lockscreen_ripple_effect"

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

goto :goto_0

[COLOR="Red"] :cond_6
iget-object v5, p0, Lcom/android/settings/DisplaySettings;->mStatusbarTransparency:Landroid/preference/ListPreference;

if-ne p1, v5, :cond_0

check-cast p2, Ljava/lang/String;

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

move-result v4

invoke-virtual {p0}, Lcom/android/settings/DisplaySettings;->getActivity()Landroid/app/Activity;

move-result-object v5

invoke-virtual {v5}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v5

const-string v6, "status_bar_transparency"

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

move-result v2

goto :goto_0[/COLOR]
.end method