[HOWTO]More smooth scroll & volume step increase for MOST android phones[Poweramp OK]

Search This thread

Peppoid

Senior Member
Jun 26, 2010
123
102
Thanks for your help, really appreciated.

Here tutorial for SonyEricsson.

Volume step increase mod:

Search for array_1ae




Smooth scrolling:



Bye :)
 

zscomp

Senior Member
Oct 26, 2011
527
351
NIKAIA
Tried the smooth scroll but i had the opposite effect, so i reversed back the changes.

Galaxy S II , custom rom based on intratech's KK5
 
Last edited:

alkiter

Senior Member
Jul 26, 2010
320
32
Florida
Great work! Made just the scrolling mod on my Captivate and it flies. In browser can fling from bottom to top in one swype instead of multiple swypes.
 

Honusnap

Senior Member
Feb 20, 2010
1,273
438
Thaannnkkksss

WOOoooo thanks a lot for pointing this fact, i was feeling that things were not so smooth in Ex explorer or Go sms ... i feeel the difference now .. Very Good and thankts for your effort in explaining the whole process on doing it on our own roms .. !
Done it on my Dhd, next the SGSII.. :)
 

AndroidON

Senior Member
May 10, 2011
209
533
Cheongju-si
Why not do it in source?


Because not all roms open their source.

And this method is more simple for rom cookers.

smooth scrolling mod fixes apps lagging in scroll like EFS but its killing opera browser

it no longer opens after this mod (disappear after the opera logo)

running sense 3.5 GB 2.3.5

I'm using the motorola atrix.

And using opera browser with no problem.

Any people who have same problem with you?

If all DesireHD user suffer from that, it would mean phone is not compatible with this mod.
 

sigurd_LU

Senior Member
Jan 23, 2011
1,653
1,703
I can't confirm the problem with Opera that hamdir reported. Works fine here, I'm on RCMix Runny 4.
 

kitty's_daddy

Senior Member
Sep 2, 2011
178
44
jeonju
It's very nice. :D
Big thanks for your afford.
It works fine on my odexed su660(o2x) stock rom.
Also I could adjust all of them (voice,system,ring...) with this codes. ;)
Code:
:array_1ba
    .array-data 0x4
        0xat 0x0t 0x0t 0x0t
        0xft 0x0t 0x0t 0x0t
        0xft 0x0t 0x0t 0x0t
        0x1et 0x0t 0x0t 0x0t
        0xft 0x0t 0x0t 0x0t
        0xft 0x0t 0x0t 0x0t
        0x1et 0x0t 0x0t 0x0t
        0x1t 0x0t 0x0t 0x0t
        0xft 0x0t 0x0t 0x0t
        0xft 0x0t 0x0t 0x0t
        0xft 0x0t 0x0t 0x0t
        0xft 0x0t 0x0t 0x0t
        0xft 0x0t 0x0t 0x0t
    .end array-data

SU660 has a bit different code.
=========================
into Korean.
한국분이시네요. 반갑습니다.
2X는 테이블이 약간 다르지만 다른음량들도 마찬가지로 조정이 가능하네요.
스크롤링 역시 상당히 부드러워졌습니다.
벌써 XDA의 모든 롬개발자들이 이내용을 포함하는것 같네요.
자랑스럽습니다. :D
 

Lesicnik1

Senior Member
Feb 12, 2011
2,245
731
Slovenj Gradec
Hi,
Does the smooth scroll tweak works on htc roms? I couldnt find abslistview.smalli file allthough there are
Abslistview$1 ,Abslistview$2 and Abslistview$3 but with different methods names from what u've posted.

Thanks.

Sent from my HTC Legend using xda premium

Try looking at the end of abslist... ones. it usually at the end of abslist(s).

Patched the framework today, gonna put it on my phone tommorow and test it :)

Can't do it today (need an alarm clock)
 

punshkin

Senior Member
Jan 6, 2010
1,021
257
wow thank you! the volume step setting is a very great thing!
Have you considered adding this to Cyanogenmod? It would gain a lot by this :)
 

IvanNCase

Senior Member
Mar 20, 2009
164
29
Thanks a lot man, smooth scroll works great and so does 32 volume increments but now I'm running with 100. Its overkill for the ringer and alarm but its nice to have such fine control over music and calls.
 

Honusnap

Senior Member
Feb 20, 2010
1,273
438
Yes but it would be a great addition to a rom such as CyanogenMod. This is too haxxy and IMO nobody should be making roms by manually editing the dex like this.

You've got the choice ... AOSP is there, you can build your own rom if you want.
You can build your own car, all parts are on the market... but it is easier to took an existing one and tweak it => edit existing code.
 

ironjon

Senior Member
I´m unable to see in all Sense 3.5 roms that I tried for Desire the parameter "Enabled"
In roms with Sense 2.1, 3.0 I can see this parameter and I can change it.

111AE04E4EF7F62A3436AC


Any ideas?
Thx and good job :)
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 322
    [HOWTO]More smooth scroll & volume step increase for MOST android phones[Poweramp OK]

    ※Do this when you completely understand this.
    This is not for people who are noob to phone and computer things.



    This is a framework.jar mod which will affect on overall scrolling and volume steps.

    I've searched through several references and found some modification.

    By following steps below, you will modify your rom's framework.jar.

    And it will make your phone's volume control more precise and scroll to be more smooth.

    Some phones may have different structure in framework.jar so I'm not sure.

    (I've tested this on HTC desire and Motorola Atrix. I'm an Atrix user.)



    Ok, so here's everything you need before start.

    1. framework.jar of your phone. (Deodexed ROM needed)

    2. Java software Development Kit
    http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u2-download-1377129.html

    3. smali/baksmali tool (Thanks to the Korean guy, 'vorcot')
    http://api2.ge.tt/0/9LvgHdB/0/blob/download


    4. Text editor - Window basic text editor can be used..but I recommend Notepad++
    http://notepad-plus-plus.org/

    5. Program which can extract .jar file. (I prefer 7zip)

    6. File manager which can access to phone's internal system.
    (Like root explorer)

    7. Your rom's original zip under SDcard for in case of bootloop.




    A. Basic steps.

    1. Unzip the smali/baksmali tool to certain folder and put the framework.jar in same folder.

    2. Run baksmali manager.bat.

    3. Select framework.jar by pressing 4 -> 2 in main menu.

    4. Press 1 to Baksmali the framework.jar.

    5. Wait.

    6. Make it sure that new 'framework' folder is created and files inside it. (Don't close the baksmali manager window yet!)




    B. Modification Steps


    Volume steps mod
    - Since I saw some people are complaining about android's volume control is jumping to large amount, I made some mod.

    This will adjust your phone volume steps.

    screen201112201423ma.png


    Sorry for not showing you by English, but you can recognize the media volume counts increased from 15 to 30.


    Here's what you have to modify:

    1. Open the framework/android/media/AudioService.smali with text editor.

    2. Press Ctrl + F to open the search window and serch for 'max_'

    3. Continue search until you find the line below.
    111C6F4B4EF1C16B1C50D2


    4. You can see the 'array_1ba' in screenshot. This may vary for roms. (But usually only '1ba' changes.)
    This will lead you to data of max volume.
    Search for 'array_1ba' again.

    5. You will see like this:
    121C6F4B4EF1C16B1D89F7


    This data's meaning is same with this. (From CM7 source)
    131C6F4B4EF1C16B1E5F2A


    6. So if you want modify your music or movie volume, you have to modify 4th line's 'f'.
    (This 'f' means 15 by hexadecimal number)
    If you use bluetooth, modify 7th line too.
    I changed 'f' to '1e', which means 30 in hexadecimal number.

    7. Press the text editor's save button if you finished.



    Smooth scroll mod


    Add - This tweak will be included in CM7 officially. Editing smali manually will not needed.
    So you can find the option in performance setting. Thanks cyanogenmod team!
    (But other stock based roms still can do this like 'Sense','Blur','Touchwiz',etc)


    - Some android applications have some lag when they scroll.

    I found in logcat that garbage collector is working to much when I do some scroll in application.

    I googled about it and found the 'scrollingcache' function inside android making problem.

    Some application developers recommend disable 'scrollingcache' in app's internal config.

    But not all applications have disabled scrollingcache.

    So the mod I'll do will disable the scrollingcache throughout the Android OS.

    All apps will have no problem with scrollingcache.

    I've had scrolling improvements with facebook,playerpro,poweramp,gallery apps , etc.

    It is simillar with volume step mod but different value to change.


    Here's what you have to modify:

    1. Open the framework/android/widget/AbsListView.smali with text editor.

    2. Search through 'ScrollingCache' and change it like below screenshot.
    191AE04E4EF7F62A32BD44


    -----------------------------------------------------------------------------------------------

    201AE04E4EF7F62A336233


    -------------------------------------------------------------------------------------------------

    111AE04E4EF7F62A3436AC


    3. Press the text editor's save button if you finished.



    C. Finishing steps.


    1. Come back to baksmali manager window.

    2. Press 2 to smali.

    3. Wait. (It will create classes.dex file after finish)

    4. Open the framework.jar file with 7zip.

    5. Overwrite the classes.dex file inside the framework.jar.
    (You can just drag&drop the classes.dex file to 7zip window.)



    D. Installing steps.


    1. Put modified framework.jar to your phone's sdcard.

    2. Open the phone's file manager which have root access and copy the modified framework.jar to /system.

    3. Set permission to rw-r--r-- or like this:
    screen201112201620.png


    4. Move it to /system/framework. (Select yes for overwrite.)

    5. Reboot.




    I've used a lot of time for searching this.

    You can use this for your own rom but please tell me before you use it.

    And any bug reports or impressions will be appriciated.

    Enjoy :)


    EDIT - Some people are complaining about volume mod that it is not working with poweramp.

    You can use it by changing your setting.

    Power Amp settings - Audio Engine - Advanced Tweaks - Uncheck 'Direct Volume Control'

    This will solve the problem.

    This info is by 'wd2347' from Korean Atrix forum.
    7
    3. smali/baksmali tool (Thanks to the Korean guy, 'vorcot')
    http://api2.ge.tt/0/9LvgHdB/0/blob/download
    Download link don't work can some one upload it ?

    https://rapidshare.com/files/3133579762/baskmali.rar
    4
    If you're looking for an actual USABLE smali, here's a link:

    http://xdaforums.com/showthread.php?t=2311766

    Pretty lame that there's all these broken links in this thread, and NO clarification that the official site does not have a .bat file anywhere in the downloads.
    3
    I have tried installing on my xperia arc s, steps by steps, and line of arc is 164 (.line165)
    When I rebooted the machine and adjust volume from only min-> max, or max-> min:eek:, and no custom sorry my english is not good

    Did you changed 'f' to '1e' ?

    I think you have changed it to '1' instead of '1e'.
    3
    Why not do it in source?

    http://goo.gl/kPZJC

    That's how I did this mod from source, just look at the AbListView.java

    Works great, thanks for pointing this mod out for everyone in the Android community

    Sent from my PG06100 using Tapatalk