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

Root [Guide]How to fix mms in ported roms

Phatninja55

Android Expert
What you need:
1. apktool in the folder you are working in, or your system path.
2.The zip file for the rom you are going to fix
3.The file framework-res.apk from /system/framework
4.build.prop from /system/
5. This file: eri.xml.

If you don't have apktool you can find it here: android-apktool - A tool for reverse engineering Android apk files - Google Project Hosting

1. Start off by making a folder somewhere easy to access with cmd like C:\ and lets name it mms-fix.
2. Place framework-res.apk, build.prop, apktool.jar and apktool.bat in this folder
3. Open command prompt cmd for short and type in cd C:\mms-fix
4. in cmd type apktool d framework-res.apk it should spit out somthing along the lines of this:

I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...

5. Now we need to open the new folder in C:\mms-fix it should be called framework-res
6. navigate to C:\mms-fix\framework-res\res\xml and replace the xml file in that folder.
7. now go back to cmd and type in apktool b framework-res it should spit out some lines like this:

W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...

8. Now you can copy the new framework-res.apk from C:\mms-fix\framework-res\dist into /system/framework
9. now edit build.prop with a text editor like notepad++ and change
these:

ro.cdma.home.operator.alpha=Virgin_Mobile
ro.cdma.home.operator.numeric=311490
gsm.sim.operator.alpha=Virgin_Mobile
gsm.sim.operator.numeric=311490
gsm.operator.alpha=Virgin_Mobile
gsm.operator.numeric=311490

10. put build.prop back into /system/
11. rezip the rom
12. sign it if you like
13. flash it and find out if mms is working.

If you would like me to go into more detail anywhere please let me know and I will edit this guide.
 
This works in ICS. Gingerbread's MMS is in framework.jar.

Permission to post guide below?


-I claim this post?
 
I meant, Gingerbread's MMS has nothing to do with Framework-res.apk

Its in the Framework.jar

I claim second post to make instructions for it. Permission?
 
I meant, Gingerbread's MMS has nothing to do with Framework-res.apk

Its in the Framework.jar

I claim second post to make instructions for it. Permission?


Go a head. But you still need to edit framework-Res.apk to fix digital roaming and sprint/other carriers branding.
 
Just some tiny things:

Like Noob said, the MMS in froyo/GB is in the framework.jar. Specifically in smali/com/android/interal/telephony/cdma/CdmaSMSDispatcher.smali.

You could do that entire process without needing to decompile. You can open the framework-res.apk in an archive manager and go to that same directory.
 
Back
Top Bottom