5,594,564 Members 32,320 Now Online
XDA Developers Android and Mobile Development Forum

[MOD & how to] More volume steps & Smooth scroll for stock 4.4.2

Tip us?
 
EnricoD
Old
(Last edited by EnricoD; 2nd February 2014 at 02:38 PM.)
#1  
EnricoD's Avatar
Recognized Contributor - OP
Thanks Meter 3143
Posts: 1,836
Join Date: May 2013
Location: Roma
Default [MOD & how to] More volume steps & Smooth scroll for stock 4.4.2

!!! THESE MODS ARE FLASHABLE AND FOR DEODEXED 4.4.2 ONLY !!! !


You can download here

volume_30.zip

Volume_45.zip


HOW-TO (Click the Spoiler):


 
Volume Steps:

1) Open framework.jar.out\smali\android\media\AudioService.smali

2) Search for

Code:
array_0
It will looks like this:

Code:
    .line 205
    :array_0
    .array-data 0x4
        0x5t 0x0t 0x0t 0x0t
        0x7t 0x0t 0x0t 0x0t
        0x7t 0x0t 0x0t 0x0t
        0xft 0x0t 0x0t 0x0t
        0x7t 0x0t 0x0t 0x0t
        0x7t 0x0t 0x0t 0x0t
        0xft 0x0t 0x0t 0x0t
        0x7t 0x0t 0x0t 0x0t
        0xft 0x0t 0x0t 0x0t
        0xft 0x0t 0x0t 0x0t
    .end array-data
3) Change f (15) to

1e (30 steps)

or

2d (45 steps)

It should looks like it:

Code:
    .line 205
    :array_0
    .array-data 0x4
        0x5t 0x0t 0x0t 0x0t
        0x7t 0x0t 0x0t 0x0t
        0x7t 0x0t 0x0t 0x0t
        0x1et 0x0t 0x0t 0x0t
        0x7t 0x0t 0x0t 0x0t
        0x7t 0x0t 0x0t 0x0t
        0xft 0x0t 0x0t 0x0t
        0x7t 0x0t 0x0t 0x0t
        0xft 0x0t 0x0t 0x0t
        0xft 0x0t 0x0t 0x0t
    .end array-data
4) Recompile back



Smooth Scroll:

1) Open framework.jar.out/android/widget/AbsListView.smali

2) Search for

Code:
.method private createScrollingCache()V
Code:
.method private createScrollingCache()V
    .locals 2

    .prologue
    const/4 v1, 0x1
3) Change 0x1 to 0x0

Code:
.method private createScrollingCache()V
    .locals 2

    .prologue
    const/4 v1, 0x0
4) Search for

Code:
.method private initAbsListView()V
Code:
.method private initAbsListView()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x1

    .line 824
    invoke-virtual {p0, v1}, Landroid/widget/AbsListView;->setClickable(Z)V

    .line 825
    invoke-virtual {p0, v1}, Landroid/widget/AbsListView;->setFocusableInTouchMode(Z)V

    .line 826
    invoke-virtual {p0, v2}, Landroid/widget/AbsListView;->setWillNotDraw(Z)V

    .line 827
    invoke-virtual {p0, v2}, Landroid/widget/AbsListView;->setAlwaysDrawnWithCacheEnabled(Z)V

    .line 828
    invoke-virtual {p0, v1}, Landroid/widget/AbsListView;->setScrollingCacheEnabled(Z)V
4) Change v1 to v2 in line828 like this:

Code:
.method private initAbsListView()V
Code:
.method private initAbsListView()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x1

    .line 824
    invoke-virtual {p0, v1}, Landroid/widget/AbsListView;->setClickable(Z)V

    .line 825
    invoke-virtual {p0, v1}, Landroid/widget/AbsListView;->setFocusableInTouchMode(Z)V

    .line 826
    invoke-virtual {p0, v2}, Landroid/widget/AbsListView;->setWillNotDraw(Z)V

    .line 827
    invoke-virtual {p0, v2}, Landroid/widget/AbsListView;->setAlwaysDrawnWithCacheEnabled(Z)V

    .line 828
    invoke-virtual {p0, v2}, Landroid/widget/AbsListView;->setScrollingCacheEnabled(Z)V
5) Search for

Code:
.method public setScrollingCacheEnabled(Z)V
Code:
.method public setScrollingCacheEnabled(Z)V
    .locals 1
    .parameter "enabled"
6) Change enabled to disabled

Code:
.method public setScrollingCacheEnabled(Z)V
    .locals 1
    .parameter "disabled"


More info and original guide, adapted for N5, here: http://forum.xda-developers.com/show....php?t=1411317




Credits: @AndroidON
The Following User Says Thank You to EnricoD For This Useful Post: [ Click to Expand ]
 
EnricoD
Old
(Last edited by EnricoD; 21st January 2014 at 08:41 PM.)
#2  
EnricoD's Avatar
Recognized Contributor - OP
Thanks Meter 3143
Posts: 1,836
Join Date: May 2013
Location: Roma
... reserved ...
The Following User Says Thank You to EnricoD For This Useful Post: [ Click to Expand ]
 
fcisco13
Old
#3  
fcisco13's Avatar
Senior Member
Thanks Meter 323
Posts: 1,834
Join Date: Jul 2010
Location: houston
Will try these than you.

Whatchu talking bout willis!
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes