Saturday, 24 October 2015

[DG800] RotationFix



Well, all users of the Doogee DG800 that are on Lollipop know of the rotation bug, where the device only rotates when in fullscreen mode.

I've examined the problem, and it seems that the accelerometer isn't registered as an orientation sensor, so only on fullscreen mode Android activates the accelerometer, I've tried to dig where the problem really is but (without the source) I'm not able to find it, and I guess it's something between the kernel and the accelerometer driver, if someone has some insight I'll be glad to know more about it.

So I've developed a service to run in the background and poll the accelerometer, and with some insight from @UndeadCretin I was able to force the orientation change.

As time for Android Development, and free development in general it's very short on my side, I've concentrated more on funcionality than looks as you'll find out when you look at it's UI. If I get some more time I may make the UI more friendly, but basically you won't look at it for long since there's only a service enable and disable button, and an option to enable or disable the autostart of the service at boot.

The service it's fine tuned for the DG800, but if theres interest and some contributions I may implement settings to adapt to other devices.

Bugs and suggestions as always are welcome.

Current version: V0.7
Initial release date: 24/10/2015

LINK COMMING SOON



No comments:

Post a Comment