[Galaxy Note GT-N7000 Android Development] majdinj:
- You have 2 same defined goto_a in smali line 6311 and 6346

- goto_njsafe has no defined goto command..

I will try to explain these. Let's say we have this code:

[B][COLOR="Blue"]:goto_a[/COLOR] [COLOR="Red"]<!-- This is how defined goto looks like[/COLOR][/B]
invoke-virtual {p0}, Lcom/android/settings/DisplaySettings;->getActivity()Landroid/app/Activity;

move-result-object v11

invoke-static {v11}, Lcom/android/settings/Utils;->isTablet(Landroid/content/Context;)Z

move-result v11

[B][COLOR="Blue"]if-eqz v11, :cond_6[/COLOR] [COLOR="Red"]<!-- This means if v11 results equal to zero, jump to cond_6. So cond_6 must be in the code as defined cond_6[/COLOR][/B]

[B][COLOR="Blue"]goto :goto_njsafe[/COLOR] [COLOR="Red"]<!-- This means if the above test is not equal to zero, jump to goto_njsafe. So goto_njsafe must be in the code as defined goto_njsafe[/COLOR][/B]

[B][COLOR="Blue"]:cond_6[/COLOR] [COLOR="Red"]<!-- This is how defined cond looks like[/COLOR][/B]
invoke-virtual {p0}, Lcom/android/settings/DisplaySettings;->getPreferenceScreen()Landroid/preference/PreferenceScreen;

move-result-object v11

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

invoke-virtual {v11, v12}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z

[B][COLOR="Blue"]:goto_njsafe[/COLOR] [COLOR="Red"]<!-- This is how defined goto looks like[/COLOR][/B]
const/4 v11, 0x0

invoke-static {v11}, Lcom/android/settings/Utils;->isTablet(Landroid/content/Context;)Z

move-result v11

[B][COLOR="Blue"]if-nez v11, :cond_2[/COLOR] [COLOR="Red"]<!-- This means if v11 results not equal to zero, jump to cond_2. So cond_2 must be in the code as defined cond_2[/COLOR][/B]

return-void

[B][COLOR="Blue"]:cond_2[/COLOR] [COLOR="Red"]<!-- This is how defined cond looks like[/COLOR][/B]
const-string v11, "accelerometer_second"

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

move-result-object v11

In your smali, you had these similar errors as simulation:

[B][COLOR="Blue"]:goto_a[/COLOR][/B]
invoke-virtual {p0}, Lcom/android/settings/DisplaySettings;->getActivity()Landroid/app/Activity;

move-result-object v11

invoke-static {v11}, Lcom/android/settings/Utils;->isTablet(Landroid/content/Context;)Z

move-result v11

if-eqz v11, [B][COLOR="DarkOrange"]:cond_6[/COLOR][/B]

goto [B][COLOR="Red"]:goto_njsafe[/COLOR][/B]

[B][COLOR="Blue"]:goto_a[/COLOR][/B]
invoke-virtual {p0}, Lcom/android/settings/DisplaySettings;->getPreferenceScreen()Landroid/preference/PreferenceScreen;

move-result-object v11

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

invoke-virtual {v11, v12}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z

[B][COLOR="DarkOrange"]:cond_6[/COLOR][/B]
const/4 v11, 0x0

invoke-static {v11}, Lcom/android/settings/Utils;->isTablet(Landroid/content/Context;)Z

move-result v11

if-eqz v11, [B][COLOR="SeaGreen"]:cond_2[/COLOR][/B]

return-void

[B][COLOR="SeaGreen"]:cond_2[/COLOR][/B]
const-string v11, "accelerometer_second"

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

move-result-object v11

See here, you have 2 defined goto_a and this is wrong.

Also goto_njsafe has no defined goto_njsafe and this is wrong too.

Other conditions are correctely linked to each other (:cond_6 to :cond_6) and (:cond_2 to :cond_2)