[MOD][HOWTO] TweakWiz! - A "Tweaked" TouchWiz Launcher [UPDATED 8/30/12]

Search This thread

shadowcman

Member
Sep 18, 2011
7
0
Is it possible to move the applications icon in the dock to the middle instead of all the way to the right, similar to stock ICS/Jelly Bean?
 

flaystus

Senior Member
Mar 20, 2011
191
14
Don't suppose there is a way to move the app drawer button to the middle is there? That always bothered me about touchwiz.
 

magn2o

Senior Member
Nov 30, 2011
600
256
Sorry for the delay in releasing 1.3, but I've made some headway on something I've been trying to get working for a while now..

RS8AM.png


Can you spot what it is? :)

Please bear with me, it'll be worth it. I promise. :good:
 

jordant2

Senior Member
Jun 5, 2007
955
175
Newbury Park
Sorry for the delay in releasing 1.3, but I've made some headway on something I've been trying to get working for a while now..

RS8AM.png


Can you spot what it is? :)

Please bear with me, it'll be worth it. I promise. :good:

No way! This would be great. Never seen this mod before. You have to release that, forget the landscape.

Sent from my Galaxy Nexus using xda app-developers app
 

magn2o

Senior Member
Nov 30, 2011
600
256
Updated!
  • 1.3
    • "Fixed" docked Messaging icon text re-appearing after a notification in portrait mode (still exists in Landscape)
    • Rotation support, and it respects your global rotation setting.
    • App drawer centered!
    • Re-adjusted margins a bit.
    • 4x6 App Drawer in portrait and 7x3 in landscape.
    • 80% app drawer translucency removed. (I'm not happy with how it appears on the screen, I'm working out a better method).
 

mrcpu

Senior Member
Dec 26, 2008
228
30
Updated!
  • 1.3
    • "Fixed" docked Messaging icon text re-appearing after a notification in portrait mode (still exists in Landscape)
    • Rotation support, and it respects your global rotation setting.
    • App drawer centered!
    • Re-adjusted margins a bit.
    • 4x6 App Drawer in portrait and 7x3 in landscape.
    • 80% app drawer translucency removed. (I'm not happy with how it appears on the screen, I'm working out a better method).

It loaded, but Ii lost my app drawer. cleared data, but Ii have phone, contacts, messaging, web browser, and then open space. Any easy way to get it back?

Scratch that. App drawer was under messaging. Moved the messaging icon, and it's all good.
 

magn2o

Senior Member
Nov 30, 2011
600
256
It loaded, but Ii lost my app drawer. cleared data, but Ii have phone, contacts, messaging, web browser, and then open space. Any easy way to get it back?

Scratch that. App drawer was under messaging. Moved the messaging icon, and it's all good.

Yea, that 5th spot is "reserved" usually -- so there's some system checks in place that I haven't found yet. So, there may be a few minor quirks with initial placement but nothing that affects function.

I also just noticed that sometimes after a reboot whatever is in the 5th icon spot disappears and has to be re-added (this is apparently part of the system initialization). I'll find it, eventually. :)

Sent from my Samsung Galaxy S III
 

jordant2

Senior Member
Jun 5, 2007
955
175
Newbury Park
What do I have to edit to turn off landscape? I love everything now but I don't like homescreen rotation on my launchers. But I still want my apps to rotate.
 
Last edited:

lgkahn

Senior Member
Mar 26, 2010
2,324
219
londonderry
Thanks .. wonder if we can have options as I liked the looping scrolling. Also on the landscape screens Widgets on the bottom are getting cut off.

Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
 

magn2o

Senior Member
Nov 30, 2011
600
256
Thanks .. wonder if we can have options as I liked the looping scrolling. Also on the landscape screens Widgets on the bottom are getting cut off.

Sent from my SAMSUNG-SGH-I747 using Tapatalk 2

I'd like to have toggles for certain things, but that would require modifications to other APKs which are usually already modified in custom ROMs -- so that would present a conflict. :(

Also, keep in mind that re-enabling looping will make scrolling wallpapers a bit awkward with the jarring "reset" effect.

Could you provide a screenshot of the widgets being cropped, please?

Sent from my Samsung Galaxy S III
 

jordant2

Senior Member
Jun 5, 2007
955
175
Newbury Park
I'd like to have toggles for certain things, but that would require modifications to other APKs which are usually already modified in custom ROMs -- so that would present a conflict. :(

Also, keep in mind that re-enabling looping will make scrolling wallpapers a bit awkward with the jarring "reset" effect.

Could you provide a screenshot of the widgets being cropped, please?

Sent from my Samsung Galaxy S III

Here is a screenshot of the splanner widget. Doesn't play well with landscape. That's why I'd just rather not have landscape at all.


Sent from my Galaxy Nexus using xda app-developers app
 

Attachments

  • uploadfromtaptalk1346212200807.jpg
    uploadfromtaptalk1346212200807.jpg
    16.8 KB · Views: 417

lgkahn

Senior Member
Mar 26, 2010
2,324
219
londonderry
Also having a problem with battery drain. Seclauncher used 4 minutes of CPU in last day and used 2 minutes in last two hours after installing.

Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
 

magn2o

Senior Member
Nov 30, 2011
600
256
What do I have to edit to turn off landscape? I love everything now but I don't like homescreen rotation on my launchers. But I still want my apps to rotate.

NO LANDSCAPE version uploaded to OP. :)

Here is a screenshot of the splanner widget. Doesn't play well with landscape. That's why I'd just rather not have landscape at all.

Unfortunately, some widgets don't play well with resized cells which is what was required when trying to fit 5 rows in landscape. Most work fine, but some developers are lazy. :)

Also having a problem with battery drain. Seclauncher used 4 minutes of CPU in last day and used 2 minutes in last two hours after installing.

Yea.. not sure how you're concluding that, but I've been running this for a lot longer than it's been released (with even more stuff done to it) and there's 0 effect on battery life.
 
  • Like
Reactions: jordant2

Top Liked Posts

  • There are no posts matching your filters.
  • 77
    TweakWiz!
    A "Tweaked" TouchWiz Launcher​

    What is it?
    TweakWiz is my attempt at bringing some of custom launcher aesthetics to the default TouchWiz launcher. Sure, I could use a custom launcher -- and I have. I've tried dozens, but none of them can offer the same fluidity and speed that TouchWiz does. As I dig deeper within the TouchWiz code, more features will be added/unlocked! :)

    Features
    • (NEW) Rotation support! (Adheres to system rotation setting)
    • (NEW) App drawer icon centered!
    • Labels removed from docked icons.
    • Drop shadow removed from dock icons.
    • Margins optimized to maximize space (where possible)
    • 4x5 homescreen layout
    • Page indicators removed, space reclaimed.
    • Scrolling wallpapers.
    • Page looping disabled (scrolling wallpapers looked like crap with this enabled).

    Installation
    1. Download/copy appropriate version to internal storage.
    2. Boot into recovery.
    3. Make a backup!
    4. Flash/Reboot

    ROM Developers/Cooks
    I have no problem if you wish to include this in your custom ROMs, I only ask that you provide a link back to this thread so users can keep up on any updates. For those looking to perform manual edits, see here.

    Changelog
    • 1.0
      • Initial release
    • 1.1
      • Reduced app drawer margin slightly due to text cropping.
      • Added 5th row to home.
    • 1.2
      • Adjusted launcher to eliminate overlapping of launcher icon "hot areas" and 5th row widgets. [sinichi21]
      • Adjusted launcher width to reduce "squished" appearance [eortizr]
        Minimally Increased bottom padding on launcher to match positioning of icons (if any) on lockscreen
    • 1.3
      • "Fixed" docked Messaging icon text re-appearing after a notification in portrait mode (still exists in Landscape)
      • Rotation support, and it respects your global rotation setting.
      • App drawer centered!
      • Re-adjusted margins a bit.
      • 4x6 App Drawer in portrait and 7x3 in landscape.
      • 80% app drawer translucency removed. (I'm not happy with how it appears on the screen, I'm working out a better method).
    • 1.3.1
      • Fixed initial center app icon bug where app icon could sometimes be covered by another app icon when running TweakWiz for the first time.
      • Added optional NO_LANDSCAPE version (no rotation)
      • Added option NO_SCROLL version (no scrolling wallpaper, re-enabled page looping)

    Known Bugs

    • Icon text re-appears below docked "Messaging" app after receiving notification in landscape only!


    Custom
    Like AOSP/ICS? Check out mrvirginia's custom version of TweakWiz! [link]


    Thank you! A moment of your time, please..
    As with all of my contributions (here and elsewhere), I do this for fun and expect nothing in return. However, I have received a couple donations in support of my work recently, and while much appreciated, they are unnecessary. In lieu of donations to myself, should you feel inclined, I would much prefer any monies be donated to the CNCF Hope (The Children's Neuroblastoma Cancer Foundation) instead. This is a cause very close to my heart and this organization would benefit much more from your donation than I ever would.

    Again, no obligation or expectations -- a simple "Thanks!" would more than suffice. :)

    Legend
    NO_LANDSCAPE: Launcher rotation disabled, portrait only.
    NO_SCROLL: No scolling wallpaper, page looping/infinite scroll is enabled.
    16
    HOWTO: Tweakwiz Manual Edits

    So more than a few people have been asking me how to do some of these modifications themselves, so I put together a quick list of the mods requiring smali edits. They are presented in GNU diff form and should be pretty self explanatory to anyone capable of modifying smali code.

    Since these are original modifications (and they may seem simple), many hours went into experimenting and tweaking in order to find the right changes in order to achieve the desired result. Should you use any of these, I humbly request that you provide a link back to the OP as the originating source. Or, if you feel so inclined, perhaps a donation to CNCF Hope (The Children's Neuroblastoma Cancer Foundation)? ;)

    So, without further ado:

    1. Center "All Apps" Icon

      • SecLauncher2.apk://smali.com/android/launcher2/Hotseat.smali
        Code:
        @@ -24,7 +24,7 @@
         # static fields
         .field private static final TAG:Ljava/lang/String; = "Hotseat"
         
        -.field private static final sAllAppsButtonRank:I = 0x4
        +.field private static final sAllAppsButtonRank:I = 0x2
         
         
         # instance fields
        @@ -306,7 +306,7 @@
         
             .prologue
             .line 116
        -    const/4 v0, 0x4
        +    const/4 v0, 0x2
         
             if-ne p0, v0, :cond_0
         
        @@ -1915,7 +1915,7 @@
             .prologue
             const v12, 0x7f0e002a
         
        -    const/4 v11, 0x4
        +    const/4 v11, 0x2
         
             const/4 v3, 0x0
    2. Enable launcher rotation (ie. landscape)

      • SecLauncher2.apk://smali.com/android/launcher2/Launcher.smali
        Code:
        @@ -7722,21 +7722,11 @@
         
             .line 338
             :cond_4
        -    invoke-virtual {p0}, Lcom/android/launcher2/Launcher;->getResources()Landroid/content/res/Resources;
        -
        -    move-result-object v8
        -
        -    invoke-virtual {v8}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
        -
        -    move-result-object v8
        -
        -    iget v8, v8, Landroid/content/res/Configuration;->smallestScreenWidthDp:I
        -
        -    const/16 v9, 0x258
        +    :cond_8
        +    const/4 v8, -0x1
         
        -    if-ge v8, v9, :cond_8
        +    invoke-virtual {p0, v8}, Lcom/android/launcher2/Launcher;->setRequestedOrientation(I)V
         
        -    .line 341
             :goto_3
             return-void
         
        @@ -7829,12 +7819,6 @@
             .line 340
             .restart local v2       #filter:Landroid/content/IntentFilter;
             .restart local v3       #intent:Landroid/content/Intent;
        -    :cond_8
        -    const/4 v8, -0x1
        -
        -    invoke-virtual {p0, v8}, Lcom/android/launcher2/Launcher;->setRequestedOrientation(I)V
        -
        -    goto :goto_3
         .end method
         
         .method public onCreateOptionsMenu(Landroid/view/Menu;)Z
    3. Disable page looping

      • SecLauncher2.apk://smali.com/android/launcher2/PagedView.smali
        Code:
        @@ -5240,7 +5240,7 @@
             .locals 2
         
             .prologue
        -    const/4 v0, 0x1
        +    const/4 v0, 0x0
         
             .line 531
             invoke-direct {p0}, Lcom/android/launcher2/PagedView;->isLoopingEnabledInCSC()Z
    4. Remove icon shadows

      • SecLauncher2.apk://smali.com/android/launcher2/AppIconView.smali
        Code:
        @@ -1983,7 +1983,7 @@
             .locals 2
         
             .prologue
        -    const/4 v0, 0x1
        +    const/4 v0, 0x0
         
             .line 181
             iget v1, p0, Lcom/android/launcher2/AppIconView;->mIconDestination:I
    3
    Trying to get this working on the VZW JB leaks. I assume that the TW Launcher in the OP is for ICS only?

    I decompiled the version on my JB leak and went to make the smali edits but they are very different than what's listed in the manual instructions post.

    Anyone have a way of enabling auto-rotation on the JB-based TW Launcher?

    Thanks!

    Decompile SecLauncher2.apk and go to res/values/integers.xml

    Find:
    Code:
    <integer name="config_screenOrientation">[B][COLOR="Red"]5[/COLOR][/B]</integer>
    Change to:
    Code:
    <integer name="config_screenOrientation">[B][COLOR="Red"]3[/COLOR][/B]</integer>

    Compile SecLauncher2.apk
    3
    Updated!

    • 1.2
      • Adjusted launcher to eliminate overlapping of launcher icon "hot areas" and 5th row widgets. [sinichi21]
      • Adjusted launcher width to reduce "squished" appearance [eortizr]
        Minimally Increased bottom padding on launcher to match positioning of icons (if any) on lockscreen
    2
    I flashed on my new s3 rooted but stock everything and can see no changes would love to have touch Wiz with app drawer in center. Any suggestions?


    Sent from my SAMSUNG-SGH-I747 using xda app-developers app

    I flashed this as well on my stock rooted at&t LH9 fw s3. I got the scrolling wallpaper, but the app drawer button did not move. Is there a difference on how it works on the LG1 and LH9 fw?

    Sent from my SAMSUNG-SGH-I747 using Tapatalk 2

    I'm betting you're both using an ODEXED ROM. That being the case, you'll have to manually delete SecLauncher2.odex from /system/app.