MIUI Official Community

Senior Member

Rank: 2

Credits
31
Device
0
MIUI Version
0
Online time
2 Hours
Send PM

[Guide][ICS] How to disable scrolling cache.

[ Promote]
4442 9 |
18:09, Sep-28-2012
| |
|
Go to reply no.
This post was edited by spongychicken 18:18,Sep-28-2012

This mod basically disables scrolling cache throughout the OS hence giving you scrolling inprovements with baconreader, gallery, facebook and what not!

With that said,  I do not guarantee noticable scrolling fluidity. Also, I'm not responsible if anything goes wrong with your device.

Prerequisite
-Apk Changer Alpha 15 [Direct Download] (or any tool that decompiles .jar files)
- MiUi running ICS only (I don't have time to test on JB so give it a try yourself)

Beginning steps

  • Pull framework2.jar from (system/framework)
  • Paste framework2.jar in (place-files-here-for-modding) folder.
  • Open up Apk Changer and go through the first time setup.
  • Once setup is done hit 23 (Advanced mode).
  • Hit 22 and select project (if there's only one file it's automatically selected) then 7 to decompile.
  • Once decompiled go to out folder and open up framework2 folder.

Now it's time to get editing:

1. Open framework2\smali\android\widget\AbsListView.smali with any text editor.

2. Search for .method private createScrollingCache()V and 4 lines below that you will find const/4 v1, 0x1 change it to const/4 v1, 0x0

3. Next we search for invoke-virtual {p0, v1}, Landroid/widget/AbsListView;->setScrollingCacheEnabled(Z)V and change the value v1 to v2

4. For the last step, search .method public setScrollingCacheEnabled(Z)V and two lines below that you'll see .parameter "enabled" change it to disabled, stop, no or whatever you want! And SAVE!

5. Finally, go back to Apk Changer and hit 8 to compile jar. This will overwrite the earlier framework2.jar file in (place-files-here-for-modding) folder.

Steps to install.

1. You can either adb push it or replace it using any file manager (I use Root Explorer)

2. Set the permission rw-r--r-- or better yet like this:- []  [] [  ]
                                                                                 []  [    ]  [    ]
                                                                                 []  [    ]  [    ]
3. Reboot and boom! You're done. Enjoy.


Thanks to AndroidON over at XDA Developers for providing this mod.

Favorite

Rated by 1 person   Experience Reason  

lenny_kano + 2 Great!

Experience +2  View Rating Log

Diamond Member

Rank: 5Rank: 5

Credits
1319
Device
Google Nexus 5
MIUI Version
4.1.3
Online time
152 Hours
Send PM
18:12, Sep-28-2012
|
spongychicken replied at 2012-9-28 19:09
This mod basically disables scrolling cache throughout the OS hence giving you scrolling inprovement ...

Just fyi, you don't need to change the parameter name from enabled. Its just debugging code and affectnothing. Thanks for posting :)
Lennox | Xtreamer Mobile Developer
xtreamermobile.com
All-around Android nice guy :)

Senior Member

Rank: 2

Credits
31
Device
0
MIUI Version
0
Online time
2 Hours
Send PM
 Author| 18:16, Sep-28-2012
|
lenny_kano replied at 2012-9-28 18:12
Just fyi, you don't need to change the parameter name from enabled. Its just debugging code and af ...

Owh well.. okay, good to know and you're welcome!

Diamond Member

Rank: 5Rank: 5

Credits
1319
Device
Google Nexus 5
MIUI Version
4.1.3
Online time
152 Hours
Send PM
18:26, Sep-28-2012
|
spongychicken replied at 2012-9-28 19:16
Owh well.. okay, good to know and you're welcome!

Don't worry, changing it doesn't hurt, its just that it doesn't help either.
Lennox | Xtreamer Mobile Developer
xtreamermobile.com
All-around Android nice guy :)

Gold Member

Rank: 3Rank: 3

Credits
324
Device
Galaxy Nexus
MIUI Version
0
Online time
38 Hours
Send PM
19:58, Sep-28-2012
|
Does it have so much noticeable different in scrolling performance?

MIUI Fan Site

Admin MIUI-Germany

Rank: 6Rank: 6

Credits
2694
Device
Others
MIUI Version
0
Online time
535 Hours
Send PM

Fan of MIUI GermanyMIUI 30 Million UsersMerry Christmas 2013MIUI English Forum 2013100k Forum MembersMIUI 3rd AnniversaryMIUI 20 Million Users90000 Forum MembersPioneer of MIUI English Forum OTA FeedbackI love MIUII love Mi Bunny

20:00, Sep-28-2012
|
This post was edited by midian666 15:11,Sep-28-2012
crazyg4merz replied at 2012-9-28 13:58
Does it have so much noticeable different in scrolling performance?

No, its a hoax:P
Kalashnikitty
http://miui-germany.de

Gold Member

Rank: 3Rank: 3

Credits
324
Device
Galaxy Nexus
MIUI Version
0
Online time
38 Hours
Send PM
22:14, Sep-28-2012
|
midian666 replied at 2012-9-28 19:00
This post was edited by midian666 15:11,Sep-28-2012

I didn't mean to ask if that's a hoax or not. But I was asking does it give a lot of differences or just a small different.  Don't get it wrong mate..

Senior Member

Rank: 2

Credits
31
Device
0
MIUI Version
0
Online time
2 Hours
Send PM
 Author| 23:52, Sep-28-2012
|
crazyg4merz replied at 2012-9-28 22:14
I didn't mean to ask if that's a hoax or not. But I was asking does it give a lot of differences o ...

It does imo, developers of some apps disables scrollingcache in their app internal configuration but some doesn't. So what this mod does is that it disables it thoroughly across the OS and in all apps.

Rated by 1 person   Experience Reason  

crazyg4merz + 1 Thanks!

Experience +1  View Rating Log

Senior Member

Rank: 2

Credits
125
Device
Galaxy S3
MIUI Version
3.4.12
Online time
48 Hours
Send PM

I love MIUIPioneer of MIUI English Forum I love Mi Bunny

04:09, Oct-21-2012
|
what happpen if the jar file have an antikang security?
Phone
ATT Samsung Galaxy S3 LTE SGH-I747

Elite Member

Crusing...

Rank: 6Rank: 6

Credits
5844
Device
Mi2
MIUI Version
0
Online time
341 Hours
Send PM

Most Active MIUIerMIUI V5 ReviewSuper ModeratorI love Mi Bunny

18:43, Oct-23-2012
|
I tried it once and didn't notice much of a difference. Probably works for some.
What you see here is...
The rambling verses of a bored man who decided he should have a signature but didn't know what
to sign so he just sat there at his computer writing whatever came to his mind and as a result...
...now you know you should have stopped reading a long time ago, don't you??
////
MIUI Forum Rules & Guidelines
Per Device Bugs Threads

Credits Management

Quick Reply Top Return to the list