[MOD] Landscape mode for SMS


Sep 21, 2012
163
18
30
#1
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.
 
Jul 24, 2012
163
32
50
#4
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.
 

avi

Members
Nov 18, 2012
10
0
21
#6
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 :)
 

avi

Members
Nov 18, 2012
10
0
21
#13
@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
 

ingbrzy

Xiaomi.eu Multilang leader
Staff member
Feb 11, 2012
8,898
21,131
322
#15
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....
 

avi

Members
Nov 18, 2012
10
0
21
#17
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 :)
 
Sep 21, 2012
163
18
30
#20
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.
 
Apr 18, 2012
537
199
80
#21
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
 
Sep 21, 2012
163
18
30
#22
@fusionjack,

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

android:screenOrientation="portrait"

strings in AndroidManifest.xml
==============================
 
Jan 7, 2012
65
6
30
#23
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.