Issue when trying to mod Mms.apk (BCM CM9 Rom)

FrancisFuku

Senior Member
May 15, 2010
87
26
0
Paris
Hi everybody,

I use the BCM CM9 2.2U2, and I want to mod the Mms.apk to override the SMS to MMS conversion after 4 texts.

Here is what I did:
- I used Apk-Multi Tool to decompile the Mms.apk.
- I modify /res/xml/mms_config.xml (to be precise, I replace the line "<int name="smsToMmsTextThreshold">4</int>" by "<int name="smsToMmsTextThreshold">100</int>")
- I recompile the apk, answering "y" to both questions and being careful with what Apk Multi Tool told me (basically, I deleted the files I needed to delete in the "keep" folder, ie. mms_config.xml and something.armsc-or-something-like that)
- I push the modded apk to my phone

But unfortunately, after I did that, I could not see the Mms.apk in the app drawer. I checked the permissions and the owner and they were correct (or at least, the same as the working Mms.apk).

I attached the original Mms.apk I'm trying to mod, and the actual modded Mms.apk (which does not work).?

Does somebody have an idea of what's gone wrong?

Thank you in advance!
 

Attachments

Difusal

Senior Member
Jul 3, 2011
456
410
93
Edinburgh
Hi everybody,

I use the BCM CM9 2.2U2, and I want to mod the Mms.apk to override the SMS to MMS conversion after 4 texts.

Here is what I did:
- I used Apk-Multi Tool to decompile the Mms.apk.
- I modify /res/xml/mms_config.xml (to be precise, I replace the line "<int name="smsToMmsTextThreshold">4</int>" by "<int name="smsToMmsTextThreshold">100</int>")
- I recompile the apk, answering "y" to both questions and being careful with what Apk Multi Tool told me (basically, I deleted the files I needed to delete in the "keep" folder, ie. mms_config.xml and something.armsc-or-something-like that)
- I push the modded apk to my phone

But unfortunately, after I did that, I could not see the Mms.apk in the app drawer. I checked the permissions and the owner and they were correct (or at least, the same as the working Mms.apk).

I attached the original Mms.apk I'm trying to mod, and the actual modded Mms.apk (which does not work).?

Does somebody have an idea of what's gone wrong?

Thank you in advance!
I have the exact same problem! Did you find any solution?
 

FrancisFuku

Senior Member
May 15, 2010
87
26
0
Paris
I gave up but I've found a Mms.apk (from the latest CM9 source) which does include a option to not convert SMS into MMS (you have to change it in the settings of the app). But it is for the HTC One X, so I do not know if it works for other devices. I attach it so you can try.
 

Attachments

Kremlin987

Senior Member
Nov 29, 2010
68
28
0
The problem is that all apps must be signed to run on Android. Once you recompile your apk with apktool, you have to sign it with a release key (and optionally but recommended - run zipalign), before pushing it back to your phone.

The android developers guide has an excellent article on creating a set of release keys and using them to sign your apk (the apk just has to be signed with any key, it doesn't have to match the same key the original ROM authors used).