[MOD] MIUI Launcher for Tablets - Landscape, grid, larger icons **Updated 1.13.1**

haydnlj

Senior Member
Aug 26, 2008
220
64
28
Sydney
Decided to mod up MIUI's standalone launcher for my own use - turned out better than I expected, so decided to share in current state :)


Update to 1.13.1
  • See here for change log from MIUI
  • Version 1.9.1 still available below - Use this version to change homescreen grid size - MIUI removed from later versions (options are 6x6, 7x5, 8x5, 8x6). Install latest over the top will retain your selection. Default grid size on fresh install is 6x5.
  • Restored slightly upscaled icons (9%) - seems to maintain quality with a better size
  • Default of 6x5 added, as folder's presume this layout, and the 8x5 from my 1.12.1.mod seemed cramped - also fixed label placement under icon in folders
  • There has been hundreds of downloads - feel free to hit thanks :rolleyes:


Update to 1.12.1
  • Restored icons to stock size (15% smaller) - should improve visual appearance. Suggest googling "HD miui icon themes" if you want a bigger icon set. Otherwise if too small let me know via post - democracy wins :)
  • Improve power usage in android 4.1+
  • Fix wallpaper setting bug
  • Fix launcher FC on android 4.2
NOTE: I haven't confirmed above, however have noticed that MIUI have now both removed the overflow menu, and the ability to choose your custom grid size via settings. A fresh install of 1.12.1 will assume 8x5 grid, however an upgrade should maintain your current setting. A bit frustrating, so really depends on whether the new features/performance are noticeable YMMV


Notes:
  • Fully landscape enabled (all screens) - dpi of icons changed to suit Xoom
  • Have included several icon layout options in Laucher Settings > Cell Layout - Default is 7x5
  • MIUI Wallpaper selector for static walls doesn't seem to work 100% of the time (LWP fine). Use Zedge or Gallery or similar to apply static wallpapers.
  • "Edit Widgets" method works fine, but deleting a homescreen can take several attempts (use Menu>Preview instead to add delete home pages)
  • "Class" Transistion Effect works the best - others can cause odd screen artifacts
  • Given this is forced to Landscape, don't use the inbuilt MiLocker lockscreen - wont look right!
  • Applying a new theme in vers 1.7.0 can re-enable lockscreen - which can cause a problem if the lockscreen type doesn't allow you to unlock in landscape (found out the hardway!). Will see if I can disable miui lockscreen from starting. If that happens, hopefully you have usb-debugging enabled, and you have root - just;

If "Locked Out"....
Code:
adb shell
ls /data/app/com.miui* (to get package name)
mv /data/app/packname_from_above.apk /data/app/tmp.tmp
toggle power button on xoom, and you should now have a force close and ability to hit home key to go to stock launcher temporarily.

Code:
mv /data/app/tmp.tmp /data/app/packname_from_above.apk

Otherwise seems fully functional and smooth - enjoy!
 
Last edited:

rfsninja

New member
Oct 12, 2012
2
0
21
Hey, thanks so much for this. Exactly what I needed. Now, off to go try it with diff. ROMs. Gotta see which one compliments it the best. Bwahahaha~
 

drkalo

Senior Member
Jul 13, 2009
573
286
93
47
Sofia
Thanks haydnlj for keeping your mod updated! I tried installing 1.11.1 over 1.10.1 but menu icon disappears. Tried clearing mihome cache while on 1.10.1 and reenable the gestures setting then install 1.11.1 but the icon is still disappearing. I have iconia a500 on stock ics 4.0.3 running stock kernel.

Edit: Stupid me....I guess that workaround is intended to get to the menu with a gesture but not with a softbutton :)
 
Last edited:

haydnlj

Senior Member
Aug 26, 2008
220
64
28
Sydney
Thanks haydnlj for keeping your mod updated! I tried installing 1.11.1 over 1.10.1 but menu icon disappears. Tried clearing mihome cache while on 1.10.1 and reenable the gestures setting then install 1.11.1 but the icon is still disappearing. I have iconia a500 on stock ics 4.0.3 running stock kernel.

Edit: Stupid me....I guess that workaround is intended to get to the menu with a gesture but not with a softbutton :)
Yeah not sure why the soft button is gone (might have been an resource update I did, but all seems in order). Will just see when next update comes out I guess.

Will probably post 2 versions next time - one without the icon scaling (as it kinda bleeds the image a little). This would be best if using an HD icon pack to still give a decent size (currently I upscale 15%)..
 
  • Like
Reactions: drkalo

haydnlj

Senior Member
Aug 26, 2008
220
64
28
Sydney
Code:
Could i ask how this was done, would be helpful to me for personal use.
LOL - haven't looked at this thread for some time, and randomly checked "Themes and Apps" today and saw this...:p

Very simple, just used APK-Multi-Tool to decompile and edit..
  • Extract miui home apk from /data/app/ on phone with adb (something like com.miui.mihome2-#.apk) - i.e. install latest version from market to a compatible phone, then pull file to mod for install to Xoom
  • place this apk in APK-Multi\place-apk-here-for-modding folder
  • at windows cmd prompt in APK-Multi Folder type execute script .bat and choose option 9 (assumes you have already run setup in same folder)
  • once complete goto APK-Multi\projects subdir
  • You should see something like com.miui.mihome2-#.apk - enter this folder
  • Open AndroidManifest.xml in text editor and replace all instances of
    Code:
    android:screenOrientation="portrait"
    with
    Code:
    android:screenOrientation="landscape"
  • navigate to \projects\com.miui.mihome2-2.apk\res\values\ folder
  • edit integers.xml and change config_cell_count_x and config_cell_count_y for default rows and columns (i.e. values for a fresh install)
  • edit arrays.xml find and either replace or add to with new entries
    Code:
        <string-array name="cell_layout_size_entries">
            <item>4x4</item>
            <item>4x5</item>
        </string-array>
        <string-array name="cell_layout_size_values">
            <item>4x4</item>
            <item>4x5</item>
        </string-array>
    e.g.
    Code:
        <string-array name="cell_layout_size_entries">
            <item>5x8</item>
            <item>6x6</item>
            <item>8x6</item>
        </string-array>
        <string-array name="cell_layout_size_values">
            <item>5x8</item>
            <item>6x6</item>
            <item>8x6</item>
        </string-array>
  • edit dimens.xml
    main change was the icon scaling (which I was never happy with - i.e. a little blurry)
    Code:
        <dimen name="config_icon_width">60.0dip</dimen>
        <dimen name="config_icon_height">60.0dip</dimen>
    to something like
    Code:
        <dimen name="config_icon_width">76.0dip</dimen>
        <dimen name="config_icon_height">76.0dip</dimen>
    Basically would tweak several values in this file (trial and error) - font size etc. I can't recall exactly, but there was a setting or 2 in dimens.xml that determined the icon label offset, which if not updated would show the icon label overlaying instead of under the icon. The dimens.xml seems to change the most between releases, so you need a little trial and erorr. Decompile one of the attached to this thread to find values I updated - the variable names should be mostly the same, but perhaps in a different order.
  • I then replaced app_launch_pic.png in \projects\com.miui.mihome2-#.apk\res\drawable-hdpi with a image for the Xoom's landscape dimensions - purely aesthetics
  • have Xoom or emulator attached via adb, and go back to script and choose option 15 (or 12 then 13) and manually install with
    Code:
    adb install -r
    option to save your current settings. The good news is the latest MIUI home has a backup to sdcard option, so makes the version changes easier.
  • New APK should be created in place-apk-here-for-modding folder

They were the main changes from memory - but basically just poked around and tweaked things and recompiled/tested to see if it looked better.

Good luck