[General Questions and Answers] raphysaur:
Hi. I really want to add a next line mod for my stock Messaging app. I used to have succeeded doing this on my previous phone but my new phone is a dual sim phone and there are new codes in the smali method that needs to be edited and I can't seem to properly place the line numbering to match that of the original but at the same time follow that of the mod.. Can someone please help me on this?

This is the method from the xda guide.. (I'm new and cannot post links yet)

.method public onEditorAction(Landroid/widget/TextView;ILandroid/view/KeyEvent;)Z

.locals 4

.parameter "v"

.parameter "actionId"

.parameter "event"

.prologue

const/4 v3, 0x1

const/4 v2, 0x0

.line 3217

if-eqz p3, :cond_4

.line 3218

invoke-virtual {p3}, Landroid/view/KeyEvent;->getKeyCode()I

move-result v0

const/16 v1, 0x17

if-eq v0, v1, :cond_0

invoke-virtual {p3}, Landroid/view/KeyEvent;->getKeyCode()I

move-result v0

const/16 v1, 0x42

if-ne v0, v1, :cond_1

:cond_0

move v0, v2

.line 3232

:goto_0

return v0

.line 3221

:cond_1

invoke-virtual {p3}, Landroid/view/KeyEvent;->isShiftPressed()Z

move-result v0

if-nez v0, :cond_3

.line 3222

invoke-direct {p0}, Lcom/android/mms/ui/ComposeMessageActivity;->isPreparedForSending()Z

move-result v0

if-eqz v0, :cond_2

.line 3223

invoke-direct {p0}, Lcom/android/mms/ui/ComposeMessageActivity;->confirmSendMessageIfNeeded()V

:cond_2

move v0, v3

.line 3225

goto :goto_0

:cond_3

move v0, v2

.line 3227

goto :goto_0

.line 3229

:cond_4

invoke-direct {p0}, Lcom/android/mms/ui/ComposeMessageActivity;->isPreparedForSending()Z

move-result v0

if-eqz v0, :cond_5

.line 3230

invoke-direct {p0}, Lcom/android/mms/ui/ComposeMessageActivity;->confirmSendMessageIfNeeded()V

:cond_5

move v0, v3

.line 3232

goto :goto_0

.end method

While here is the method from my phone:

.method public onEditorAction(Landroid/widget/TextView;ILandroid/view/KeyEvent;)Z

.locals 4

.parameter

.parameter

.parameter

.prologue

const/4 v3, 0x1

const/4 v2, 0x0

.line 4478

if-eqz p3, :cond_4

.line 4481

invoke-virtual {p3}, Landroid/view/KeyEvent;->isShiftPressed()Z

move-result v0

if-nez v0, :cond_3

invoke-virtual {p3}, Landroid/view/KeyEvent;->getAction()I

move-result v0

if-nez v0, :cond_3

.line 4483

invoke-virtual {p0}, Lcom/android/mms/ui/ComposeMessageActivity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v0

const-string v1, "airplane_mode_on"

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

move-result v0

.line 4484

if-ne v0, v3, :cond_0

move v0, v3

.line 4523

:goto_0

return v0

.line 4488

:cond_0

invoke-direct {p0}, Lcom/android/mms/ui/ComposeMessageActivity;->isPreparedForSending()Z

move-result v0

if-eqz v0, :cond_1

.line 4491

invoke-direct {p0}, Lcom/android/mms/ui/ComposeMessageActivity;->isMultiSim()Z

move-result v0

if-eqz v0, :cond_2

invoke-direct {p0}, Lcom/android/mms/ui/ComposeMessageActivity;->isMultiSimEnabled()Z

move-result v0

if-eqz v0, :cond_2

.line 4493

invoke-direct {p0, v2, v3}, Lcom/android/mms/ui/ComposeMessageActivity;->confirmSendMessageIfNeeded(IZ)V

:cond_1

:goto_1

move v0, v3

.line 4500

goto :goto_0

.line 4496

:cond_2

invoke-direct {p0}, Lcom/android/mms/ui/ComposeMessageActivity;->getCurrentEnabledSim()I

move-result v0

invoke-direct {p0, v0, v2}, Lcom/android/mms/ui/ComposeMessageActivity;->confirmSendMessageIfNeeded(IZ)V

goto :goto_1

:cond_3

move v0, v2

.line 4502

goto :goto_0

.line 4505

:cond_4

invoke-direct {p0}, Lcom/android/mms/ui/ComposeMessageActivity;->isPreparedForSending()Z

move-result v0

if-eqz v0, :cond_6

.line 4508

invoke-direct {p0}, Lcom/android/mms/ui/ComposeMessageActivity;->isMultiSim()Z

move-result v0

if-eqz v0, :cond_5

invoke-direct {p0}, Lcom/android/mms/ui/ComposeMessageActivity;->isMultiSimEnabled()Z

move-result v0

if-eqz v0, :cond_5

.line 4510

invoke-direct {p0, v2, v3}, Lcom/android/mms/ui/ComposeMessageActivity;->confirmSendMessageIfNeeded(IZ)V

:goto_2

move v0, v3

.line 4523

goto :goto_0

.line 4513

:cond_5

invoke-direct {p0}, Lcom/android/mms/ui/ComposeMessageActivity;->getCurrentEnabledSim()I

move-result v0

invoke-direct {p0, v0, v2}, Lcom/android/mms/ui/ComposeMessageActivity;->confirmSendMessageIfNeeded(IZ)V

goto :goto_2

:cond_6

move v0, v2

.line 4520

goto :goto_0

.end method

PLEASE can anybody help me? Im not good at this so please anyone kind enough to correctly do the line numbering thingy? I will really appreciate it.. Thanks. :D