MIUI V4 & APKTOOL PROBLEM


fergie716

Staff Developer
Aug 8, 2011
171
51
38
#1
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!
 

MarkHUK

Founder of Xiaomi.eu
Staff member
Nov 6, 2010
4,842
2,936
1,000,000
#2
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!
you also need to do:

apktool if framework-miui-res.apk

Without that installed it wont decompile the MIUI Apks.

Thanks,

Mark
 

fergie716

Staff Developer
Aug 8, 2011
171
51
38
#3
you also need to do:

apktool if framework-miui-res.apk

Without that installed it wont decompile the MIUI Apks.

Thanks,

Mark

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
 

MarkHUK

Founder of Xiaomi.eu
Staff member
Nov 6, 2010
4,842
2,936
1,000,000
#4
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
 
Likes: fergie716

fergie716

Staff Developer
Aug 8, 2011
171
51
38
#5
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

I am officially the idiot of the day

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

Thank you!
 

fergie716

Staff Developer
Aug 8, 2011
171
51
38
#9
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!
 

MarkHUK

Founder of Xiaomi.eu
Staff member
Nov 6, 2010
4,842
2,936
1,000,000
#10
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!
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?