Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
xan
Old
(Last edited by xan; 13th February 2011 at 11:46 AM.)
#1  
xan's Avatar
Recognized Developer - OP
Thanks Meter 447
Posts: 1,390
Join Date: May 2006
Location: Crack-ow

 
DONATE TO ME
Default [MOD] Tuned auto-rotation for JS3/5

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:
Code:
android\view\WindowOrientationListener$SensorEventListenerImpl.smali
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/v...ener.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 :P 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.
Feeling like translating something? here you go
Voltage Control Lite/Extreme 4.9.8 *Siyah support + Profiles + Widget + CPU history*: -> Take control of your OC/UV for Galaxy S OC kernels. Android Market / YAAM
ExTweaks / ExTweaks Plus 0.20 *Universal Tweaks Interface frontend for Siyah kernel*

14apr: [Froyo]Insane OC/UV kernel K13E
What is your OC result?
The Following 6 Users Say Thank You to xan For This Useful Post: [ Click to Expand ]
 
astralmaze05
Old
#2  
astralmaze05's Avatar
Member
Thanks Meter 1
Posts: 66
Join Date: Aug 2010
Location: Toronto

 
DONATE TO ME
let me try
XPERIA PLAY
-ROOTED-
Firmware:2.3.4
Baseband:7X30A-AAABQMAZM-1290_14-10
Rom:UK GENERIC

Samsung Galaxy S i9000
-ROOTED-
Firmware:4.0.3
Baseband: JV3
Rom: ICS PORT

Acer Iconia A500
-ROOTED-
Firmware:3.2.1
Rom:FLEXSTRIKER
 
astralmaze05
Old
#3  
astralmaze05's Avatar
Member
Thanks Meter 1
Posts: 66
Join Date: Aug 2010
Location: Toronto

 
DONATE TO ME
not working for me
XPERIA PLAY
-ROOTED-
Firmware:2.3.4
Baseband:7X30A-AAABQMAZM-1290_14-10
Rom:UK GENERIC

Samsung Galaxy S i9000
-ROOTED-
Firmware:4.0.3
Baseband: JV3
Rom: ICS PORT

Acer Iconia A500
-ROOTED-
Firmware:3.2.1
Rom:FLEXSTRIKER
 
xan
Old
(Last edited by xan; 10th February 2011 at 12:46 AM.)
#4  
xan's Avatar
Recognized Developer - OP
Thanks Meter 447
Posts: 1,390
Join Date: May 2006
Location: Crack-ow

 
DONATE TO ME
You mean? Bootloop/no changes?
I need some feedback;
Is this working for you?
Do you like it?
It might be slipstreamed into all current ROMS, you just need to encourage ROM developers to do so
Feeling like translating something? here you go
Voltage Control Lite/Extreme 4.9.8 *Siyah support + Profiles + Widget + CPU history*: -> Take control of your OC/UV for Galaxy S OC kernels. Android Market / YAAM
ExTweaks / ExTweaks Plus 0.20 *Universal Tweaks Interface frontend for Siyah kernel*

14apr: [Froyo]Insane OC/UV kernel K13E
What is your OC result?
 
astralmaze05
Old
#5  
astralmaze05's Avatar
Member
Thanks Meter 1
Posts: 66
Join Date: Aug 2010
Location: Toronto

 
DONATE TO ME
Quote:
Originally Posted by xan View Post
You mean? Bootloop/no changes?
I need some feedback;
Is this working for you?
Do you like it?
It might be slipstreamed into all current ROMS, you just need to encourage ROM developers to do so
it didnt work at all nothing has change
XPERIA PLAY
-ROOTED-
Firmware:2.3.4
Baseband:7X30A-AAABQMAZM-1290_14-10
Rom:UK GENERIC

Samsung Galaxy S i9000
-ROOTED-
Firmware:4.0.3
Baseband: JV3
Rom: ICS PORT

Acer Iconia A500
-ROOTED-
Firmware:3.2.1
Rom:FLEXSTRIKER
 
xan
Old
(Last edited by xan; 10th February 2011 at 10:27 AM.)
#6  
xan's Avatar
Recognized Developer - OP
Thanks Meter 447
Posts: 1,390
Join Date: May 2006
Location: Crack-ow

 
DONATE TO ME
Sec gotta check update.zip :P
Was ina hurry yesterday.
Ok the update.zip was borked, replacing.
Feeling like translating something? here you go
Voltage Control Lite/Extreme 4.9.8 *Siyah support + Profiles + Widget + CPU history*: -> Take control of your OC/UV for Galaxy S OC kernels. Android Market / YAAM
ExTweaks / ExTweaks Plus 0.20 *Universal Tweaks Interface frontend for Siyah kernel*

14apr: [Froyo]Insane OC/UV kernel K13E
What is your OC result?
 
sathiere
Old
#7  
Member
Thanks Meter 4
Posts: 52
Join Date: Jan 2009
Hi xan. Good stuff, definitely an improvement over the factory settings.
Thanks for this. Flashing via CWM went flawless.
 
xan
Old
#8  
xan's Avatar
Recognized Developer - OP
Thanks Meter 447
Posts: 1,390
Join Date: May 2006
Location: Crack-ow

 
DONATE TO ME
thanks, I appreciate your feedback :)
Feeling like translating something? here you go
Voltage Control Lite/Extreme 4.9.8 *Siyah support + Profiles + Widget + CPU history*: -> Take control of your OC/UV for Galaxy S OC kernels. Android Market / YAAM
ExTweaks / ExTweaks Plus 0.20 *Universal Tweaks Interface frontend for Siyah kernel*

14apr: [Froyo]Insane OC/UV kernel K13E
What is your OC result?
 
hpowered
Old
#9  
Junior Member
Thanks Meter 0
Posts: 4
Join Date: Mar 2009
Default Same fix but on JS5

Hello.

Is there any chance to do same but on the JS5 framework?.


Thanks.
 
xan
Old
#10  
xan's Avatar
Recognized Developer - OP
Thanks Meter 447
Posts: 1,390
Join Date: May 2006
Location: Crack-ow

 
DONATE TO ME
Sure, will upload patched JS5 framework in few hours.
Feeling like translating something? here you go
Voltage Control Lite/Extreme 4.9.8 *Siyah support + Profiles + Widget + CPU history*: -> Take control of your OC/UV for Galaxy S OC kernels. Android Market / YAAM
ExTweaks / ExTweaks Plus 0.20 *Universal Tweaks Interface frontend for Siyah kernel*

14apr: [Froyo]Insane OC/UV kernel K13E
What is your OC result?

The Following 2 Users Say Thank You to xan For This Useful Post: [ Click to Expand ]
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Forums Added for the LG Optimus G Pro and Sony Xperia Tablet Z

Not too long ago, we talked about how Sony was continuing its AOSP efforts on … more

Permanent Screen Off for the Visually Impaired

Most of us take the simple act of waking up our devices and having a quick glance at the … more

App Analytics, or the Death of the Independent App Developer

This is entry number one in a series of articles about tools for app developers, … more

Serajr Power Toggles Brings Settings to the Small App World

Ever since the introduction of multi-window with things like Cornerstone and … more