Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,728,773 Members 53,129 Now Online
XDA Developers Android and Mobile Development Forum

[FIX] Ultra & Super Smooth Sense 4.0 Launcher (Rosie) + AutoRotate + Supercharged

Tip us?
 
hamdir
Old
(Last edited by hamdir; 14th August 2012 at 09:00 AM.)
#1  
hamdir's Avatar
Recognized Contributor - OP
Thanks Meter 13029
Posts: 20,728
Join Date: Aug 2008
Location: Beirut
Default [FIX] Ultra & Super Smooth Sense 4.0 Launcher (Rosie) + AutoRotate + Supercharged

Sense 4.1 launcher on base 2.17.401.2 renders this mod obsolete, the launcher is 60fps smooth and locked, with full 3d widget and LWP, an amazing achievement HTC, keep it up!

This mod is only for Sense 4.0 bases but you can still use this thread to supercharge your ROM

This mod is reverse .smali rewrite that's actually changing with each Sense release from HTC, requires lots of testing and many times major recoding, code samples can be found in this post in other words its not a simple variable switch

Ultra Smooth Launcher locks the frame rate during page scroll in Sense launcher (Rosie.apk)

Essentially it's an optimization which forces Rosie to flatten the layers depth effect in Sense widgets, this effect is resource heavy and the reason for frame drops or stutter, the stock kernel rarely ramps the CPU clock beyond 1GHz or 2 cores in Sense launcher, which is good for both the battery and temps but causes random lag when dealing with this effect.

It's available in two flavors: screenshots

Super Smooth Rosie
This will keep the layered widgets in the intial screen you begin scrolling from and freezes/flattens all the other pages until you stop scrolling.
It will satisfy those who don't want to completely lose the effect. There might still be a very slight frame rate drop during the initial 3D flip.
This mod is applied to both FxWorkspace.smali and FxWorkspaceClient.smali

Ultra Smooth Rosie
This mod goes even further, it completely disables the layers effect by flattening and freezing all homescreens during scroll. Locked liquid smooth 60fps!
Any lag or stutter you experience at this point is not caused by Sense launcher.
This mod is applied to both FxWorkspace.smali and FxWorkspaceClient.smali

Sense 4.0 - HTC One X (international) - Downloads

- Smooth Rosie mods for test Base 2.05.401.2

- Smooth Rosie mods for test Base 2.05.401.2 + AutoRotate

- Smooth Rosie mods for test Base 1.29.401.11

- Smooth Rosie mods for test Base 1.29.401.11 + AutoRotate

This mod will simply replace your Rosie.apk and remove Rosie.odex if it's there, back up just in case!

It works on both custom and stock rooted ROMs (the zip file requires BusyBox)
No need for wipe and you can flash them over each other using recovery, the stock file is provided in case you want to go back
Links to other Sense 4.0 devices and older bases in the second post

Remaining random stutter & lag
Any stutter you experience after applying ultra smooth is no longer self caused by the Sense launcher itself.
You need to remember that switching ROMs every two days, means nothing will ever be smooth, simply because ROMs needs a while to settle everything and cache.
Equally Android's multitasking priority groups are likely to blame, you can try the following to apply Supercharger's OOM priority fixes and reduce random stutter.
There might still be a downloaded app or widget running amok in the background, running task manager will help you identify problematic apps.

Supercharger
Supercharger's patched services.jar for One X test base 2.15.401.5
Supercharger's patched services.jar for One X test base 2.05.401.2
Supercharger's patched services.jar for One X base 1.29.401.11 + tutorial

Increase Interface Response
If this is not included in your ROM by default, add the following to build.prop, this will be added if you choose Miscellaneous & 3G tweaks in supercharger
windowsmgr.max_events_.per_sec=200

UI Frame Rate Cap
This line is not needed since ICS is 60 by default, but if you add it to build.prop you will limit the UI FPS to your liking for example if you like 30fps, make sure to include the spaces:
persist.sys.NV_FPSLIMIT = 60

Warnings
This will only work on ROMs based on the ruu file number included in the zip filename, therefore you will lose any mod applied to rosie, such as transparent app drawer or themes, you can ask forum members to provide an updated version of these mods or you can search in this thread many members are posting their version of this mod, also note if you ever uninstalled and restored the sense launcher through Titanium backup this zip file won't work, since TB restores the launcher to system/app/com.htc.launcher.apk, so you will have to unzip, rename and manually push the file.

Poll [VOTE] Do you want Official Sense Launcher locked @ 60FPS?
Please contribute to this poll! in the hope that HTC will remove this effect in future version of Sense or at the least provide an options to disable it and so provide an out of box locked smooth launcher experience.
A locked smooth launcher concludes the initial perception of the device performance.
[UPDATE] Success! stock launcher is now locked 60fps smooth on update 2.17.401.2

Requests
Post your requests for specific ROMs and other Sense 4.0 devices and if myself or some other fellow XDAer find the time, we will apply it, you are required to post Rosie.apk along with the device name and firmware number.

Developers
You are welcome to include this mod, just please give credits

Donations
This mod in all its version took so much time from umy life, backtracking through the smali Rosie code, endless trying and testing, there was no global variable for this setting so i kept trying until i found out how to control the scrolling behavior with minimal code manipulation, so if this mod totally rocked your world or made your own ROM better, please consider donating, it will help encourage my future work and help my wife in forgiving me

The Following 104 Users Say Thank You to hamdir For This Useful Post: [ Click to Expand ]
 
hamdir
Old
(Last edited by hamdir; 4th July 2012 at 11:01 AM.)
#2  
hamdir's Avatar
Recognized Contributor - OP
Thanks Meter 13029
Posts: 20,728
Join Date: Aug 2008
Location: Beirut
Older versions and variations are posted here:

Sense 4.0 - HTC One X | international
- Downloads for test Base 2.05.401.2 + AutoRotate
- Downloads for test Base 2.05.401.2
- Downloads for official Base 1.29.401.11 + AutoRotate
- Downloads for official Base 1.29.401.11
- Downloads for official Base 1.29.401.7

Sense 4.0 - HTC One X | AT&T, Rogers (thanks to sk806)
- [MOD][PORT] (5/22/12) SMOOTH & ULTRASMOOTH ROSIE |1.82|Windows & Mac Installers

Sense 4.0 - HTC One S (thanks to he_stheone64)
- [MOD] Supersmooth Rosie & 6x5 App Drawer - lagfree and smoother experience
Quote:
Mini Guide - How to apply the fix to Sense 4.0 Rosie.apk

The modified code
A lot of lines were added so to find out what was changed:
- Download the full version of notepad++
- Download the Modded and Stock, FxWorkspace.smali & FxWorspaceClient.smali files
- Use the Plugins>Compare in notepad++ to compare each file with its stock alternative, it will highlight the added code for you
- The only difference between Ultra and Super is FxWorkspaceClient.smali file, where there are two conditions :cond_9 switched to :cond_3a

Extracting & repacking classes
- Download Backsmali pack and extract to a folder of your choice
- Copy your stock Rosie.apk to the same folder
- use 1-UnpackClassoutFromRosie.apk.bat file is provided to extract classout folder from classes.dex inside Rosie.apk
- Mod the .smali files using notepad++
- Once you are done modding use 2-RepakClassout.bat to repack the classes.dex file
- rename Rosie.apk to Rosie.zip and replace the classes.dex file using winrar etc
- rename back to Rosie.apk
- Done

AutoRotate patch
- com/htc/launcher/settings/SettingsUtil.smali, find the method "isSupportOrientationChange" and change the last "const/4 v0, 0x0" in the method to "const/4 v0, 0x1"
Sense 3.x - Previous Devices
[FIX][GUIDE] Ultra & Super, Liquid Smooth Rosie for Sense 3.0>3.6 ROMs v1.1
The Following 12 Users Say Thank You to hamdir For This Useful Post: [ Click to Expand ]
 
hamdir
Old
(Last edited by hamdir; 27th May 2012 at 11:31 AM.)
#3  
hamdir's Avatar
Recognized Contributor - OP
Thanks Meter 13029
Posts: 20,728
Join Date: Aug 2008
Location: Beirut
Smooth Sense 4.0 Launcher mods for HTC One X (international) - base 1.29.401.7 | HD Resolution | Deodexed

The zip files will erase both Odexed Rosie.apk/.odex files and replace them with a single Deodexed Rosie.apk file
The Following 13 Users Say Thank You to hamdir For This Useful Post: [ Click to Expand ]
 
emmaair
Old
#4  
emmaair's Avatar
Senior Member
Thanks Meter 15
Posts: 150
Join Date: Apr 2011
Location: Nuremberg
U are the best!
 
DanteGR
Old
#5  
DanteGR's Avatar
Senior Member
Thanks Meter 1007
Posts: 3,022
Join Date: Dec 2010
Location: Thessaloniki
Yayyyyyyyyy!!!!!
Thanks Hamdir brother
So I just woke up to see the freakin' ultra smooth rosie nailed on the head by Hamdir
So all glitches are gone as far as u have tested??
Device: HTC One M8 Amber Gold
ROM: Renovate Nightlies
Kernel: Stock
CPU Controller: ROM Toolbox Pro / Trickster Mod


Be a nice fella and THANK those who have helped you!
 
hamdir
Old
#6  
hamdir's Avatar
Recognized Contributor - OP
Thanks Meter 13029
Posts: 20,728
Join Date: Aug 2008
Location: Beirut
Quote:
Originally Posted by DanteGR View Post
Yayyyyyyyyy!!!!!
Thanks Hamdir brother
So I just woke up to see the freakin' ultra smooth rosie nailed on the head by Hamdir
So all glitches are gone as far as u have tested??
deal breaking bugs are fixed, re-written completely with clean code

but didn't test for a long time, so report what you find

the stock zip file is provided to restore as usual
The Following 3 Users Say Thank You to hamdir For This Useful Post: [ Click to Expand ]
 
DanteGR
Old
#7  
DanteGR's Avatar
Senior Member
Thanks Meter 1007
Posts: 3,022
Join Date: Dec 2010
Location: Thessaloniki
Quote:
Originally Posted by hamdir View Post
deal breaking bugs are fixed, re-written completely with clean code

but didn't test for a long time, so report what you find

the stock zip file is provided to restore as usual
Thank you sir
Device: HTC One M8 Amber Gold
ROM: Renovate Nightlies
Kernel: Stock
CPU Controller: ROM Toolbox Pro / Trickster Mod


Be a nice fella and THANK those who have helped you!
 
inzaghi75
Old
#8  
inzaghi75's Avatar
Senior Member
Thanks Meter 1675
Posts: 2,722
Join Date: Oct 2009
Can we use it with other roms like Bindroid?

Gesendet von meinem HTC One X mit Tapatalk 2
 
hamdir
Old
(Last edited by hamdir; 16th May 2012 at 01:23 AM.)
#9  
hamdir's Avatar
Recognized Contributor - OP
Thanks Meter 13029
Posts: 20,728
Join Date: Aug 2008
Location: Beirut
Quote:
Originally Posted by inzaghi75 View Post
Can we use it with other roms like Bindroid?

Gesendet von meinem HTC One X mit Tapatalk 2
yes as long as its the same base software number, keep in mind if Bindroid includes modes to Rosie or tweaks menu they will go away, better ask you Chef

awaiting your feedback guys
 
Goku80
Old
#10  
Goku80's Avatar
Senior Member
Thanks Meter 6513
Posts: 9,308
Join Date: Mar 2012
Location: Within the Matrix
Quote:
Originally Posted by hamdir View Post
yes as long as its the same base software number, keep in mind if Bindroid includes modes to Rosie or tweaks menu they will go away, better ask you Chef

awaiting your feedback guys
How to install

Edit sorry found it. Getting late here. Sorry.

Send from my Xtremed Bricked powered LeeDRoID One X

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes