[Samsung Epic 4G Touch] tkari4:
First add the new Airplane resource. (notification_airplane_mode.png)

Then build your SecSettings.apk. Delete the old one.

Baksmali your new SecSettings.apk and open the NotificationPanelMenu.smali.

(\com\android\settings\NotificationPanelMenu.smali)

Find Airplane in the smali text.

You will see something like that:

.line 325
iget-object v0, p0, Lcom/android/settings/NotificationPanelMenu;->mConvertPanelItemstring:Ljava/util/HashMap;

const-string v1, "Sync"

const-string v2, "[COLOR="Green"]notification_panel_sync[/COLOR]"

invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

.line 326
iget-object v0, p0, Lcom/android/settings/NotificationPanelMenu;->mConvertPanelItemstring:Ljava/util/HashMap;

const-string v1, "[COLOR="Blue"]Airplane[/COLOR]Mode"

const-string v2, "notification_airplane_mode"

invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

As you see it's after the "notification_panel_sync"

Now open NotificationPanel.smali and find "notification_panel_sync" in it.

(\com\android\settings\NotificationPanel.smali)

Now copy and paste this lines after himself:

iget-object v0, p0, Lcom/android/settings/NotificationPanel;->mConvertPanelItemstring:Ljava/util/HashMap;

const-string v1, "Sync"

const-string v2, "notification_panel_sync"

invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

Should looks like that:

iget-object v0, p0, Lcom/android/settings/NotificationPanel;->mConvertPanelItemstring:Ljava/util/HashMap;

const-string v1, "Sync"

const-string v2, "notification_panel_sync"

invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

iget-object v0, p0, Lcom/android/settings/NotificationPanel;->mConvertPanelItemstring:Ljava/util/HashMap;

const-string v1, [COLOR="red"]"Sync"[/COLOR]

const-string v2, [COLOR="blue"]"notification_panel_sync"[/COLOR]

invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

Now change the second "Sync" text to "AirplaneMode" and the second "notification_panel_sync" to "notification_airplane_mode"

Must work so.

This lines are from your SecSettings.apk:

.line 137
iget-object v0, p0, Lcom/android/settings/NotificationPanel;->mConvertPanelItemstring:Ljava/util/HashMap;

const-string v1, "Sync"

const-string v2, "notification_panel_sync"

invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

iget-object v0, p0, Lcom/android/settings/NotificationPanel;->mConvertPanelItemstring:Ljava/util/HashMap;

const-string v1, "AirplaneMode"

const-string v2, "[COLOR="Red"][B]notification_panel_airplane[/B][/COLOR]"

invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

As you see you are using different resource name, so won't work.

If you are moving it to the active toggles it will be gone, because of the different resource name.

Use instead "notification_panel_airplane", "notification_airplane_mode" in the smali.

Resource must have the same name as in the smali, also notification_airplane_mode.png.

;)