• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

how to modify stock Mms.apk to change user-agent

I solved this issue by myself as no one from 3 forums bothered to reply to my request for help.
I can now receive full size MMS images on o2 (and probably any other network in the world) on my Nexus One.

You obviously have to be rooted to modify the stock Mms.apk but it seems to work flawlessly.
I've provided a picture to prove it.
If anyone wants the Mms.apk I'll be happy to provide it.

 
  • Like
Reactions: oniongirl
Thanks for the info. I'm not rooted yet, but having my MMS work properly on o2 would be a bonus. I saw your post and declined to reply as I had absolutely no suggestions as to why it wouldn't work. Good job though!

@VMX: users on o2 have been experiencing problems with images sent to their phone being abnormally resized to teeny-tiny.
 
Upvote 0
You do know that if you tap on the picture it will open fullsized? Making this change seems pointless.

I guess you didn't understand the reasoning behind this.
As oniongirl pointed out, o2 do not support the Nexus One and as such resize MMS images to the smallets possible size which makes MMS on the N1 totally pointless on o2.

This fix allows o2 to recognize the Nexus One as an iPhone and thus allows for full size images to be received.

@oniongirl: This is one of the only things that has constantly bugged me since my purchase and I'm really happy that it works. I highly recommend you root your device and try this out if it is something you too are looking for.
 
Upvote 0
kaotix, i was watching the google for a solution to edit the apk files, i want to edit a XML file but appears to me coded. Do you know the reason? I lost already many hours looking for this. I'm new at programing android need a bit light just to edit XML files. I want also to edit the MMS.Apk but for another reason. Do you think you can assist? :) thanks
 
Upvote 0
kaotix, i was watching the google for a solution to edit the apk files, i want to edit a XML file but appears to me coded. Do you know the reason? I lost already many hours looking for this. I'm new at programing android need a bit light just to edit XML files. I want also to edit the MMS.Apk but for another reason. Do you think you can assist? :) thanks

What APK are you trying to edit? There is various ways to edit an APK and extract the contents out. I'm not at home right now so I don't know what files I used. Once I'm home I'll find out which tools I used to extract then re-compile the APK.

Watch this space.
To everyone looking for the apk of the MMS app, I have abandoned the version I modified as the new MMS apk inside CyanogenMOD comes with the user-agent as an option to change directly from the settings. Much like the one posted on the XDA forums.
 
Upvote 0
I too have been all over the internet trying to find help.
I have a Samsung Captivate on Tmobile.
My incoming MMS get resize to about 5kb because it's not a Tmobile recognized phone. Some peoples have say to change the user agent to that
of the Nokia N95.
I have been able to extract the mms_config.xml
using a hex editor I can see the user agent. Not sure which section need changing.

If anyone can change it for me or even show me which section I need to change I can try it myself (never done hex before).

mms_hex.jpg


Also I've found two user agent for the Nokia N95, not sure which one is right.
Mozilla/5.0 (SymbianOS/9.2; U; Series60/3.1 NokiaN95/11.0.026; Profile MIDP-2.0 Configuration/CLDC-1.1) AppleWebKit/413 (KHTML, like Gecko) Safari/413

or

NokiaN95/11.0.026; Series60/3.1 Profile/MIDP-2.0 Configuration/CLDC-1.1

Any help will be much appreciated.

I'm very new to Android and don't mind learining and doing things jsut need help to go in the right directions.:)

Also attached is my mms.apk if anyone is kind enough to do it for me,
willing to donate some beer money.
 

Attachments

  • Mms.apk
    723.3 KB · Views: 283
Upvote 0
Hello Guys - I am a newbie here on droid world. I amon Japanese Carrier Softbank iphone4 sim. I could load the Ginger Streak 1.7 on an O2 handset. all works perfectly fine - except the MMS. I cannot send nor recieve MMS at the moment. Any way to edit the mms xml? need some poininting for the same.
The only avaliable mms.apk file is from the Froyo 2.2 rom. I replaced it but seems like dosent work.
Also - I have put the correct apn settings - and it works perfectly.

problem still remains for the MMS module.

Pls help.com

cheers
ROYJAPAN
 
Upvote 0
I solved this issue by myself as no one from 3 forums bothered to reply to my request for help.
I can now receive full size MMS images on o2 (and probably any other network in the world) on my Nexus One.

You obviously have to be rooted to modify the stock Mms.apk but it seems to work flawlessly.
I've provided a picture to prove it.
If anyone wants the Mms.apk I'll be happy to provide it.

mms is not working with mtn network
any one can help me out
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones