[MOD] Landscape mode for SMS


cat_baxter

Members
Sep 21, 2012
163
30
Hi,

I've found the solution how to return the landscape mode for SMS. Here is the example how to do it:

http://goo.gl/jUCpY

README.TXT


1. Install framework.
Copy framework-miui-res.apk and framework-res.apk to this dir
run install_framework.bat
remember the path to 1.apk and 6.apk - copy them to this dir

2. Decompile Mms.apk
run decompile.bat

3. Fix Mms\AndroidManifest.xml
Find and delete all
android:screenOrientation="portrait"
strings

4. Compile the new Mms.apk
run compile.bat
copy Mms\assets dir (complete) to Mms_new.apk
copy Mms\classes.dex to Mms_new.apk

5. Sign new Mms_new.apk
run sign.bat

6. Copy the final Mms_signed.apk to your device or new firmware

If you can't do it youself - please ask here and report which MIUI version you have and the phone model.
 
Nice work. But the ZIP is huge. For devs, basically all you have to do is remove all android:screenOrientation="portrait" from the manifest for Mms. I have not tested it yet though, don't know what layout issues there might be.I guess that's why screenshots were asked.
 
Screenshots of what? :)
Screenshots of typing sms in landscape mode and maybe we can get more people to try it out to see if it works fine on more devices. I can give it a shot on my Motorola Razr Maxx. Will post some screenshots soon :)
 
hmmmmm any screenshots?

A8NNuCuCAAAh-0t.png
 
@ingbrzy, I hope that iBot puts this fix in release build, because it's very handy feature that existed always in MIUI and many users regret about it.
 
@ingbrzy, I hope that iBot puts this fix in release build, because it's very handy feature that existed always in MIUI and many users regret about it.
Yeah just waiting for this to be fixed in the rom itself hope so in the next release :D
 
Well went into recovery and flashed the zip file....hope thats the rite method :)

No, its really not working that way... :) unzip and read README.txt... we will see in next release if it will be enabled as default or just stay as MOD....
 
No, its really not working that way... :) unzip and read README.txt... we will see in next release if it will be enabled as default or just stay as MOD....
Ohhhh My bad....cool just read it will try it again and report :D. Thanks a lot :)
 
It's pretty complicated to support such fix as as mod, because I need to post translated Mms.apk for each supported model.

Please iBot, put it in! :)
 
It's pretty complicated to support such fix as as mod, because I need to post translated Mms.apk for each supported model.

Please iBot, put it in! :)

just write clear guide and users can do it...
 
I see, but it's just impossible hard for a normal user - install java, decompile, patch, compile update apk on the phone. For Xioami MiOne you must install RootExplorer, copy to /system/app, change the attributes, etc etc. Horror!

It's just an one extra operation for the build process, and huge amount of work after.
 
if this stays as mod, perhaps i could help you. basically i did the same process to build a mod for each device. i didn't check what should be changed yet. i'll take a look later.

Sent from my GT-I9100 using Tapatalk 2
 
@fusionjack,

Thanks, the only one change is:
==============================
Find and delete all

android:screenOrientation="portrait"

strings in AndroidManifest.xml
==============================
 
Hi,

I've found the solution how to return the landscape mode for SMS. Here is the example how to do it:

http://goo.gl/jUCpY

README.TXT


1. Install framework.
Copy framework-miui-res.apk and framework-res.apk to this dir
run install_framework.bat
remember the path to 1.apk and 6.apk - copy them to this dir

2. Decompile Mms.apk
run decompile.bat

3. Fix Mms\AndroidManifest.xml
Find and delete all
android:screenOrientation="portrait"
strings

4. Compile the new Mms.apk
run compile.bat
copy Mms\assets dir (complete) to Mms_new.apk
copy Mms\classes.dex to Mms_new.apk

5. Sign new Mms_new.apk
run sign.bat

6. Copy the final Mms_signed.apk to your device or new firmware

If you can't do it youself - please ask here and report which MIUI version you have and the phone model.

Thanks a lot it works like a charm, it is a bit Magic because I don't know what I done and how it works but it works this is the most important.

Maybe you have the same kind of toll for ROM, I mean Decompile, Recompile and of course Sign new Rom? It can be great and very helpful.
Thanks in advance.
 
@fusionjack,

Thanks a lot, the one problem that I see - is the multlang pack, we need two sets of apks for such case.