[Source] Variable Size Pattern Lockscreen
For those who don't know, my pattern lockscreen modification has been merged into CyanogenMod 10.
This thread is designed to explain this modification so it can be enjoyed on more roms and devices.
I will also consider other lockscreen modification sugestions.
This addition is now in any CM10 based rom built after 09/01/2012 2:22
If you want to read about how or why I created this mod - continue reading post 1
If you want to implement this feature in your rom - skip to post 2
If you want to admire some screenshots - skip to post 3
Basic design process:
I finally learned how to compile android from source, so I figured I might as well start editing the source some.
Looking at my phone's lockscreen I thought, "Wouldn't it be cool if it was 5x5, it should be as easy as changing some 3s to 5s..."
I began with a lot of searches in the framworks/base folder.
I searched for the incorect pattern error message, found the localization file,
searched for the key, found the PatternUnlockScreen
and finally ended up with LockPatternView.java.
Any time I found 3 (or its variations) I replaced it with the variable PATTERN_SIZE.
3->PATTERN_SIZE, 2->PATTERN_SIZE-1, 9->PatternSize^2, etc
This allowed me to change the patterns appearance at compile time; however, it would only store a 3x3 pattern and could not be changed by a user.
These problems had me digging through LockPatternUtils and the android settings implementation.
Eventually I had a simi working setting (required restart) http://forum.xda-developers.com/show....php?t=1267420
Later, school kept me busy and CM9 came out removing my changes.
With the release of CM10 I decided to recreate the modification from scratch, this time with everything working correctly.
and remember use the THANKS
Retired: Samsung Captivate
Current: Samsung Galaxy S III
Glitch Updater App (Developed by yours truly)