If you own a phone or a tablets with Android 4.3 or 4.4, you may have noticed that the device lock screen does not support rotation.
The lock screen is always in vertical view and this is of course a problem. If you use a phone, you may not have noticed why the phones are usually kept upright, but if you have a tablet, you will surely have seen the bug. This behavior in tablets can be a problem as their owners use them in landscape mode most of the time. How can it be corrected? Easily.
If you have root access on your device, you can do the following tweak to enable lock screen rotation.
Open a file manager app on your Android device that supports root access to the file system. You can use it free application Total Commander for Android, or ES File Explorer.
Go to folder:
/system
There you will find one archive named build.prop. You will need to edit it, so open it with your preferred text editor. If you use Total Commander, it has its own built-in text editor.
Add the following line to the build.prop file
lockscreen.rot_override = true
Tip: Before adding the above line, check if the same parameter exists in the build.prop file, but with a value set to false. If it exists, then modify the existing line and do it: true
Now restart your device. The lock screen will work with the gravity sensor immediately after the restart.