26th December 2011, 04:40 AM
(Last edited by AndroidON; 6th February 2012 at 03:36 AM .)
Senior Member -
OP
Thanks Meter
458
Posts: 154
Join Date: May 2011
Location: Cheongju-si
[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/ja...d-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.
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.
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:
This data's meaning is same with this. (From CM7 source)
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.
-----------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------
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:
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.
The Following 275 Users Say Thank You to AndroidON For This Useful Post: [ Click to Expand ]
1lay (7th September 2012),
3RMD (2nd January 2012),
aarrun (1st February 2012),
af974 (28th December 2011),
Agnal (22nd September 2012),
albee320 (15th January 2012),
alexdoux25 (10th March 2012),
alkhafaf (26th July 2012),
alkiter (5th January 2012),
amrith.28 (24th January 2012),
Andrey G. (9th January 2012),
Android-fany (26th December 2012),
aniket.lamba (15th February 2013),
Atento (31st January 2012),
attack11 (23rd May 2013),
Axel 11 (3rd October 2012),
axistr (29th January 2012),
Azwraith7788 (8th January 2012),
A_U (21st October 2012),
b-eock (10th February 2012),
BajoPrimate (30th November 2012),
bala_gamer (20th September 2012),
baliriot (28th January 2012),
bananacakes (29th February 2012),
baseballfanz (29th January 2012),
Bexton (15th January 2012),
bharat_goku (22nd January 2012),
biopsin (26th December 2011),
birginioss (28th December 2011),
blackhawk_LA (16th September 2012),
BPaul (14th January 2013),
cdesai (26th December 2011),
ChavitoArg (7th December 2012),
chelsearulz5 (26th February 2012),
crt60 (18th January 2012),
Cup_Cake (10th May 2013),
czesiu (12th January 2012),
dan079 (27th December 2011),
Daniel D. (4th October 2012),
darkblooded (27th February 2012),
dark_hawk (28th March 2012),
dark_knight35 (6th March 2012),
DdcCabuslay (15th April 2013),
dh33r4j (11th February 2012),
Dj-Gutz (26th December 2011),
dm36415 (31st January 2012),
dnzdeniz (17th February 2013),
DocHoliday77 (7th April 2012),
doc_v15 (29th December 2011),
doomed151 (6th March 2012),
Dr. lele (9th January 2012),
dr30ma (19th February 2013),
Dread 7us (25th April 2012),
drsood (26th December 2011),
dsexton702 (16th February 2012),
dzuddiyn (14th April 2013),
EAGLEBOOY (10th March 2013),
eberaldo (21st January 2012),
einstein.frat (18th December 2012),
enursed (14th January 2012),
eoghan2t7 (10th January 2012),
Erahgon (14th January 2012),
Ergo Proxy (9th January 2013),
espaciosalter20 (14th April 2012),
evilisto (3rd January 2012),
Executioner1337 (24th April 2012),
eybee1970 (30th December 2011),
eyronic (30th December 2011),
Faryaab (1st January 2012),
Felimenta97 (30th December 2011),
fergie716 (15th February 2012),
fiskenigaten (19th May 2012),
forest1971 (13th April 2013),
Fusrodah (17th July 2012),
Garuxa (23rd April 2012),
georgelopez (30th January 2012),
GerasVille (9th March 2012),
geva28 (4th February 2013),
gh.rohit (27th October 2012),
ghostryder.333 (2nd November 2012),
gkillerx (28th April 2012),
gobz (10th March 2013),
gregbrooker (24th February 2012),
Gustavo RD78 (20th September 2012),
halaros2 (9th May 2012),
halfbytecode (13th June 2012),
hansip87 (10th January 2012),
Hatshipuh (23rd January 2012),
hearts king101 (6th February 2012),
henv (8th January 2012),
hes_luckey (17th April 2012),
heyjoe66 (23rd January 2012),
hisham027 (28th January 2012),
Honusnap (8th January 2012),
hoper66 (14th January 2013),
horror.hound (28th July 2012),
Hotrod68 (11th March 2012),
huston8 (20th April 2012),
Ian.P (8th January 2012),
iceman-x9 (29th December 2011),
il Duce (20th May 2012),
ImbaWind (5th February 2012),
iONEx (14th December 2012),
IvanNCase (8th January 2012),
izzoe (15th January 2012),
jaggyjags (1st February 2012),
jagroshan (16th June 2012),
jakuburban (10th March 2012),
janarthanan.v (1st September 2012),
jch8828 (31st December 2011),
jcsy (11th March 2012),
Jean-DrEaD (16th October 2012),
jethro650 (11th January 2012),
jinavs (10th February 2012),
jodhaniohm97 (31st December 2011),
jolas (28th December 2011),
karan128 (4th January 2013),
kay_kiat88 (26th December 2011),
kevinnol (21st January 2012),
Kev_cr (24th May 2012),
khalpowers (26th December 2011),
khan_frd2002 (29th April 2013),
kitty's_daddy (8th January 2012),
kleinyair (29th April 2012),
krzych (8th January 2012),
laill (18th February 2012),
leonardoaraujo (7th March 2012),
Lewelynn (9th January 2012),
LewisGauss (26th March 2012),
le_manhpro (26th December 2011),
LfcFan1977 (14th January 2012),
lippol94 (3rd January 2012),
LivingChampion (25th January 2012),
lol98lol98 (11th November 2012),
Looki75 (28th December 2011),
lordyka (10th August 2012),
lordz0rn (6th March 2013),
loSconosciuto (29th December 2011),
Lutis (22nd January 2012),
M0D1441 (15th January 2012),
m0ndul (22nd May 2013),
m1ndh4x8r (23rd January 2012),
manoj94 (18th January 2013),
manosv (26th December 2011),
marck1991 (11th January 2012),
max1919 (27th February 2013),
Mazzen.kh (15th February 2013),
mDroidd (13th January 2012),
mickey181 (15th February 2012),
mikef (9th March 2012),
milaq (3rd February 2012),
Mmmm-) (22nd May 2013),
monzttr (27th December 2011),
morteza-stfu (17th August 2012),
Mr.Mefisto (29th June 2012),
M_J_Nazari (25th February 2012),
nabildanial (10th January 2012),
neectron (20th August 2012),
negrobembon (24th January 2012),
neroyoung (25th May 2012),
nihalot (14th March 2012),
nikhil16242 (5th January 2013),
njankit (7th May 2012),
NJosh (10th January 2012),
noobdroid_90 (9th August 2012),
Notorious544d (26th December 2011),
nowy57 (30th December 2011),
Olao99 (5th December 2012),
Orilin (26th December 2011),
paddelundh (8th January 2012),
pancit (14th January 2012),
pantrif13 (4th January 2012),
papadawgg (11th March 2012),
Patrics83 (8th January 2012),
pedja1 (2nd January 2012),
peetr_ (6th May 2012),
Peppoid (29th December 2011),
phikal (20th March 2012),
Phillip Wu (23rd February 2013),
pitchblack5691 (18th November 2012),
pongnamu (8th October 2012),
pratyush.creed (1st May 2012),
Prawesome (29th March 2012),
preacher65 (8th January 2012),
promi (16th March 2012),
Pulse.g11 (11th May 2013),
qkkrdelagente (1st October 2012),
qkster (20th January 2012),
quisvir (1st January 2013),
R4Ck (23rd March 2012),
Rahulrulez (11th February 2012),
Rando81 (28th December 2011),
Randomverll (30th December 2011),
Raptor_3000 (19th June 2012),
RasahCrigis (13th May 2012),
rasroygbiv (8th January 2012),
rattking (11th January 2012),
rayford85 (8th January 2012),
rbf101 (4th February 2012),
ReeS86 (25th August 2012),
rituj26 (15th February 2013),
RivaultUser (21st August 2012),
robertips (20th May 2012),
RoflTrato (7th March 2012),
romcio47 (23rd June 2012),
rootSU (20th January 2012),
rosmarcelino (28th January 2012),
roxtreeme (11th April 2013),
Rudjgaard (15th July 2012),
salesale (27th December 2011),
Saluco (8th January 2012),
santiemanuel (23rd February 2012),
SArnab©® (24th January 2013),
sathelate (21st October 2012),
sau94 (10th May 2013),
sauron82 (27th October 2012),
scheichuwe (16th January 2012),
Scratch0805 (29th December 2011),
sdk16420 (8th November 2012),
sempi601 (28th February 2012),
Serious_Beans (8th September 2012),
shiftyHungary (8th January 2012),
shockwaverider (5th November 2012),
shoman94 (25th August 2012),
Shtsh (14th January 2012),
sigurd_LU (8th January 2012),
sipe1 (2nd January 2012),
sniperkill (22nd April 2012),
Solar_ (23rd August 2012),
sonarchist (29th March 2012),
Soul_Est (10th January 2012),
spaz2000 (16th September 2012),
SpeLight (25th January 2012),
spongychicken (9th March 2013),
starskyrob (27th January 2012),
steffato (8th January 2012),
stiffmast3r (20th March 2012),
stone_ship (2nd January 2012),
strawmetal (31st December 2011),
sturgeron (25th January 2012),
SuperBoUDS (5th May 2012),
superdild (28th January 2012),
TarHeelTrigger (23rd March 2012),
tbob18 (9th January 2012),
Tegen (8th January 2012),
temasek (28th January 2012),
teorouge (12th January 2012),
Tha TechnoCrat (3rd February 2013),
The Undertakerr (28th December 2011),
theboleslaw (10th March 2013),
titan69 (12th January 2012),
TJ_Ahluwalia (1st November 2012),
tj_droid (15th March 2012),
tommytomatoe (6th January 2012),
TopDroid (8th December 2012),
Traxex_ (11th March 2012),
TwinkyOfHope (28th January 2012),
ultimatepichu (8th January 2012),
UpInTheAir (23rd September 2012),
vijaypalmanit (30th December 2011),
Vinzgore (31st May 2012),
Vipitus (23rd August 2012),
vishwanathptl (7th March 2012),
williamfold (16th January 2012),
wjsturgis3 (8th January 2012),
wmg316 (8th January 2012),
x3m.zone (11th April 2013),
xcxa23 (9th January 2012),
YudhiezChitilieaz (16th December 2012),
z28tovette (9th August 2012),
zare555 (20th May 2013),
zhalx (4th February 2013),
ZiViTi_13 (6th September 2012),
ZN6 (25th October 2012)
26th December 2011, 05:53 AM
Recognized Developer
Thanks Meter
3634
Posts: 2,210
Join Date: Jan 2011
Location: IN YOUR HEAD
DONATE TO ME
Nice work! :D
Also, in case of a boot loop, just a backup of the modded file should be OK.
From my fingers to your eyez
CyanogenMod Maintainer | SGT7 | TeamBBQ
BBQLinux - An Arch based Linux distribution for Android developers
Website:
http://www.bbqlinux.org | Downloads: [url]http://sourceforge.net/projects/bbqlinux/files//url]
IRC:
#bbqlinux on freenode
26th December 2011, 03:21 PM
Senior Member
Thanks Meter
90
Posts: 280
Join Date: Aug 2011
Location: Buôn Mê Thuột
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
, and no custom sorry my english is not good
26th December 2011, 04:40 PM
Senior Member -
OP
Thanks Meter
458
Posts: 154
Join Date: May 2011
Location: Cheongju-si
Quote:
Originally Posted by
le_manhpro
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
, 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'.
The Following 3 Users Say Thank You to AndroidON For This Useful Post: [ Click to Expand ]
26th December 2011, 07:13 PM
Senior Member
Thanks Meter
24
Posts: 186
Join Date: Oct 2010
works great...thnx
26th December 2011, 07:50 PM
Senior Member
Thanks Meter
9
Posts: 110
Join Date: Apr 2007
Location: Heraklion,Crete
DONATE TO ME
Works great on my tablet novo 7 advanced.
Press The Thanks button if i helped
26th December 2011, 10:37 PM
Senior Member
Thanks Meter
2364
Posts: 1,956
Join Date: Aug 2011
Location: London
DONATE TO ME
Thanks A LOT!! VERY clear instructions, can't thank you enough. You must have put in a lot of time finding these stuff, so hats up from me.
-=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--
If you like my work, kindly hit the 'thanks' button.
And if you're really kind, consider a small donation by hitting the smiley below.
26th December 2011, 11:03 PM
Senior Member
Thanks Meter
157
Posts: 699
Join Date: Mar 2011
Location: Easton, PA
Thanks for the write up! I'll have to try this out tonight!!
Sent from my SGH-T959V using XDA App
Samsung Galaxy Nexus (CDMA)
If you like it, Hit thanks!
26th December 2011, 11:49 PM
Senior Member
Thanks Meter
34
Posts: 196
Join Date: Mar 2011
Location: Napoli
Thank you!! It works on Samsung Galaxy 3 (Apollo)! The first boot is been very long, like a bootloop, so I reboot two time after about 10 minutes of bootanimation, then the phone boot normally. It work like a charm!
GNexus :
Jelly Bean Stock
G3 :
PuruKisadHYBRID v2.4
Ainol Novo Elf II -
CyanogenMod 10.1
27th December 2011, 02:50 AM
Senior Member
Thanks Meter
90
Posts: 280
Join Date: Aug 2011
Location: Buôn Mê Thuột
Quote:
Originally Posted by
AndroidON
Did you changed 'f' to '1e' ?
I think you have changed it to '1' instead of '1e'.
yes, I've changed as you said
, so no need to change as directed, I will do anything to be so
, sr my english is not good
Thread Tools
Search this Thread
Display Modes
Linear Mode
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Go to top of page...
Most Thanked In This Thread
3 (quote) That's how I
did this mod … 3 (quote)
Did you changed
'f' to '1e' … 2 overall great job.
i
just have some … 2 (quote)
Here you are: