[REQ] Set Stream_Music as Default when adjusting volume - Sony Xperia T, TL, TX, V

too difficult for me to understand the smali things :crying:
anyone could make it for T/TX/V?
i think all the stuff is in framework.jar
keep expecting !

Related

[Q] Linear vs log' fm volume table

hey
i'm trying to find a solution for a problem with the FM app volume.
the lowest volume is too high !!
ok so I've done my research and the problem is that the volume levels we change is linear and the actual change is by a logarithmic table.
bottom line -
the change from level 1 to 2 is much much bigger than from level 9 to 10.
now how do we fix this?
windows has the same problem and a nice dude wrote a script that rebuilds the table with a better curve. i found the part that holds the table in android source code and i need ur help to import the fixed table.
it's just copy and paste! i'm not a dev so im not sure what values are correct.
here is the scripts that creates the table (no download needed)
((XDA WONT LET ME POST LINKS LOL))
google " logarithmic volume control curve generator"
its the first link.
here is the table in android source code:
git://android.git.kernel.org/kernel/common.git›
sound›
oss›
opl3.c
LINE: 332
thx!

[Q] Optimizing autobrightness values (tresholds)

Is there a way I can easily edit values for autobrightness levels and tresholds?
Any of the settings all the ROMs are using does not fit for me so I imagine there is a file where you can easily edit these values and set your own.
Where is this file located?
How to edit this file?
Thanks you all.

Is it posible to have transparent dialer

hello developers
im just trying to have transparent dialer skins on my phone...i have created the transparent buttons but its not showing up when placed...i have also tried to change the value of transparency in reg... all the places where there is phone option and the transparency value...maybe a combination of 15 to 25 values but nothing works...i have only seen this in android and windroid but coudint find any thing for wm...is it posible to have the dialer transparent...or im doing some thing wrong...or im in a wrong place...i guess dialer skins too comes under theams..this is what i get...does any one have a solution
thx anyway
anyone out there
is there any one out there to help me figure out it
i see what you are trying to do.....i dont think much help i can give~
but i think the only way u can manage to do is by doing the fake transparency effect..~
use the image that looks like transparent button for that background
n btw, pretty nice dialer...what is that dialer..?
looks like winmo stock dialer but got video call...O.O
yes i have the cab but
yes i have that fake dialer cab but dont want a fake one...i think it is possible but need some time...because while checking for how to enable by reg i found two more things...one is advance audio control from which u can enable 3D and bass tribles and extra bass on ur phone which is quite good compared to default settings for me.... i got a good sony inear walkman headphones which provide nice bass efect...by enabling the 3d effect i get a good efect now....other one is open/close animation which works for any thing from bootscreen to shutdown but its quite not like a 3d efect which animates like the screen is acqualy closing and opening in a zoom manner...thx for ur reply
Let us know of those extra sound settings and ways to enable them.
audiocontrols
use any regedit go to HKEY_CURRENT_USER >controlpanel >audioadvcontrl
here u may find 3d,agcenable,bass,hpvol,receivervol,reclevel,supperbass,toneenable,treble...
3d,bass,supperbass,treble r set to 0 value by default....which ever u like to enable change the value to 1..softreset...i found that the audio is some what better for me..i dont know what is ur taste so dont blame me if it dosent work for u.......if u want to take a look at the open /close animation go to youtube type my channel name (mhkhan92)u will find a video named with open/close animation...if u want to enable it i have given the instructions in the description....

Edits and Tweaks: Build prop, bools.xml

build.prop edits are very easy and useful, they can be applied on stock rom/kernel, i have compiled this from various sources!
For ICS, most of these will be useless
Locate build.prop
got to system/ and find build.prop
Edit with notepad++. Save and overwrite previous file, then change permissions to rw,r,r!
Change the tweaks already present and add new at the end of file!
Change android name and version
ro.build.display.id=Your ROM name
ro.build.version.release=2.3.6 (Android version number)
Decrease boot time
debug.sf.nobootanimation=1 (Disables bootanimation)
ro.config.hw_quickpoweron=true
persist.sys.shutdown.mode=hibernate
dev.bootcomplete=0
Power saving
ro.ril.power_collapse=1
pm.sleep_mode=1
wifi.supplicant_scan_interval=120 (sets wifi scanning interval, can be increased or decreased)
ro.mot.eri.losalert.delay=1000 (might break tethering)
3G Tweaks
ro.ril.hsxpa=2
ro.ril.gprsclass=10
ro.ril.hsdpa.category=10
ro.ril.hsupa.category=5
ro.ril.enable.a53=1
ro.ril.enable.3g.prefix=1
ro.ril.hep=1
ro.ril.enable.dtm=1
ro.rill.enable.a53=1
Telephony/ring Tweaks
ro.telephony.call_ring.delay=0
ring.delay=0
Proximity (Disable blackscreen issue after call)
mot.proximity.delay=0
ro.lge.proximity.delay=25
Smooth Scrolling
windowsmgr.max_events_per_sec=84(This value is experimental)
ro.max.fling_velocity=12000
ro.min.fling_velocity=8000
Disables error reports
profiler.force_disable_err_rpt=1
profiler.force_disable_ulog=1
Force home launcher into memory(use light launchers only)
ro.HOME_APP_ADJ = 1
Render UI with GPU
debug.sf.hw = 1
Disable logcat
logcat.live=disable
dalvik.vm.heapsize = 64m
Note: This value is different for different phones, the value can larger(128m) with larger RAM device, use accordingly!
Phone will not wake up from hitting volume rocker
ro.config.hwfeature_wakeupkey=0
Change LCD density
ro.sf.lcd_density=160
Allows purging of assets to free up RAM
persist.sys.purgeable_assets=1
Locate bools.xml
1. Decompile framework-res.apk
2. Go to res/values and find bools.xml
The file generally contains true and false values for various things, change true->false and false->true to see the magic!
config_sf_slowBlur
Blurred background when power menu comes up
config_automatic_brightness_available
Enable/disable automatic brightness
config_unplugTurnsOnScreen
Screen turns on after unplugging usb
config_animateScreenLights
Keep "true" for CRT OFF animation
config_disableMenuKeyInLockScreen
Disable hard key in lockscreen
lockscreen_isPortrait
Lockscreen in potrait/landscape mode(experimental)
config_batterySdCardAccessibility
Indicate whether the SD card is accessible without removing the battery.
config_carDockEnablesAccelerometer
Control whether being in the car dock should enable accelerometer based screen orientation.
config_deskDockEnablesAccelerometer
Control whether being in the desk dock should enable accelerometer based screen orientation.
skip_restoring_network_selection
If restoring network selection should be skipped The restoring is handled by modem if it is true.
Thanks for this. I have seen these tweaks before but its really nice to have an explanation.
Sent from my SGH-T989D using Tapatalk 2
cwillison94 said:
Thanks for this. I have seen these tweaks before but its really nice to have an explanation.
Click to expand...
Click to collapse
There are a lot of threads on the subject, but would Google any before using them as some work better on other devices or they don't do anything at all.
XperienceD said:
There are a lot of threads on the subject, but would Google any before using them as some work better on other devices or they don't do anything at all.
Click to expand...
Click to collapse
Yes, scrolling speed, vm heapsize, lcd density etc are different for devices!
Sent from mass relay
No point of putting CRT off animation there....
js2892 said:
Allows purging of assets to free up RAM
persist.sys.purgeable_assets=1
Click to expand...
Click to collapse
can u please explain this in details..
thanks
Sent from my GT-S5830i using xda app-developers app
srt99 said:
can u please explain this in details..
thanks
Sent from my GT-S5830i using xda app-developers app
Click to expand...
Click to collapse
allows system to free ram by klling unused assets(programs) !
I once tried to change my phones model via build prop using the same method you wrote up and my phone bootlooped.
Im on n2 sgh-i317.
I fixed it but was wondering what I could have done wrong. Im slowly inching towords getting my feet wet in learning aboutvrom making. Nice thread btw.
freakboy13 said:
I once tried to change my phones model via build prop using the same method you wrote up and my phone bootlooped.
Im on n2 sgh-i317.
I fixed it but was wondering what I could have done wrong. Im slowly inching towords getting my feet wet in learning aboutvrom making. Nice thread btw.
Click to expand...
Click to collapse
u mean the android version or the phone name...
well, irrespective of that, it's quite weird that build.prop edit lead to bootloop...I've edited these things many times and worked normally for me..
if you know how to read logcat etc, u can get a logcat try that to point out the reason for the same!
Thank you, It would be usefull for me.
Thank
Thank u for this post. I will test on my devices.
Before posting things like this, I highly recommend reading this and this just so you know what works and what does nothing (hint: a lot of the tweaks don't work)
pandaball said:
Before posting things like this, I highly recommend reading this and this just so you know what works and what does nothing (hint: a lot of the tweaks don't work)
Click to expand...
Click to collapse
Well, i've read this earlier but forgot to mention about this in OP (i'm still on a GB phone)
Thanks for pointing out, i've edited the OP.
For GB, i've tested them and they work like a charm( with exceptions for some phones).
Thanks for this!
Good Job
Okay
Thanks a lot
Hlpful to me and will be for noobs like me
Really helpful. Should have pressed thanks twice if that was possible
Thanks you
Shadman0 If I help U Pls Give Thanks
My Work http://forum.xda-developers.com/showthread.php?t=2521867
Yea great thread I also am learning android development thanks to you guys. It's cool to know how to modify my devices to my liking.
Sent from my GT-N7105 using Tapatalk

Minimum Volume too high

Hey guys,
well known topic, but I'm still left with questions.
I go with ARHD and Sense (Android 4.3 and Sense 5.5 atm, 4.4 KK might be soon) and the minimum volume levels are too loud IMHO (regarding my taste), therefore I want to readjust them or have to increase the number of volume steps as this also redefines the array and the fraction of each step.
I use ZeroInfinity's PureXAudio (now ProjectEra) if that counts. Also Xposed framework.
I'm aware of Volume steps mod (HTC One) and I checked {Mod & Tuto} 30/45 Steps Volume Project (framework.jar), so I might do editing hex-values soon.
1. can I readjust the volume levels to my needs somewhere, if this is the simpler way: step x [1-15] - level y [0-1] (e.g.) ?
2. does changing the number of steps definitly means changing framework.jar? best file, best approach. If so I will go for it..
3. does sth. has to be taken into account, sth. changed with 4.3 or KK 4.4, or Sense 5.5,.. someone told about the master-volume with 4.2.2 (http://forum.xda-developers.com/showpost.php?p=47668094&postcount=310)?
Thanks for helping !
edit: details
Volume step mods are completely broken in 4.3 and onwards. Jonny has already explained everything you need to know, the master volume is locked at 15 steps of volume, no more no less. Whilst you CAN get 30 steps, you'll only have 15 volume changes meaning the volume will simply go up like this
1-1-2-2-3-3-4-4-5-5-6-6-7-7-8-8-9-9-10-10-11-11-12-12-13-13-14-14-15-15
30 Steps, only 15 volume changes. A shame really
Thx Galactus.
Hmmm, if the known mod is resulting in 15 levels at the end there must be some different, maybe additional place (lines in the code, file,..) where to modify an array, a number, levels,..
We have to find the hole where to put the dynamite..
xfish said:
Thx Galactus.
Hmmm, if the known mod is resulting in 15 levels at the end there must be some different, maybe additional place (lines in the code, file,..) where to modify an array, a number, levels,..
We have to find the hole where to put the dynamite..
Click to expand...
Click to collapse
Indeed we do lol, but I am not skilled in that area and I have no idea if any devs can, or will attempt to fix it
http://forum.xda-developers.com/showthread.php?t=2565559

Categories

Resources