FORUMS

[GUIDE] Modify mms.apk

65 posts
Thanks Meter: 20
 
By deltaquarty, Member on 20th February 2012, 04:11 PM
Post Reply Email Thread
this is a step-by-step guid to modify your mms.apk in order to modify the MMStoSMS limit and max receiver per message, it works with custom roms

1 download Apk Manager from here (thanks to Daneshm90)
Apk Manager 4.9
(windows only)

extract apk manager

copy your mms.apk file from /system/app
and twframework-res.apk from /system/framework to your computer
copy mms.apk into place-apk-here-for-modding folder

start script.bat

select option 22 (Set current project)

select mms.apk from the list that appear

select option 10 (decompile apk with dependencies)

when asks for dependencies drag and drop twframework-res.apk into the window
then select enter, let it work, don't close apk manager at the end of his work!!!

open apk_manager/projects/Mms.apk folder

go in /res/xml and open mms_config.xml, you can use notepad or every text editor you like

go to
Code:
<int name=”recipientLimit”>10</int>
and change it to
Code:
<int name=”recipientLimit”>100</int>
with this option you can max the number of receiver person in a message up to 100

now go to
Code:
<int name=”smsToMmsTextThreshold”>4</int>
and change it to
Code:
<int name=”smsToMmsTextThreshold”>100</int>
this way you can make up to 100 SMS before it automatically converts it into an MMS

save and close

now we will make a modify so the sms we receive doesn't show the time we RECEIVE the message, but the real time the SENDER wrote the message

go to /smali/com/android/mms/transaction/SmsReceiverService.smali
open it with any text editor
search this line
Code:
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
substitute all the line with this
Code:
invoke-virtual {p1}, Landroid/telephony/SmsMessage;->getTimestampMillis()J
now search the line
Code:
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
(it's the same line but it's correct don't worry, there are 2 of them )

substitute all the line with this
Code:
invoke-virtual {v0}, Landroid/telephony/gsm/CbMessage;->getTimestampMillis()J
save and close

now return to apk manager
select option 11 (compile apk)
select yes (y) to both the question
let it finish, now don't close apk manager yet, open apk manager folder, you will find a new folder named keep, open it and go for the file mms_config.xml (/res/xml) delete it, also delete resources.arsc e classes.dex in main keep folder

now return to apk manager and press enter on the script
when the work is done close the program (option 24)
go to place-apk-here-for-modding folder and you'll find 2 files, delete the mms.apk file and rename the Unsignedmms.apk file to "Mms.apk"
(REMEMBER TO MAKE BACKUP OF ORIGINAL Mms.apk file in order to quickly backup in case of error )
copy this file back to /system/app in your phone, overwrite the original file
enjoy
The Following 11 Users Say Thank You to deltaquarty For This Useful Post: [ View ] Gift deltaquarty Ad-Free
26th February 2012, 12:31 PM |#2  
erdemsaid's Avatar
Junior Member
Flag Çanakkale
Thanks Meter: 21
 
Donate to Me
More
thanks dude. is it works all gb roms?
The Following User Says Thank You to erdemsaid For This Useful Post: [ View ] Gift erdemsaid Ad-Free
27th February 2012, 08:15 AM |#3  
deltaquarty's Avatar
OP Member
Flag Mantova
Thanks Meter: 20
 
More
Quote:
Originally Posted by erdemsaid

thanks dude. is it works all gb roms?

hi the first part, concerning the changing of max message size and max receiver works with all phones, personally i tested it with samsung i9001, i9000,i9003 and s5570, the second part, concerning the time the sms was SENT instead of RECEIVED works only with phones that have CB options inside, for example on s5570, the 2° part doesn't work, because the phone doesn't have CB messages options in sms app, understand?
28th February 2012, 12:07 AM |#4  
Junior Member
Flag FML
Thanks Meter: 0
 
More
wow thank you dude, maybe I'll develop a nice ROM....

Send with Tapatalk on my Samsung Galaxy S i9000 @Android 4.0.3 AOKP
28th February 2012, 07:20 AM |#5  
deltaquarty's Avatar
OP Member
Flag Mantova
Thanks Meter: 20
 
More
Quote:
Originally Posted by tweax

wow thank you dude, maybe I'll develop a nice ROM....

Send with Tapatalk on my Samsung Galaxy S i9000 @Android 4.0.3 AOKP

i'm glad you find my guide useful

Sent from my GT-I9001 using xda premium
The Following User Says Thank You to deltaquarty For This Useful Post: [ View ] Gift deltaquarty Ad-Free
28th February 2012, 07:31 AM |#6  
iscio's Avatar
Senior Member
Flag Bergamo
Thanks Meter: 81
 
More
could you update the guide with the possibility to change received time in sent time?
thanks
28th February 2012, 08:04 AM |#7  
musashihatred's Avatar
Senior Member
Flag Somewhere in Neverland
Thanks Meter: 1,149
 
More
MMS.apk
can anyone send me a stock mms.apk plss. accidentally un installed it
28th February 2012, 09:15 AM |#8  
deltaquarty's Avatar
OP Member
Flag Mantova
Thanks Meter: 20
 
More
Quote:
Originally Posted by musashihatred

can anyone send me a stock mms.apk plss. accidentally un installed it

for i9001? which telephone?
The Following User Says Thank You to deltaquarty For This Useful Post: [ View ] Gift deltaquarty Ad-Free
28th February 2012, 09:16 AM |#9  
deltaquarty's Avatar
OP Member
Flag Mantova
Thanks Meter: 20
 
More
Quote:
Originally Posted by iscio

could you update the guide with the possibility to change received time in sent time?
thanks

with this guide the time you see in received message is the tiem the message was sent, not received
The Following 2 Users Say Thank You to deltaquarty For This Useful Post: [ View ] Gift deltaquarty Ad-Free
28th February 2012, 01:30 PM |#10  
Member
Flag mantova
Thanks Meter: 3
 
Donate to Me
More
Good guide ^^
28th February 2012, 11:02 PM |#11  
musashihatred's Avatar
Senior Member
Flag Somewhere in Neverland
Thanks Meter: 1,149
 
More
Quote:
Originally Posted by deltaquarty

for i9001? which telephone?

Any galaxy s variant mms apk. i9001 will be ok
Cool guide mab. Im starting on it. XD

Sent from facebook
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes