[MOD] Landscape mode for SMS

Discussion in 'MIUI Mods' started by cat_baxter, Nov 18, 2012.

  1. cat_baxter

    cat_baxterMembers

    Sep 21, 2012
    163
    18
    28
    Male
    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.
     
  2. avi

    aviMembers

    hmmmmm any screenshots?
     
  3. cat_baxter

    cat_baxterMembers

    Sep 21, 2012
    163
    18
    28
    Male
    Screenshots of what? :)
     
  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.
     
  5. Kamal Hamsa

    Apr 18, 2012
    5
    1
    23
    Male
    Cool...It worked!!! Now I can type SMS in landscape for vivo & vivow!!!!
    Thanks!!!
     
  6. avi

    aviMembers

    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 :)
     
  7. ingbrzy

    ingbrzyXiaomi.eu Multilang leader
    Staff Member

    [​IMG]
     
  8. avi

    aviMembers

    NICEEEEEEEEEEEEEEEEEE
     
  9. avi

    aviMembers

    Tried on Mototola Razr Maxx with MIUI 2.11.16 doesnt work
     
  10. ingbrzy

    ingbrzyXiaomi.eu Multilang leader
    Staff Member

    You just did it wrong... should be tutorial on OP for non advance users....
     
  11. cat_baxter

    cat_baxterMembers

    Sep 21, 2012
    163
    18
    28
    Male
    @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.
     
  12. avi

    aviMembers

    Well went into recovery and flashed the zip file....hope thats the rite method :)
     
  13. avi

    aviMembers

    Yeah just waiting for this to be fixed in the rom itself hope so in the next release :D
     
  14. cat_baxter

    cat_baxterMembers

    Sep 21, 2012
    163
    18
    28
    Male
    @avi,

    It's better to wait and ask iBot one more time to include the fix to the next release :)
     
  15. ingbrzy

    ingbrzyXiaomi.eu Multilang leader
    Staff Member

    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....
     
  16. avi

    aviMembers

    Yup but i have a feeling maybe wont be included just yet and besides i love to fidget with the phone :p :p :p
     
  17. avi

    aviMembers

    Ohhhh My bad....cool just read it will try it again and report :D. Thanks a lot :)
     
  18. cat_baxter

    cat_baxterMembers

    Sep 21, 2012
    163
    18
    28
    Male
    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! :)
     
  19. ingbrzy

    ingbrzyXiaomi.eu Multilang leader
    Staff Member

    just write clear guide and users can do it...
     
  20. cat_baxter

    cat_baxterMembers

    Sep 21, 2012
    163
    18
    28
    Male
    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.
     
  21. fusionjack

    fusionjackMembers

    Apr 18, 2012
    537
    199
    80
    Male
    Germany
    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
     
  22. cat_baxter

    cat_baxterMembers

    Sep 21, 2012
    163
    18
    28
    Male
    @fusionjack,

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

    android:screenOrientation="portrait"

    strings in AndroidManifest.xml
    ==============================
     
  23. Ahaba

    AhabaMembers

    Jan 7, 2012
    50
    2
    30
    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.
     
  24. fusionjack

    fusionjackMembers

    Apr 18, 2012
    537
    199
    80
    Male
    Germany
  25. cat_baxter

    cat_baxterMembers

    Sep 21, 2012
    163
    18
    28
    Male
    @fusionjack,

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

Share Our Site