yashsingh1/xdaforums huggingface dataset:
[Android Software Development] temasek:
@AndroidON

I've PM you and awaiting your approval for your tweaks on my KANG ROM. It will not be inside my ROM but an optional flashable zip.

My thread

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

Thank you Sir.

EDIT: Approval granted :D
[Android Software Development] pastime1971:
overall great job.

i just have some comments.

for scrollcache tweak, setScrollingCacheEnabled, "enabled" is the function argument (i am not java programmer, so i may be calling them wrong. i see they call it parameter) and renaming it to whatever may cause issue. (of course there is no argument named "no"). i am not sure what happens if you try to reference a wrong variable/parameter/argument here. it may fail gracefully, but maybe not. second of all, i don't think you need to override this function. (i may be wrong though)

initAbsListView() part is necessary for public AbsListView(Context context), not enough for public AbsListView(Context context, AttributeSet attrs) and public AbsListView(Context context, AttributeSet attrs, int defStyle), because it can be overwritten by R.styleable.AbsListView_scrollingCache

createScrollingCache() part is hard-overriding caching behavior, as it sets mCachingStarted=false (and children). it may be the only thing needed. (i may be totally wrong here though)

i'm sure that you also looked into source code. your tweak is valid or only possible way to modify binary. i just hope that my comment help you improve things, unless "if it is not broken, don't fix it"
[Android Software Development] baseballfanz:
Tried it on my Asus Transformer running HC. Work great.:)
[Android Software Development] Habarug:
I'm currently trying it on my HTC Hero :) I just have one question: If I want to include it in a rom, do I have to fix the permissions? If so, how do I do it?

Edit: Oh, nvm, just figured out it was the root explorers permissions, I'm so n00b sometimes :P

Thanks :)
[Android Software Development] Felimenta97:
There is some way to make it work on odexed ROMs?
[Android Software Development] jaggyjags:
used the volume tweak on my htc explorer, but volume does not increase steadily, but moving up and down. look picture :)

has anyone reported anything similar? any way to solve it?
[Android Software Development] anderl78:
Yep, that's possible. I use this in my odexed ROM.

In short words:

-Deodex your ROM (recommend all apps and framework-files)

-mod the files

-make a deodexed ROM, flash it on your device

-odex all back (have to be done on the target device) this is the hardest thing, you need the right dexopt-wrapper for your device, the right bootclasspath (could be found in the init.rc). I guess you can find a script here on xda for your device which do the rest for you...

Sent from my An-Droid loaded Desire
[Android Software Development] jaggyjags:
Thanks

I am thinking about adding the scrolling mod to my rom here if this is no problem. :)

Could make volume one work properly..
[Android Software Development] AndroidON:
I thought the parameter "enabled" is for the manifest in app.

If you decompile an app's apk, you can find scrollingcache="enabled" at manifest.xml.

So I thought the word "enabled" is initiating scrollingcache and removed that word.

And of course, even without scrollingcache="enabled",

the default setting is calling scrollingcache so I tried to disable the whole thing.

(Anyway, the second one may not needed....)

If you are getting that problem from poweramp, you can find a solution at the bottom of OP.

Else, tell me again ;)

Of course you can use this mod:D
[Android Software Development] Ainster:
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 ?
[Android Software Development] jaggyjags:
https://rapidshare.com/files/3133579762/baskmali.rar
[Android Software Development] zagnut103:
Volume mod works on TP CM9 a0.6

Been looking for this for a long time so thanks very much for this. You guys rock.

Just wanted to confirm volume increment is working perfectly on HP Touchpad/CM9 0.6.

Bumped mine to '1e' (30) and its working like a champ.

Also confirm works beautifully using 'Volume Control' app which is just a simple screen overlay volume slider.
[Android Software Development] LeoMar75:
The ListView Cache is there for a reason... Androd devs are not stupid... :rolleyes:

From Google Dev Team

I don't recommend to use this listview hack!
[Android Software Development] shoman94:
That's interesting because I have noticed a few areas where it suffered a bit but overall for my Usage it was a better overall experience.
[Android Software Development] b-eock:
Thanks OP, this helps a lot on ICS ROMs
[Android Software Development] Alifdroid:
link download doesn't work guys....may i request the link baksmail tool ?
[Android Software Development] kong:
Google and you shall find it ;)
[Android Software Development] Notorious544d:
Wow, really?

I heard ICS has a new way of scrolling, where it caches scrolling when dealing with 'short scrolls' and disables cache when performing 'long scrolls.' I would have thought that the ICS method was more effective, but I guess not...
[Android Software Development] asdfgh4029:
I have a little problem...

When I do this step..

Here's what you have to modify:

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

But I don't have AudioService.smali,I have AudioService$1.smali,AudioService$2 .smali,and AudioService$3.smali

look at the picture....
[Android Software Development] AndroidON:
Go down more, you'll find it.

(It not, baksmali again. File may be coruppted.)
[Android Software Development] Looki75:
Guys, CM7 team added the option to disable scrolling cache!!!

We don't need the hack anymore (for those who use a CM7 ROM).

Nightly changelog:

AbsListView: add option to disable scrolling cache (2/2) (android_packages_apps_CMParts) link

AbsListView: add option to disable scrolling cache (1/2) (android_frameworks_base) link

And if you go in CM7 Settings / Performance, you have a new option there "Scrolling Cache" with 4 choices:

1/ Always enabled

2/ Enabled by default

3/ Disabled by default

4/ Always disabled

Choose 4 and you have the super fast scroll!

For the ROM I use (see signature) on my HD2, it works perfect!!!

No more manual edits!!!

Thanks for convincing CM7 team! :D
[Android Software Development] metaldood:
I would like to have the link as well :)

smali and baksmali tool on google code is different I think.

Edit- nvm did not see the Rapidshare link before.
[Android Software Development] metaldood:
Works awesome...saved me some money!! ...
[Android Software Development] leonardoaraujo:
thanks!!

Very nice guy!

AndroidON Thanks, this works perfectly in CM9, added to my rom!:D
[Android Software Development] jcsy:
i tried searching for "disadvantages" or "side effects" or "bad effects"

are they any by doing this ?
[Android Software Development] mikef:
It takes longer to change the volume from min to max or vice-versa. Other than that I haven't seen anything.
[Android Software Development] R4Ck:
Works on galaxy ace, but the line 165 is 166, and 1ba is 1be
[Android Software Development] garyh2:
did the smooth scroll mod on xoom w/ cm9 kang w/ build date 2/29 and it works great!
[Android Software Development] Nick0703:
I did the smooth scrolling option, everything is working except for Titanium backup which keeps on "Force Close"? Did I do something wrong?:confused:
[Android Software Development] termagazis:
hi i have one question:this mod for volume is give us more louder sound or its just changing the scaling (for example from 15 scales to 30)
[Android Software Development] b-eock:
Just changes the scaling
[Android Software Development] termagazis:
ok thanks for reply!
[Android Software Development] dfkt_:
Did anyone get a finer stepped volume control working on Samsung devices in the meantime? I have a Galaxy Tab 7.7 and tried this hack, but had the same negative results. I hope there's just a small difference between Samsung and "normal"... would be great to have a useful volume control for media.
[Android Software Development] dipeshb:
Vol hack causes issues in power amp

Hi all, I have the HTC one S, the volume hack works great for most except for where I really need it, when using power amp. I have tried switching off the direct volume advanced setting in PA but the volume still goes weird.

Here's what happens :

Direct volume on:

I can only use the first 25% of the volume length because any more it goes stupidly loud! So I am back to my original problem of not enough steps to control the volume.

Direct volume off:

There seems to be no control of the volume, it will go loud then 2 steps where it goes really low then it goes loud again.

I have set my volume scale to 45, I.e 2dt. Any ideas?

I guess this is a power amp issue, as I don't get this with the stock player.
[Android Software Development] peetr_:
Thanks for this Scrolling Cache tutorial, can I use it in my Photon 2.3.5 rom?
[Android Software Development] raduku009:
hey man , i cant manage to do it , please help i cant find any baksmali manager.bat or something like that... please help :)
[Android Software Development] mayur2j:
Hi. I am going to try this for improving scroll. You have said that this will be included in CM7. In which version of CM7 is this I'm using CM 7.1 RC3. Is it included in that? Please reply I'd really like to try this on.
[Android Software Development] chitose_ndy:
Gonna try this :)

Thanks
[Android Software Development] coldflid:
With the 30 steps, sound stops working at step 26 or 27 (on lpd ics 4.0.3 galaxy s 2)

Going to test further on
[Android Software Development] Raptor_3000:
bad link:(
[Android Software Development] forcedfx:
A HUGE thank you to you! My Samsung Galaxy Nexus running AOKP 39 would only allow me 15 volume steps for the music volume. When wearing ear buds I was stuck switching between a volume level that was too quiet and one that was too low.

Things were different for me if anyone else has the same phone.

I had to download the files from somewhere else. I mirrored them here:

http://forcedfx.us.to/android/Thebyani_baksmail-smali.zip

On my phone the framework.jar file is located at /system/framework/framework.jar

Since the zip file I downloaded was different I had to edit the 1.bat file so that it contained the line

java -jar baksmali.jar -x framework.jar -o classout

My AudioService.smali file was slightly different. The array values were labeled as array_1f2. So, I had to search the text file for array_1f2

I had to change the '0xft' value on line 837 of the file, from 0xft to 0x1et. It was on the fourth row of values in the array. After rebooting the phone I now have 30 levels of volume I can adjust! Thank goodness! I may go back and tweak some of the other volume steps as well.

Hopefully, this will help someone else as I was unable to find anything that could do this on my phone.
[Android Software Development] Mr.Mefisto:
No problems with this hack on framework.jar! Thank you a lot OP for this amazing guide!
[Android Software Development] zanix:
Having issues with the Galaxy Tab 2 7.0 with CM9

I have extracted framework.jar successfully with baksmali, and edited framework\android\media\AudioService.smali

Which looked like this

.line 182
const/16 v3, 0xa

new-array v3, v3, [I

fill-array-data v3, :array_1f2

iput-object v3, p0, Landroid/media/AudioService;->MAX_STREAM_VOLUME:[I

And this

.line 182
:array_1f2
.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

I changed line 4 to

0x1et 0x0t 0x0t 0x0t

I ran smali, replaced classes.dex in framework.jar, then replaced framework.jar on the device

I get 30 steps now, but at around step 16 the audio goes dead.

Then at step 17, it starts going up again, until around 26-27 when it just cuts out.

Any ideas on what could cause this and what I could do to get 30 step audio working?
[Android Software Development] dfkt_:
I had the same result when I tried this with my Galaxy Tab 7.7 - seems Samsung just doesn't play nicely. AFAIK nobody posted any positive results with Samsung stock firmwares yet, but that CM9 doesn't do it on Samsung devices too - this is seriously annoying.
[Android Software Development] Jaax:
Same here on my SGS2 with CM9.
[Android Software Development] sefira:
For me, the volume step number 15 was the loudest. I couldn't increase it any further after that. That means that the volume bar could not even go past 15. But I do know that there are 30 steps because the indicator is stuck halfway. Any thing else I should change to enable this to work?
[Android Software Development] zanix:
I would guess its the audio driver doing it
[Android Software Development] TheTehk17:
Having one problem with the audio step increase. I modified the framework, flashed, and the steps are indeed increments of 30- but volume only changes for the first 15 steps (like it was before). The latter 15 steps do not change the volume at all.
[Android Software Development] eXtremeDevil:
Can someone reupload the smali/baksmali tool? I found another one but I think I haven't recompile the right way...
[Android Software Development] eXtremeDevil:
Please, I need help! I changed my media volume from 'f'' to '64' (100 levels instead of 15) on my SGS3 (european with a custom ROM). Now the levels are there, I mean graphically, but the effect is the same! The first fifteen levels are the only ones that make differences, the levels 16 to 100 is the same that the 15 one. Actually, the built-in player only shows 15 levels.

Please, how can I correct this? I really need this! A user posted in the first page that it worked for his SGS3, and Fine Volume Controller do the trick on my device, so there's must be a way...

Thanks.
[Android Software Development] b-eock:
No one posted on the first page that it worked for their SGS3, they said Samsung Galaxy 3, different phones...
[Android Software Development] eXtremeDevil:
Yep, you're right, but anyway, there has to be a way, the levels has changed graphically, and Fine Volume Control V2 does it... maybe changing some more than just one line?
[Android Software Development] forcedfx:
Anyone looking for the smali zip file see my link in post #140
[Android Software Development] eXtremeDevil:
What about giving framework.jar 777 permissions? Maybe that way the volume levels mod will work properly?
[Android Software Development] mhnx:
You might upload smali/baksmali tool in a new site, doesn't work :(
[Android Software Development] forcedfx:
http://forcedfx.dyndns.org/android/Thebyani_baksmail-smali.zip
[Android Software Development] kong:
Try the official site: http://code.google.com/p/smali
[Android Software Development] thebrainkafka:
What are the other blocks in the used array in audioservice.smali for?

What if i change eg line 3 or 6 also to f?

Thx
[Android Software Development] thebrainkafka:
# - Control

5 - Voice Call

7 - System

7 - Ring

15 - Music (includes movies)

7 - Alarm

7 - Notifications

15 - Bluetooth

7 - System Enforced

15 - DTMF

15 - TTS

15 - FM
[Android Software Development] tido89:
Thank you for this mod! I've been searching it for quite a long time. My earphones were either too loud or too low, now I can find the perfect volume.
[Android Software Development] Deawon:
I have Samsung Galaxy S II. Cyanogenmod 9.1

I get 30 steps now, but 16- 30 volume is dead.

Pls help
[Android Software Development] Jimieo:
I was hoping to add the disable scrolling cache mod to my personal rom, however I've hit a snag.

On my Sprint Samsung Galaxy S III, in framework.jar (from Jellybean LJ7) there is no widget folder or AbsListView.smali

Has anyone else figured which smali file is needed to be edited?
[Android Software Development] sauron82:
Reread OP. It's in framework/android/media. Not sure where you got widget folder from.

Sent from my Galaxy Ace
[Android Software Development] Jimieo:
I did read the OP. Perhaps you should re-read it. And perhaps I should have been more clear. I am after the disable scrolling cache mod.

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.
[Android Software Development] sauron82:
Sorry, I forgot this was volume and smooth scroll. You might not be able to on GS3.
[Android Software Development] Jimieo:
Not a problem.. Didn't realize I forgot to specify which mod I was after. xD
[Android Software Development] XqepX:
Thank You VEEERRY Much! Works perfect on My Xperia sola Stock ICS ;) I´m so happy now :D
[Android Software Development] Jimieo:
Ah ha!... I found it. It was in framework2.jar not framework.jar :)
[Android Software Development] Satch09:
Has anyone got the volume mod right on JB? I've tried but only seem to get the steps in the visual movement resolution right but not the same resolution on actual volume. So I increase the volume and while the steps are finer on screen, the volume (audio) only goes up to 15 and then resets once it goes past 15 and starts from soft again.

Please help guys, I've been wishing for this for some time and I've really tried googling what my small mind understands :)
[Android Software Development] MrObvious:
I got the Smali link off of SourceForge:

http://sourceforge.net/projects/alexvhtcroms/files/baksmalimanager.zip/download
[Android Software Development] faruqmunshif:
thanks, it works!
[Android Software Development] bjrmd:
Tried on my Note 2, same issue gets to 15 then resets to 0.
[Android Software Development] matcho13579:
I noticed on my ZTE Blade running Jelly Bean that when you're editing framework.jar, DO NOT edit MAX_STREAM_VOLUME array, but the one above it (something about soundeffect or something like that, I'm not sure now)
[Android Software Development] bjrmd:
this is the way it looks on my file for that particular array :

:array_3e0

.array-data 0x4

0xat 0x0t 0x0t 0x0t

0xfft 0xfft 0xfft 0xfft

.end array-data

which part did you change or was it totally different
[Android Software Development] matcho13579:
It is SOUND_EFFECT_FILES_MAP

You can see from array, which this "map" is linking to, that it's the right array (for me it's array_1f2) and this is how it looks in my .smali file

0x5t 0x0t 0x0t 0x0t

0x7t 0x0t 0x0t 0x0t

0x8t 0x0t 0x0t 0x0t

0x1et 0x0t 0x0t 0x0t

0x7t 0x0t 0x0t 0x0t

0x8t 0x0t 0x0t 0x0t

0xft 0x0t 0x0t 0x0t

0x7t 0x0t 0x0t 0x0t

0xft 0x0t 0x0t 0x0t

0xft 0x0t 0x0t 0x0t

See the first post to know which row to edit.
[Android Software Development] bjrmd:
thanks but my Note 2 only has the couple of lines in the sound effect array that I posted--it's going to take someone more knowledgeable than me to figure it out
[Android Software Development] matcho13579:
try to post here what you have in MAX_STREAM_VOLUME array
[Android Software Development] dfkt_:
I very much doubt you get a Samsung device fixed. Many people (including me) have tried, but Samsung apparently messed up the standard code pretty good.
[Android Software Development] bjrmd:
these are the 2 arrays:

:array_3e0

.array-data 0x4

0xat 0x0t 0x0t 0x0t

0xfft 0xfft 0xfft 0xfft

.end array-data

.line 282

:array_3e8

.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

0xft 0x0t 0x0t 0x0t

0x5t 0x0t 0x0t 0x0t

0x5t 0x0t 0x0t 0x0t

.end array-data

the first is the "sound effects", the second is the "max stream"

as you can see I already did the edit but it will basically just change it to 0 to 15, back to 0 at the midpoint, then max at 15 again
[Android Software Development] matcho13579:
I'm afraid I have to agree with dfkt_...it's simply not working on Samsung devices...

Someone have this thing working on Samsung device?
[Android Software Development] Keyosuke:
I have gotten the Samsung Galaxy Note (i717) to have more volume steps using this info from this tutorial and a custom rom called Paranoid. The rom was based on Cyanogen Mod and is some form of Jelly Bean. Samsung devices can have volume steps added, but you may need to use a custom rom.
[Wildfire General] ccdreadcc:
i succesfully s-off and root and cwm and flashed cm7.1

from

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

but the gapps seems to be old?

can i flash latest gapps available for htc tatoo?

gapps-mdpi-20101225-signed
[Wildfire General] 3xeno:
gapps-mdpi-20101225-signed is older. (25th Dec 2010). Besides, Gingerbread uses Universal GApps (File name type - gapps-gb-<date>). gapps- mdpi / hdpi are for Froyo.

The latest Gapps for Gingerbread is dated 28/08/2011 and can be obtained here:

http://goo-inside.me/gapps/gapps-gb-20110828-signed.zip
[Wildfire General] ccdreadcc:
lol xd

i alrdy have that only,

now i have overclocked to 768 mhz

is it safe?
[Wildfire General] 3xeno:
If your phone is stable (No random lockups / freezes / reboots) at 768, then it's pretty safe.
[Wildfire General] ccdreadcc:
its very stable..

why cant i overclock any further?
[Wildfire General] usaff22:
Because otherwise the phone will probably run out of battery on standby in 1hr and kill your battery
[Wildfire General] Mario54:
You shouldn't stress too much the system, it is my opinion that to 768 is a good level (+50%), for example mine goes one step less (748) because at 768 becomes unstable, means the limit is very close.
[Wildfire General] ccdreadcc:
768 seems to be very stable, how do u notice its unstable?? does it reboot?

it reboots for me when i overclock to 787 mhz in my p500
[Wildfire General] arkoze:
If the laucher becomes jumpy, if apps start freezing for example, reboots, etc...

all these are evidence of an unstable system. I am only OC'ed to 652MHz because i see no difference from anything higher so no point really.

If you want the latest GAPPS for CM7, visit the CM7 GAPPS site

http://wiki.cyanogenmod.com/index.php?title=Latest_Version#Google_Apps
[Samsung Epic 4G Touch] stargaterules:
I have a weird issue. Currently running Phantom's newest ROM and Swype beta. I install swype with no problems and at first it runs fine, but after a while, swype stops functioning properly. When I try to swype it says please try again and it doesn't recognize my swyping. I've uninstalled and reinstalled it several times and the same thing keeps happening. I don't have an issue with force closing, it's just like the application itself bugs out. Anyone have similar problem?
[EVO 4G Accessories] Superboy007:
12/25/11

they got it on best buy for $99.99

just search for it "sandisk ultra 64 gb"

Model: SDSDQY-064G-A11A| SKU: 4120116

I read in some of the forums that it is compatible with the evo but if not you can always return it, I just ordered mine
[EVO 4G Accessories] Febby:
thanks for letting us know, I'll pass on this as 32gb is good enough for me at the moment. I've posted the link below to anyone who is in a rush and wants to buy it.

http://www.bestbuy.com/site/SanDisk...skuId=4120116&st=sandisk ultra 64gb&cp=1&lp=2
[EVO 4G Accessories] SniperXX:
From my reading, it works in the Evo. You just need to format it in the phone once you install it.
[EVO 4G Accessories] :
damn all sold out
[EVO 4G Accessories] oncanegra:
Can anyone confirm for me that these cards do work in the EVO ....like one of y'all has it physically in your phone... not looking for speculation rumors ....if ya do post it clearly so others can search for it easier thanx.....
[EVO 4G Accessories] BigMosley:
I have moved onto the LTEvo but just wanted to stop by and say Radioshack has these on sale for $50. Great deal. Peace.

http://www.radioshack.com/product/index.jsp?productId=13239498
[EVO 4G Accessories] flint6:
Or wait a couple months and buy it for half that price. I'm ashamed to say what I paid for my 32g card.
[EVO 4G Accessories] BigMosley:
I purchased mine on Radioshack.com last week for $39.99 then it went up $10. I doubt your going to find it cheaper than $39.99 its retail is $150. That's $.66 a GB.
[EVO 4G Accessories] ryanbell27:
And I thought my 16GB was big...