[APP][ICS][CM9][CM7][i9023/20] Modified Mms.apk With Next Line (Enter Button) Support

Kureb

Member
Aug 6, 2011
24
25
0
Epinal - Troyes (France)
3. Adjust the .line numbering to the numbering used by the previous method before patching. Not adjusting the .line numbering would/may cause errors.
Hey ! Thanks a lot for sharing your method but I don't understand this part.
I read that you has explained to Difusal the previous page.
Can you explain again with an exemple ?

You wrote this :
The modded snippet has 15 .lines (3232 - 3217), how many .lines does your previous smali have? You can try using some .line values from your previous smali's range not explicitly shown in the smali code.

You can also try deleting some .line entries in the modded snippet. As far as I know, they are there for debugging purposes only.
If the modded snippet has 15 .lines, the other must have 15 .lines too ?


thanks
 

mikko3024

Senior Member
Jul 26, 2011
81
153
63
Manila
If the modded snippet has 15 .lines, the other must have 15 .lines too?
In most cases, they have the same number of .lines occupied. But if in case they don't, you can modify the .line numbers of the modded snippet to fit in the range of your original smali code.

ie.
Your original code (inside the .method public onEditorAction) has .line values ranging from 3285-3300, change the modded snippet's .line numbers (3217-3232) to fit into that range.
Replace/change: (in the modded snippet)
3217 to 3285
3218 to 3286
3219 to 3287
...
3231 to 3299
3232 to 3300

You only need to change .line numbers for numbers that is in your code.
If your original code has less .lines than the modded one, you can delete some .line entries from the modded code (They are mainly used for debugging).
If your original code has more lines than the modded one, just replace the .lines in the modded snippet to its corresponding value in your original code. Don't worry about the unused .line numbers--they will be like spaces in the code.
 
  • Like
Reactions: Kureb

Paparasee

Senior Member
Apr 19, 2009
1,100
196
93
Kuwait
Mikko, I really appreciate your work and how you constantly update this with every new update that the Google Team brings :)

About a month ago, I happened to reach this thread -> http://forum.xda-developers.com/showthread.php?t=1535225&highlight=latinime where in the "Enter" key is not actually there ... it is there as part of the various punctuations.

This had the advantage of not just having the "Enter" key while keeping all other features of the default app, but it also allowed the user to use modified versions of the mms.apk found here -> http://rootzwiki.com/topic/23960-bubble-themed-mmsapks-various-styles-updated-7-18-added-red-and-black-sense-and-also-blue-sense/ since the modifications related to the "Enter" key is made in the LatinIME.apk file.

Would it be too difficult for you to do a mod on the JB LatinIME.apk file to include this feature specially since that Mod is no longer updated and does not work with JB.

Thanks a lot for all your work ... even if you do not get time to work on my request :)
 
  • Like
Reactions: mikko3024

mikko3024

Senior Member
Jul 26, 2011
81
153
63
Manila
Mikko, I really appreciate your work and how you constantly update this with every new update that the Google Team brings :)

About a month ago, I happened to reach this thread -> http://forum.xda-developers.com/showthread.php?t=1535225&highlight=latinime where in the "Enter" key is not actually there ... it is there as part of the various punctuations.

This had the advantage of not just having the "Enter" key while keeping all other features of the default app, but it also allowed the user to use modified versions of the mms.apk found here -> http://rootzwiki.com/topic/23960-bu...dded-red-and-black-sense-and-also-blue-sense/ since the modifications related to the "Enter" key is made in the LatinIME.apk file.

Would it be too difficult for you to do a mod on the JB LatinIME.apk file to include this feature specially since that Mod is no longer updated and does not work with JB.

Thanks a lot for all your work ... even if you do not get time to work on my request :)
Thanks for the input. I'll look into it when I have the free time. :)