This file is present into system/core/rootdir/ of your android build.
Which later goes into your targets root file system
On Jul 6, 2:37 pm, Venu <
venubyravar...@gmail.com> wrote:
> hi Rogério,
>
> Where is this init.rc is stored?
>
> thanks,
> Venu
>
> On Jul 2, 6:09 pm, Rogério de Souza Moraes <
rogerio.so...@gmail.com>
> wrote:
>
> > Hi,
>
> > I use this configuration in init.rc to set thedefaultdisplaytolandscape
> > mode. I use it in 2.1.
>
> > setprop ro.FSL_LANDSCAPE_MODE 1
>
> > Regards,
>
> > Rogerio
>
> > 2010/7/2 Venu <
venubyravar...@gmail.com>
>
> > > Thank you very much wylhistory, for your prompt response.
>
> > > I'll try to see how to fine tune this function to serve auto rotation
> > > along withportraitas home screen.
> > > If anyone else have any suggestions, plz let me know.
>
> > > Thanks,
> > > Venu
>
> > > On Jul 2, 3:43 pm, w wylhistory <
wylhist...@gmail.com> wrote:
> > > > Sorry,
> > > > in my device,it is inportrait mode in each application except the apps
> > > > that do not support it;
> > > > the fallback is that it will neverchangeto thelandscape;
> > > > if you want to responding to the sensor,you mustchangethe
> > > > function rotationForOrientationLw,
> > > > return the reverse rotation,I do not test it,you can try;
>
> > > > 2010/7/2 Venu <
venubyravar...@gmail.com>
>
> > > > > Thank you very much wylhistory.
> > > > > With your suggested changes i'm able to see home screen inPortrait.
> > > > > But when I'm seeing item list under settings,displayorientationis
> > > > > not rotating when I rotate the phone to either left or right sides,
> > > > > which was working prior to thischange.
> > > > > Any idea, how can I getdisplayorientationworking along with the
> > > > > home screen inportraitmode?
>
> > > > > thanks,
> > > > > Venu
>
> > > > > On Jul 2, 9:21 am, w wylhistory <
wylhist...@gmail.com> wrote:
> > > > > > in file
>
> > > frameworks/policies/base/phone/com/android/internal/policy/impl/PhoneWindowManager.java
> > > > > > function:
> > > > > > rotationForOrientationLw
> > > > > > return a direction of what you want;
> > > > > > *the red lines are mychange: (in eclair)*
> > > > > > */*added by wylhistory for test*/*
> > > > > > * Log.d(TAG,"the before switchorientation:"+orientation);*
> > > > > > * if(false){*
> > > > > > * /*above is added by wylhistory for test*/*
>
> > > > > > synchronized (mLock) {
> > > > > > switch (orientation) {
> > > > > > case ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE:
> > > > > > //always returnlandscapeiforientationset to
> > > > > >landscape
> > > > > > return mLandscapeRotation;
> > > > > > case ActivityInfo.SCREEN_ORIENTATION_PORTRAIT:
> > > > > > //always returnportraitiforientationset to
> > > > >portrait
> > > > > > return mPortraitRotation;
> > > > > > }
> > > > > > // case for nosensor meaning ignore sensor and consider
> > > only
> > > > > lid
> > > > > > // ororientationsensor disabled
> > > > > > //or case.unspecified
> > > > > > if (mLidOpen) {
> > > > > > return mLidOpenRotation;
> > > > > > } else if (mDockState == Intent.EXTRA_DOCK_STATE_CAR &&
> > > > > > mCarDockRotation >=
> > > > > > 0) {
> > > > > > return mCarDockRotation;
> > > > > > } else if (mDockState == Intent.EXTRA_DOCK_STATE_DESK &&
> > > > > > mDeskDockRotation >
> > > > > > = 0) {
> > > > > > return mDeskDockRotation;
> > > > > > } else {
> > > > > > if (useSensorForOrientationLp(orientation)) {
> > > > > > // If the user has enabled auto rotation by
> > >default,
> > > > > do
> > > > > > it.
> > > > > > int curRotation =
> > > > > > mOrientationListener.getCurrentRotation();
> > > > > > return curRotation >= 0 ? curRotation :
> > > lastRotation;
> > > > > > }
> > > > > > return Surface.ROTATION_0;
> > > > > > }
> > > > > > }
> > > > > > */*added by wylhistory for test*/*
> > > > > > * ** }*
> > > > > > * return Surface.ROTATION_90;/here you canchangeto any other
> > > > > > direction of your like;*
> > > > > > * /*added by wylhistory */*
> > > > > > *
> > > > > > *
> > > > > > *
> > > > > > *
> > > > > > 2010/7/2 Venu <
venubyravar...@gmail.com>
>
> > > > > > > Hi Dianne,
> > > > > > > Thank you very much for your quick response.
> > > > > > > Actually I'm working on development board where we have thedefault
> > > > > > >orientationset toLandscapeand am trying to make itportrait, for
> > > > > > > testing some of the new features.
> > > > > > > But as I do not know much internals of android, I'm stuck there?
> > > > > > > Can you plz elaborate a little bit more on where exctly I need to
> > > > > > >changethis dimensions reporting?
> > > > > > > It would be of more helpful, If you can point me to the files where
> > > > > > > android would refer for native dimensions.
> > > > > > > Thanking you again for your help.
> > > > > > > Venu
>
> > > > > > > On Jul 2, 1:54 am, Dianne Hackborn <
hack...@android.com> wrote:
> > > > > > > > Your driver needs to report its native dimensions in that
> > >orientation
> > > > > --
> > > > > > > > that is with width larger than height.
>
> > > > > > > > Because the standard platform has not been shipped this way,
> > > there
> > > > > may be
> > > > > > > > fixes you need to make in it for it to work correctly. For
> > > example
> > > > > > > > WindowManagerService.java at least at one time didn't fully work
> > > > > > > correctly
> > > > > > > > with a screen in thisorientation-- it would not use the correct
> > > > > > > rotations
> > > > > > > > on it.
>
> > > > > > > > On Thu, Jul 1, 2010 at 1:37 AM, Venu <
venubyravar...@gmail.com>
> > > > > wrote:
> > > > > > > > > Hi all,
>
> > > > > > > > > I'm trying tochangedefaultdisplayorientationof android on