Page 1 of 1

Screen rotation

Posted: 18 May 2016 16:51
by LED
Hi Martin.
The screen rotation action is simply amazing. It does what some dedicated apps can't.
It makes the entire phone being able to rotate in all directions and this is what I wanted. It rotates the launcher, the lock screen and even the settings app.

I wonder if there is a system file where I could edit so I could have this rotation set permanently in lollipop 5.1.1

I have added every line you can think of in my build.prop but it simply doesn't work.

How did you achieve this. What code do you use? It is like magic to me.



Thanks

LED

Re: Screen rotation

Posted: 19 May 2016 19:20
by Martin
Hi,

This is nothing that can be achieved with a system setting to my knowledge. Automagic displays an invisible small window (overlay) on top of everything else that specifies that the device can be rotated in whatever direction you set. Since the window is shown on top, it takes precedence over regular apps. Please note that this can sometimes lead to crashes in apps when an app would like to force landscape mode but Automagic overrides it with portrait mode.

Regards,
Martin

Re: Screen rotation

Posted: 20 May 2016 07:45
by LED
Thanks for the answer.
I'm not sure I understood the overlay window idea or how it works, but I understand now that I cannot achieve this by changing files like build.prop or via command line.

I suspected AM was doing something "special".

The only app that behaves funny with me is the camera so I made a flow that turns it off when the camera is launched.

Thanks again.

LED

Re: Screen rotation

Posted: 21 May 2016 12:46
by Bushmills
You could have a look at the Xposed framework, and the app "toggle force landscape" running under it. Though having Xposed for no other reason than forcing screen rotation may be a bit overkill.

Re: Screen rotation

Posted: 22 May 2016 10:40
by LED
Thanks for the suggestion. I have Xposed anyway so I'll have ago again (I have already tried this module in the past). What I want is to control the rotation from the stock rotation toggle, but when it is on the rotation is full sensor, when it is of then it is locked wherever I left the phone prior to toggling it.

I'll test and let you know, but I have the feeling automatic is the best only one that can keep full rotation even on the lock screen.

Thanks