[Android Apps and Games] mikko3024:
Looking for a way to insert new lines in the default SMS application (through the stock keyboard), I've modified the Mms.apk to enable inserting new lines (Enter key) in an SMS.

This thread was originally posted on the Nexus S Themes and Apps forum. I've decided to post this new thread on the general Android forum for a wider audience after being tested working on a Galaxy Tab 10.1 3G Model (P7500) and reported working on a Samsung Galaxy S II running CM9 ROMs.

Original Nexus S thread: Modified Mms.apk With Next Line (Enter Button) Support

Instructions

Backup your current Mms.apk before using this one.

Rename the dowloaded apk file (from the link below) to Mms.apk.

Using Root Explorer (or any file manager of your preference) copy file to /system/app.

Set proper permissions (rw-r--r-- or 644).

Set File ownership to root:root.

Hit the Thanks button if you liked this one. :D

Enjoy!:cool:

Download

- JB V1: Mms-NextLineV1-JB.apk

- ICS V5: Mms-NextLineV5-ICS.apk

Note: JB version may or may not work on an ICS ROM or vice versa. Patched JB Mms.apk was not tested on an ICS ROM or the ICS version on JB.

Troubleshooting

1. Missing Messaging icon in launcher:

- Verify that Mms.apk has proper permissions and ownership. (See Instructions)

- Reboot device.

2. Force closing when opening message threads:

- Are you running a non-vanilla ROM? (ie. TouchWiz ROMs)

- Samsung has a database issue with the vanilla version of the Mms.apk. You can try using this patched apk: MmsTW.patched.apk

Change Log

JB Version 1: (Mms-NextLineV1-JB.apk) 2012-07-26

- Patched Jelly Bean Mms.apk file.

ICS Version 5: (Mms-NextLineV5-ICS.apk) 2012-05-19

- Updated base Mms.apk file.

- Various fixes (Gestures, etc).

ICS Version 4: (Mms-NextLineV4-ICS.apk) 2012-05-07

- Updated base Mms.apk file.

- Emoji support.

ICS Version 3: (Mms-NextLineV3-ICS.apk) 2012-04-01

- Updated base Mms.apk file from ICS 4.0.4. (From fipsib)

ICS Version 2: (Mms-NextLineV2-ICS.apk) 2012-03-02

- Updated base Mms.apk file. (With contact images in notifications from fipsib)

- Fixed FC when attaching images/multimedia.

ICS Version 1: (Mms-NextLine-ICS.apk) 2012-01-21

- Ported patch to ICS Mms.apk

- Initial ICS release.

Notes

Modified ICS APK should work on most (if not all) deodexed vanilla ICS ROMS. Apk may or may not work on ROMs not running vanilla ICS. Some manufacturers (Samsung - TouchWiz, HTC - Sense, etc.) introduce other features to their ROMs that can render the patched apk nonfunctional. Prepare a backup properly before trying the posted apk.

ICS version is reported to also work on Samsung Galaxy S2 running CM9 (by rehanraza)

Tested using Nexus S i9023 on respective ICS and CM9 KANG Builds. (APK should be fine on GSM versions of the Nexus S)

Tested and working on a Galaxy Tab 10.1 3G Model (P7500).

Reported not working on Nexus S 4G phones (and probably on other 4G phones too). (by blacknet101)

Modifications were inspired from: http://code.google.com/p/cyanogenmod/issues/detail?id=2898 and additional smali edits to bypass the Send on Enter check.

Let me know if this works for you or not (Please indicate your current ROM and phone model: i.e. i9020, i9023, etc.)

If you are experiencing errors and FCs, please provide a logcat if possible.

Screenshots

Older Versions

ICS V4: Mms-NextLineV4-ICS.apk

ICS V3: Mms-NextLineV3-ICS.apk

ICS V2: Mms-NextLineV2-ICS.apk

ICS V1: Mms-NextLine-ICS.apk

Please download the appropriate file for your ROM.

Apply mod at your own risk.