[LG Optimus Me P350] Aadi:
Were you ever frustrated because there was no enter button in your messaging app after installing CM7, CM9 well if you were just follow this guide to remove that frustration.

Proof :highfive: :-

Credits :good: :-

mikko3024 for guide.

crackeron for helping me out.

and finally system.img for his post which left me to find this mod.

Pre-Requisites :cowboy: :-

1. APK Tool can be downloaded from here.

2. Smali.jar no need to download it is included the apktools file.

3. Mms.apk can be found in your ROM's system\app\ folder.

4. Notepad++ because odinary Notepad or Wordpad may damage the file NP++ can be downloaded from here.

Instructions :angel: :D :-

1. Extract apktools.rar to some folder named APKTOOLS in your PC.

2. Install Notepad++.

3. Put the Mms.apk and framework-res.apk(found in system\framework) in the APKTOOLS folder.

4. Shift+Right Click the APKTOOLS.

5. Select Open Command Window Here from the list it should open a command prompt if you did properly.

6. Type

apktool d framework-res.apk

.

7. Type

apktool if framework-res.apk

.

8. Type

apktool d Mms.apk

.

9. After it has finished decompiling open up Mms folder(will be created after decompiling).

10. Navigate to res\layout\.

11. Open compose_message_activity using NP++.

12. Find this part |textShortMessage and delete only this part and not the entire line save it.

13. Recompile the apk by typing the following in the command prompt window.

apktool b Mms

14. Now go back to Mms folder.

15. Navigate to \smali\com\android\mms\ui folder.

16. Open ComposeMessageActivity.smali using NP++.

17. Find this line .method public onEditorAction(Landroid/widget/TextView;ILandroid/view/KeyEvent;)Z.

18. Just modify the .method snippet to below.

.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 3171
if-eqz p3, :cond_4

.line 3173
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
iget-boolean v0, p0, Lcom/android/mms/ui/ComposeMessageActivity;->mSendOnEnter:Z

if-nez v0, :cond_1

move v0, v2

.line 3190
:goto_0
return v0

.line 3178
:cond_1
invoke-virtual {p3}, Landroid/view/KeyEvent;->isShiftPressed()Z

move-result v0

if-nez v0, :cond_3

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

move-result v0

if-eqz v0, :cond_2

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

:cond_2
move v0, v3

.line 3182
goto :goto_0

:cond_3
move v0, v2

.line 3184
goto :goto_0

.line 3187
:cond_4
invoke-direct {p0}, Lcom/android/mms/ui/ComposeMessageActivity;->isPreparedForSending()Z

move-result v0

if-eqz v0, :cond_5

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

:cond_5
move v0, v3

.line 3190
goto :goto_0
.end method

19. Save it.

20. Now copy the smali folder to someother directory just in case for a backup.

21. Copy the smali.jar to Mms folder

21. Now in the Command Prompt window type

cd Mms

and the type

java -jar ./smali.jar -o ./classes.dex ./smali

to create a classes.dex file.

22. In the Mms folder navigate to dist folder and then open Mms.apk using WinRAR or WinZip or any other similar programs.

23. Copy the classes.dex file into the archive select the mode Add or Replace the files.

24. Copy it your SDCard.

25. Delete the Mms.apk in system\app in you phone using Root Explorer or something similar.

26. Copy the new Mms.apk from your SDCard to system\app in your and set the permissions to rw-r--r--.

27. Reboot Phone

28. Enjoy the new Mms with next line command :victory:.