[FIX][JB][CM10]How to Center Align the Lock screen and Answer screen in Jellybean
How to Center Align the Lock screen and Answer screen in Jellybean
All, I like most others have been really excited about the new CM10, 4.1.1 Jellybean ROMS. I however have been annoyed by the off centered lock screen unlock handle. As most of you know just about all of them are off. Well after many hours of looking through code I have found out how to center that unlock handle on the lockscreen as well as the incall answer screen.
Now the changes that need to be made have to be made per ROM, it is not just a simple flashable zip and boom you have it on any ROM. The changes have to be made in two files inside the "framework-res.apk" and the "Phone.apk". So because there are so many different JB ROMs out there I decided to just share the code I changed and where I changed it.
So if you have a ROM and want them centered for your users, or you are a user that knows how to de-compile an APK and re-compile it, then this is for you!
Files to change:
framework-res.apk - The file that needs to be edited is "keyguard_screen_tab_unlock.xml" this file can be found in framework-res.apk/res/layout Phone.apk - The file that needs to be edited is "incall_touch_ui.xml" this file can be found in Phone.apk/res/layout
If you do not want to find and change the code, here is a ZIP that has both files with code in them so that you can just replace them with your old ones. I am pretty sure it is the same across devices, but the rest of the APK's may not be so only replace these files.
I don't know if this works for all rom but I just flash the inverted mms 4.1 (contacts.apk) without the phone.apk and it works beautifully.
The only problem I have with the paranoid rom is when I change the "settings" to phablet or tablet I get the offset lockscreen slider. & my system keeps rebooting from time to time but that's something with paranoid I guess.
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?