Hi, The sensors HAL is definitely where you should look to make these changes.
It should be a simple matter of swapping the values reported for x and y by the driver. (and/or reversing the signs) to get the 90degree offset in orientation right. The sensor-HAL for froyo being a single-file (Sensors.c) in either: - hardware\sensors\ or - device\<vendor>\<product>\sensors\ Just swap the vars accordingly for *ACCEL_X* & *ACCEL_Y* events in the *data_poll* function implemented in *Sensors.c* A little experimentation will give you the complete idea of how acceleration values determine the orientation. regards CVS -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting