[Samsung Galaxy Fit GT 5670] zcop:
Customize Touchwiz

First decompile TouchWiz30Launcher.apk

1.Auto Rotation at Home Screen

Open AndroidManifest.xml find nosensor change to user

​

2.More icon in Dock

EXAMPLE 5 icon, you can change to 6,7,8 etc...
​

Open /res/layout-land-ldpi/launcher.xml

Open /res/layout-ldpi/launcher.xml

Find launcher:iconColumnCount="4" change to launcher:iconColumnCount="5"

​

Open smali/com/sec/android/app/twlauncher/AppShortcutZone.smali

In method .method public constructor <init> find const/4 v1, 0x4 change to const/4 v1, 0x5

In method .method public loadApplications()V find const/4 v8, 0x3 change to const/4 v8, 0x4

In method .method public updateApplication find const/4 v6, 0x3 change to const/4 v6, 0x4

Done

​

3. Display App name to Dock

Open smali/com/sec/android/app/twlauncher/AppShortcutZone.smali

In method .method public changeApplicationsIcon()V

Find

.locals 4

.prologue

Change to

.locals 5

.prologue
#0x7f0a003d = <public type="string" name="homescreenedit_home" id="0x7f0a003d" /> change to yours
const v4, 0x7f0a003d

Find

iget-object v2, p0, Lcom/sec/android/app/twlauncher/AppShortcutZone;->mApplicationsDrawableNormal:Landroid/graphics/drawable/Drawable;

invoke-virtual {v1, v2}, Lcom/sec/android/app/twlauncher/MenuItemView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

Under them , add

invoke-virtual {p0}, Lcom/sec/android/app/twlauncher/AppShortcutZone;->getContext()Landroid/content/Context;

move-result-object v2

invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

move-result-object v2
#<public type="string" name="group_applications" id="0x7f0a0012" />
const v3, 0x7f0a0012

invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

move-result-object v2

invoke-virtual {v1, v2}, Lcom/sec/android/app/twlauncher/MenuItemView;->setText(Ljava/lang/CharSequence;)V

Find

iget-object v2, p0, Lcom/sec/android/app/twlauncher/AppShortcutZone;->mApplicationsDrawableMenu:Landroid/graphics/drawable/Drawable;

invoke-virtual {v1, v2}, Lcom/sec/android/app/twlauncher/MenuItemView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

Add under them

invoke-virtual {p0}, Lcom/sec/android/app/twlauncher/AppShortcutZone;->getContext()Landroid/content/Context;

move-result-object v2

invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

move-result-object v2

invoke-virtual {v2, v4}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

move-result-object v2

invoke-virtual {v1, v2}, Lcom/sec/android/app/twlauncher/MenuItemView;->setText(Ljava/lang/CharSequence;)V

Find

iget-object v2, p0, Lcom/sec/android/app/twlauncher/AppShortcutZone;->mApplicationsDrawableEdit:Landroid/graphics/drawable/Drawable;

invoke-virtual {v1, v2}, Lcom/sec/android/app/twlauncher/MenuItemView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

Under, add

invoke-virtual {p0}, Lcom/sec/android/app/twlauncher/AppShortcutZone;->getContext()Landroid/content/Context;

move-result-object v2

invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

move-result-object v2

invoke-virtual {v2, v4}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

move-result-object v2

invoke-virtual {v1, v2}, Lcom/sec/android/app/twlauncher/MenuItemView;->setText(Ljava/lang/CharSequence;)V

In method .method public makeItemView

Find

invoke-direct {v6, v7}, Lcom/sec/android/app/twlauncher/FastBitmapDrawable;-><init>(Landroid/graphics/Bitmap;)V

invoke-virtual {v5, v6}, Lcom/sec/android/app/twlauncher/MenuItemView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

Under them add

iget-object v6, p1, Lcom/sec/android/app/twlauncher/ApplicationInfo;->title:Ljava/lang/CharSequence;

invoke-virtual {v5, v6}, Lcom/sec/android/app/twlauncher/MenuItemView;->setText(Ljava/lang/CharSequence;)V

Now we need rearrange icon, cell width - height

Open /res/values-ldpi/dimens.xml

Change some value

<dimen name="menu_topapp_top_offset">2.0dip</dimen>
<dimen name="menu_top_item_height">70.0dip</dimen>

Open /res/values-land-ldpi/dimens.xml

<dimen name="menu_topapp_top_offset">7.0dip</dimen>
<dimen name="menu_top_item_height">51.0dip</dimen>

Open /res/layout-ldpi/application_boxed_top.xml and /res/layout-land-ldpi/application_boxed_top.xml

Change font size to android:textSize="12.0dip"

​

Continue TouchWiz Mod Guide