Is your device changing its orientation to landscape way too quick?
If the answer is yes, read up, here is the solution.
I hate Froyo autorotation on Galaxy S.
It turns into landscape way too quick, even when I'm picking the device from the table.
Since there was no reaction from Samsung, I decided to fix this for them.
This involves decompiling framework.jar file, editing file:
I attached a modified file. I dont exactly know what changes there are, I modified some values at random 
For devs:
To be more serious, I decompiled SGS JS3 framework.jar and replaced WindowOrientationListener$SensorEventListenerImpl.smali from DesireHD's eViL-NXSense-HD-v.1.1_BETA (random pick). Having the right implementation of sensor listener i started to tweak it, changing some values.
If you want to tweak it further to your needs, focus on MAX_TRANSITION_TILT, MAX_TILT, PARTIAL_TILT constants.
(forgot to add) For a full reference: http://hi-android.info/src/android/view/WindowOrientationListener.java.html
Three files are attached to this post:
[rotation-fix]modified_JSX-CWM.zip - clockworkmod packages with fixed framework.jar, this is what an user needs
First boot after the update may take up to 5 minutes!
I do seem to have random errors due to firmware fragmentation. If you are a regular user and want this fix, you should rather ask your ROM developer for implementing it in his ROM, because at current state I cant guarantee if its compatible with ANY custom configuration.
auto_rotation_devs.7z original and recompiled framework.jar files form JS3/5 as well as original and patched smali.
//edit: lol accidently voted for front page
Just a blind click sorry 
On a second thought this might be interesting for more than SGS people, so maybe accident was not so bad.
If the answer is yes, read up, here is the solution.
I hate Froyo autorotation on Galaxy S.
It turns into landscape way too quick, even when I'm picking the device from the table.
Since there was no reaction from Samsung, I decided to fix this for them.
This involves decompiling framework.jar file, editing file:
Code:
android\view\WindowOrientationListener$SensorEventListenerImpl.smali
For devs:
To be more serious, I decompiled SGS JS3 framework.jar and replaced WindowOrientationListener$SensorEventListenerImpl.smali from DesireHD's eViL-NXSense-HD-v.1.1_BETA (random pick). Having the right implementation of sensor listener i started to tweak it, changing some values.
If you want to tweak it further to your needs, focus on MAX_TRANSITION_TILT, MAX_TILT, PARTIAL_TILT constants.
(forgot to add) For a full reference: http://hi-android.info/src/android/view/WindowOrientationListener.java.html
Three files are attached to this post:
[rotation-fix]modified_JSX-CWM.zip - clockworkmod packages with fixed framework.jar, this is what an user needs
First boot after the update may take up to 5 minutes!
I do seem to have random errors due to firmware fragmentation. If you are a regular user and want this fix, you should rather ask your ROM developer for implementing it in his ROM, because at current state I cant guarantee if its compatible with ANY custom configuration.
auto_rotation_devs.7z original and recompiled framework.jar files form JS3/5 as well as original and patched smali.
//edit: lol accidently voted for front page
On a second thought this might be interesting for more than SGS people, so maybe accident was not so bad.
Attachments
Last edited: