MIUI V4 & APKTOOL PROBLEM

Discussion in 'Question & Answers' started by fergie716, Feb 19, 2012.

  1. fergie716

    fergie716Staff Developer

    Aug 8, 2011
    171
    51
    38
    Male
    Hey guys, I've been searching the forums and couldn't fina a definitive answer

    Here's the issue: I recently ported latest MIUI ICS to Nexus S 4G and am trying to mod Mms.apk to get working MMS

    I install framework-res.apk from MIUI ICS, go decompile Mms.apk but get met with a slew of errors

    Here is my log

    If anyone can shed some light on this I would be very grateful

    Thanks to everyone here!
     
  2. MarkHUK

    MarkHUKFounder & Sys Op
    Staff Member

    you also need to do:

    apktool if framework-miui-res.apk

    Without that installed it wont decompile the MIUI Apks.

    Thanks,

    Mark
     
  3. fergie716

    fergie716Staff Developer

    Aug 8, 2011
    171
    51
    38
    Male

    Thank you very much for helping Mark, I appreciate any help I can get lol

    I tried doing that however I don't think apktool is installing both resources, just looks like it just overrides the initial framework

    Here is my latest log trying the recommendation

    Again, thank you so much
     
  4. MarkHUK

    MarkHUKFounder & Sys Op
    Staff Member

    Because you are doing it wrong still :)

    1. apktool if framework-res.apk
    2. apktool if framework-miui-res.apk
    3. apktool d Mms.apk
    4. cd Mms/res
    5. edit away :)

    You had the framework file name wrong on step 2. :) try again and it will solve it.

    Thanks,

    Mark
     
    fergie716 likes this.
  5. fergie716

    fergie716Staff Developer

    Aug 8, 2011
    171
    51
    38
    Male

    I am officially the idiot of the day

    Thank you Mark! Gunna see if I can get Mms fixed

    Thank you!
     
  6. MarkHUK

    MarkHUKFounder & Sys Op
    Staff Member

    Fix MMS? what's wrong with it?
     
  7. fergie716

    fergie716Staff Developer

    Aug 8, 2011
    171
    51
    38
    Male
    I have a NS4G, I ported the GSM Nexus S build to my device. everything works fine except the MMS. I think its the mms_config.xml in /res/xml in Mms.apk
     
  8. MarkHUK

    MarkHUKFounder & Sys Op
    Staff Member

    Oh I see, are you putting the release out here?
     
  9. fergie716

    fergie716Staff Developer

    Aug 8, 2011
    171
    51
    38
    Male
    I can for sure!

    The only problem Im having is that I cant put my fixes into the ROM, so the user has to flash rom, reboot, then there will be a lot of phone force closes, then you have to reboot to recovery, flash fixes then everything is alright

    i mod the framework.jar (to fix cdma telephon), framework-res.apk (apn/eri for cdma) and Mms.apk for mms

    I was able to fix Mms so that was great!

    do you know how i could put these fixes into the ROM so I dont have to have such weird flashing instructions lol

    i have a Windows 7 laptop in case that matters. I assume its because of the UID? im probably wrong lol

    thanks again Mark!
     
  10. MarkHUK

    MarkHUKFounder & Sys Op
    Staff Member

    drop box the modded files for me and their destination locations, i'll make an overlay for you to follow :) we can also look at hosting the NS 4G ROM as well for you if you wanted?
     

Share Our Site