[MOD/HOWTO] SMS + No contact limit + No MMS convert + Sent time [JVX/JVT/JVQ/JVP/JVH]

Search This thread

montymintypie

Senior Member
Oct 25, 2010
304
122
Brisbane
UPDATE!
07/12 JVX added
14/7: JVT version added
14/7: JVQ CWM flashable versions for odexed and deodexed! Massive props to to $omator for this, who obviously knows a lot more about creating CWM zips than I do. Go to his post to download, and thank him while you're at it!
30/6: New JVQ version, thanks again bigdyl69! Get it here.
13/6: JVP version now exists, get it here thanks to bigdyl69!
21/5: Added Froyo JSD and Ginger JVO versions.
10/5: Added JVH version


Ok, this does what it says on the tin. It's a mod of the JVX messaging app that adds 3 often requested features:

  • No autoconvert to MMS after 3 messages
  • Sending to unlimited contacts
  • Sent time instead of received time. If you turn off your phone, messages you get whilst it's off will have the right time!

To install:
Simply copy the included apk depending on your system version to /system/app/Mms.apk, and make a backup first just in case.;)

Notes:
Your ROM MUST be deodexed!
If it doesn't work, clear the cache, the Dalvik cache, and also clear data for Messaging under Settings->Applications->Manage Applications (it won't delete your messages).
If the times are off by several hours download SMS Time Fix and set it the the correct number of hours to fix the timestamps.
The JVB MMS apk is actually from Darky's 10 RC6, but I don't think it's different from the default.


If I get enough requests for:
Other versions (e.g. JVK, etc)
CWM flashable versions

I'll make them.

Hope this is useful to people!

Massive props to ykk_five for his original mod! I couldn't have made this without his help.

HOWTO

Do you theme your Mms app? Got a custom ROM going on and want to do this yourself? Well here's how!

  1. Download Apk Manager from here.
  2. Get your Mms.apk from /system/app/Mms.apk
  3. Get your twframework-res.apk from /system/framework
  4. Open up Apk Manager and choose option 22
  5. Select Mms.apk as your project
  6. Select option 10 (decompile with dependencies)
  7. When it asks you for your dependency, drag and drop twframework-res.apk into the window and press enter
  8. When that's done, go into apk_manager/projects/Mms.apk
  9. Under /res/xml open up mms_config.xml
  10. Go to: <int name="recipientLimit">10</int> change this to -1
  11. Go to <int name="smsToMmsTextThreshold">4</int> Change this to 100
  12. Now open up /smali/com/android/mms/transaction/SmsReceiverService.smali and open it in any text editor.
  13. Search for 'time'. There will be one entry at approximately line 523
  14. Replace this with: invoke-virtual {p1}, Landroid/telephony/SmsMessage;->getTimestampMillis()J
  15. There will be another at approximately line 2270.
  16. Replace this with: invoke-virtual {v0}, Landroid/telephony/gsm/CbMessage;->getTimestampMillis()J
  17. Save and close them all and go back to apk manager, option 11 'compile'
  18. When you're done, it'll tell you about a 'keep' folder. Go delete mms_config.xml, and in the keep folder also delete resources.arsc and classes.dex
  19. Copy your new Mms.apk to your phone! Don't forget to back up your old one in case you make a mistake.:)

If you get errors, check the log for mentions of 9.png errors. If they are there, fix your 9 patch files! Use google for that, I'm not explaining how to do this.;)

If you can't be bothered to do this or don't know how, send me a PM! I've made more than 8 custom Mms.apks for people so far. :)
 

Attachments

  • JVH-Mms-NoConvert-NoContactLimit-SentTime.apk
    1.1 MB · Views: 1,564
  • JVB-Mms-NoConvert-NoContactLimit-SentTime.apk
    1.2 MB · Views: 376
  • JSD-Mms-NoConvert-NoContactLimit-SentTime.apk
    1.5 MB · Views: 426
  • JVO-Mms-NoConvert-NoContactLimit-SentTime.apk
    1.2 MB · Views: 760
  • JVT-Mms-NoConvert-NoContactLimit-SentTime.apk
    1.2 MB · Views: 1,094
Last edited:

beer-in-box

Member
Nov 26, 2010
18
0
Did you know that this was the thing I look for?
Thank you!
I'll provide feedback in case of any problems.
 

NeoXTC

Senior Member
Dec 13, 2007
682
40
Brisbane
I was wondering if I use handcent sms do I still need this if I wanted the "sent time" instead of receive time?

Cheers
 

Ryyuu

Senior Member
Jul 5, 2010
269
129
Brisbane
Hey mate,
What did you change in the apk to remove the mms convert?

I am trying to edit the TW4 mms.apk to be the same as what you've done.

Thanks!

Otherwise, Could you make the same changes to the attached mms.apk?
this is the TW4 one.
 

Attachments

  • Mms.apk
    3 MB · Views: 245
Last edited:

montymintypie

Senior Member
Oct 25, 2010
304
122
Brisbane
Hey mate,
What did you change in the apk to remove the mms convert?

I am trying to edit the TW4 mms.apk to be the same as what you've done.

Thanks!

Otherwise, Could you make the same changes to the attached mms.apk?
this is the TW4 one.

Under res / xml / mms_preferences.xml change
<int name="smsToMmsTextThreshold">3</int>
To something like 100. I'd just make the edit for you but I'm not at home :p
 
  • Like
Reactions: Ryyuu

Ryyuu

Senior Member
Jul 5, 2010
269
129
Brisbane
Fantastic!!
Thanks mate.
What about the received time setting too?

Also, How are you decompiling and editing your apk's?

I'm on a mac so have been using Betterzip to extract them and KOD to edit them... but i'm afraid i'm still seeing all scrambled text...
 
Last edited:

montymintypie

Senior Member
Oct 25, 2010
304
122
Brisbane
Fantastic!!
Thanks mate.
What about the received time setting too?

Also, How are you decompiling and editing your apk's?

I'm on a mac so have been using Betterzip to extract them and KOD to edit them... but i'm afraid i'm still seeing all scrambled text...

Ehhh, received time edit involves decompiling and editing the smali files, so it's a little more complex.

As for decompiling/editing, I use apk manager, which is Windows only as far as I know. I run it on my mac using Boot Camp. Also, it won't decompile properly without using the twframework-res.apk dependency file, so make sure you have the tw4 equivalent of that. PM me if you're game to try the smali editing.
 
  • Like
Reactions: Ryyuu

Ryyuu

Senior Member
Jul 5, 2010
269
129
Brisbane
Thank so much for your help mate.

I have successfully edited the TW4 mms.apk to remove the SmsToMms conversion.

I'll create a topic for it. But thank you very much for your help. I might have a look at converting the time too. I'll send you a PM.
 

ruh01

Senior Member
Jun 24, 2007
328
82
Bucuresti
icon missing

hello, after replaced and rebooted, Messaging icon dissappeared from bottom bar of twiz. Any idea how to bring it back...Sms works normally, sending time shown, as expected.
 

Ryyuu

Senior Member
Jul 5, 2010
269
129
Brisbane
All you need to do to fix this is open the app drawer, press edit, find the messaging icon and drag it to the dock.
This can sometimes happen when playing around with apk's.

Fixed. :)
 
Last edited:
  • Like
Reactions: ruh01

timelessfahad

Member
Mar 11, 2011
43
5
Karachi
You don't imagine how much I am thankful to you. I was looking for this very mod. Thank you so much. It works like a charm on my SGS with Darky's v10.RC6
 

pauldiddy

Senior Member
Sep 3, 2010
1,764
2,275
Karlsruhe
hi,good work.would you please tell me,which xml or smali files to edit or post it as sources files for developers?I would like to insert it into my transparent mms app.
 

montymintypie

Senior Member
Oct 25, 2010
304
122
Brisbane
hi,good work.would you please tell me,which xml or smali files to edit or post it as sources files for developers?I would like to insert it into my transparent mms app.

For xml, go to res/xml/mms_preferences.xml, then edit recipientLimit and smsToMmsTextThreshold to something overly large, I used 100 as it seems no one will breach that limit.

As for the sent time, just decompile this and stock Mms.apk and do a windiff on the smali folders. There's 2 lines changed which will jump right out. :)
 
  • Like
Reactions: pauldiddy

pauldiddy

Senior Member
Sep 3, 2010
1,764
2,275
Karlsruhe
For xml, go to res/xml/mms_preferences.xml, then edit recipientLimit and smsToMmsTextThreshold to something overly large, I used 100 as it seems no one will breach that limit.

As for the sent time, just decompile this and stock Mms.apk and do a windiff on the smali folders. There's 2 lines changed which will jump right out. :)

thank you,got it. :)
 

bigdyl69

Senior Member
Feb 12, 2008
793
98
Denbigh
I know this may be a little off topic but would this modification work on the JPY froyo MMS.apk? I have decompiled it and looked at the xml and there is a mms_config.xml file with the following code in it:

<?xml version="1.0" encoding="UTF-8"?>
<mms_config version="4">
<bool name="enabledMMS">true</bool>
<int name="maxMessageSize">307200</int>
<int name="mmsHeaderSize">5120</int>
<int name="maxImageHeight">480</int>
<int name="maxImageWidth">640</int>
<int name="defaultSMSMessagesPerThread">200</int>
<int name="defaultMMSMessagesPerThread">20</int>
<int name="minMessageCountPerThread">10</int>
<int name="maxMessageCountPerThread">5000</int>
<string name="uaProfUrl">http://wap.samsungmobile.com/uaprof/GT-i9000.xml</string>
<string name="userAgent">SAMSUNG-GT-I9000-Mms/2.0</string>
<string name="uaProfUrlS1">http://wap.samsungmobile.com/uaprof/GT-i9000.xml</string>
<string name="userAgentS1">SAMSUNG-GT-I9000-Mms/2.0</string>
<string name="uaProfUrlApollo">http://wap.samsungmobile.com/uaprof/GT-i5801.xml</string>
<string name="userAgentApollo">SAMSUNG-GT-I5801-Mms/2.0</string>
<int name="recipientLimit">100</int>
<int name="smsToMmsTextThreshold">100</int>
</mms_config>

As you can see I've edited the bottom two lines of code like what you have done to the JVB MMS.apk. Do you think this will work?
 

bigdyl69

Senior Member
Feb 12, 2008
793
98
Denbigh
It should work just as well on the JPY version, compile it and give it a go!

Well I tried it and it kind of works. I can send a message up to 7 messages long and it doesn't auto convert but if I try to make the message any longer it tells me 'Maximum number of characters reached' so it sort of works. Do you know of any way around this or is it best to just leave it? Probably won't ever need to send a sms longer than 7 messages long but just thought I'd ask
 

Top Liked Posts

  • There are no posts matching your filters.
  • 52
    UPDATE!
    07/12 JVX added
    14/7: JVT version added
    14/7: JVQ CWM flashable versions for odexed and deodexed! Massive props to to $omator for this, who obviously knows a lot more about creating CWM zips than I do. Go to his post to download, and thank him while you're at it!
    30/6: New JVQ version, thanks again bigdyl69! Get it here.
    13/6: JVP version now exists, get it here thanks to bigdyl69!
    21/5: Added Froyo JSD and Ginger JVO versions.
    10/5: Added JVH version


    Ok, this does what it says on the tin. It's a mod of the JVX messaging app that adds 3 often requested features:

    • No autoconvert to MMS after 3 messages
    • Sending to unlimited contacts
    • Sent time instead of received time. If you turn off your phone, messages you get whilst it's off will have the right time!

    To install:
    Simply copy the included apk depending on your system version to /system/app/Mms.apk, and make a backup first just in case.;)

    Notes:
    Your ROM MUST be deodexed!
    If it doesn't work, clear the cache, the Dalvik cache, and also clear data for Messaging under Settings->Applications->Manage Applications (it won't delete your messages).
    If the times are off by several hours download SMS Time Fix and set it the the correct number of hours to fix the timestamps.
    The JVB MMS apk is actually from Darky's 10 RC6, but I don't think it's different from the default.


    If I get enough requests for:
    Other versions (e.g. JVK, etc)
    CWM flashable versions

    I'll make them.

    Hope this is useful to people!

    Massive props to ykk_five for his original mod! I couldn't have made this without his help.

    HOWTO

    Do you theme your Mms app? Got a custom ROM going on and want to do this yourself? Well here's how!

    1. Download Apk Manager from here.
    2. Get your Mms.apk from /system/app/Mms.apk
    3. Get your twframework-res.apk from /system/framework
    4. Open up Apk Manager and choose option 22
    5. Select Mms.apk as your project
    6. Select option 10 (decompile with dependencies)
    7. When it asks you for your dependency, drag and drop twframework-res.apk into the window and press enter
    8. When that's done, go into apk_manager/projects/Mms.apk
    9. Under /res/xml open up mms_config.xml
    10. Go to: <int name="recipientLimit">10</int> change this to -1
    11. Go to <int name="smsToMmsTextThreshold">4</int> Change this to 100
    12. Now open up /smali/com/android/mms/transaction/SmsReceiverService.smali and open it in any text editor.
    13. Search for 'time'. There will be one entry at approximately line 523
    14. Replace this with: invoke-virtual {p1}, Landroid/telephony/SmsMessage;->getTimestampMillis()J
    15. There will be another at approximately line 2270.
    16. Replace this with: invoke-virtual {v0}, Landroid/telephony/gsm/CbMessage;->getTimestampMillis()J
    17. Save and close them all and go back to apk manager, option 11 'compile'
    18. When you're done, it'll tell you about a 'keep' folder. Go delete mms_config.xml, and in the keep folder also delete resources.arsc and classes.dex
    19. Copy your new Mms.apk to your phone! Don't forget to back up your old one in case you make a mistake.:)

    If you get errors, check the log for mentions of 9.png errors. If they are there, fix your 9 patch files! Use google for that, I'm not explaining how to do this.;)

    If you can't be bothered to do this or don't know how, send me a PM! I've made more than 8 custom Mms.apks for people so far. :)
    9
    Just in case anyone wants it here is the Mms.apk modded for JVP. This has the message limit, no mms convert and sent time fixes applied. Hope its useful for someone, I'm using it currently and it seems to work great
    4
    In case anyone wants it, here is the modded deodexed Mms.apk for the newest JVQ release
    3
    THERE YOU GO THIS TIME I PACKED THE MODED FILES NOT STOCK ONES =)

    SMS + No contact limit + No MMS convert + Sent time by >> montymintypie <<
    No autoconvert to MMS after 3 messages
    Sending to unlimited contacts (it's actually 100, but should be more than enough)
    Sent time instead of received time. If you turn off your phone, messages you get whilst it's off will have the right time!
    JVQ ODEX --- > download

    JVQ DEODEXED --- > download

    JVQ ODEX RESTORE --- > download

    JVQ DEODEXED RESTORE --- > download
    2
    Hi, I'm attaching my Mms.apk hoping to get some magic worked on it... I'd like all fixes applied please (contact limit/MMS convert/sent time)...

    I'm on the latest CM7 nightly which says it's build number GRJ22 (if one of the apk's previously posted would work, please let me know!)

    Thanks :)

    Ok, yours seems similar to zerkai, which suggests he is on CyanogenMod too... Yours actually has all these fixes applied - go to Mms, then open preferences, you should be able to click a single option to apply the fix.