[AOSP][CM][LP-MM] Knock Code Lockscreen (while screen on)

This Xposed module enables LG's knock code for Lollipop and Marshmallow devices . The knock code is highly customizable, from changing colours to visibility, error messages, background, etc. You can even hide the emergency button.

What's more, you can use codes to directly open specific shortcuts from the lockscreen, for example use 11212 to unlock, 221 to open WhatsApp, 111 for email, etc. These shortcuts don't have to be just apps, they can be anything on your device, like Direct Dial, open a specific Contact, etc. You even have the option to launch these shortcuts without unlocking the phone! (Requires App Settings Xposed, link available in app)

You need to enable PIN lock to activate this module Other than that, there are no specific instructions to use it. Should the module or Xposed be disabled for any reason, your phone will still remain secure with that PIN.

Compatibility :
I personally test on CM13, and I will support CM12.0, CM12.1, AOSP 5.x and 6.0.x and derivatives. HTC support is limited unless I find a tester. Support for other OEM ROMs is absent beyond basic working functionality.

The only caveat is because of the way Xposed works : your code(s) will be visible to any one or any app on your device. No root required. The codes are stored encrypted, but anybody determined to get them will be able to, provided they can lay hands on your device. One way to avoid this is to disable USB debugging to prevent chances of a local exploit.

Tags (ignore) : knock lock screen exposed xposed xda tuesday unlock tap full screen fullscreen lockscreen shortcut custom quick launch pattern pin protected pinned authentication dual two factor rijul ahuja

Author(s): 
Package: 
me.rijul.knockcode
Version name: 
1.4.9
Release type: 
Stable (low risk of bugs)
Download: 
Number of downloads: 
80,031 in total · 17 in the last 24 hours
MD5 checksum: 
9e20399648660d053d4d39ca96da5606
Uploaded on: 
Saturday, February 4, 2017 - 08:46
Changes: 

* Fixed Lollipop compatibility
* Fixed HTC compatibility
* More verbose logging

Version name: 
1.4.8
Release type: 
Stable (low risk of bugs)
Download: 
Number of downloads: 
35,341 in total · 1 in the last 24 hours
MD5 checksum: 
d853e951dd91b61217080ea9cb919749
Uploaded on: 
Sunday, October 30, 2016 - 21:54
Changes: 

* Remove relative tap options (beta only)
* Translation update
* Don't screw up pattern lock anymore
* Added dev mode (practically unlimited tries), to activate: adb shell touch /data/data/me.rijul.knockcode/files/dev_mode_enable

Version name: 
1.4.6 (beta)
Release type: 
Beta (some bugs to be expected)
Download: 
Number of downloads: 
1,389 in total · 0 in the last 24 hours
MD5 checksum: 
88c65bbca7a0f9063f886b92fd749988
Uploaded on: 
Wednesday, October 26, 2016 - 12:34
Changes: 

+ Added sensitivity option for relative taps

Version name: 
1.4.5 (beta)
Release type: 
Beta (some bugs to be expected)
Download: 
Number of downloads: 
351 in total · 0 in the last 24 hours
MD5 checksum: 
48f0f16bda78aeeefdc6a42c89ffb698
Uploaded on: 
Wednesday, October 26, 2016 - 01:49
Changes: 

+ Added relative tap location, similar to MaxLock
* Fixed related bugs pertinent to MainActivity
* Cosmetic change showing reset text until buttons released

Version name: 
1.4.4
Release type: 
Stable (low risk of bugs)
Download: 
Number of downloads: 
7,429 in total · 0 in the last 24 hours
MD5 checksum: 
985c40dfda47d0584743d49a38b842d3
Uploaded on: 
Monday, October 24, 2016 - 22:14
Changes: 

* Fixed bug which caused PIN to appear full screen when module was disabled
* Fixed rotation bug
+ Added translations from pull requests

Version name: 
1.4.3
Release type: 
Stable (low risk of bugs)
Download: 
Number of downloads: 
47,561 in total · 0 in the last 24 hours
MD5 checksum: 
b5b7052aeebff11a5d1b962aaab820f7
Uploaded on: 
Friday, July 29, 2016 - 17:38
Changes: 

+ Re-add CM support
+ Full screen does not require restart anymore

Version name: 
1.4.2
Release type: 
Stable (low risk of bugs)
Download: 
Number of downloads: 
28,980 in total · 0 in the last 24 hours
MD5 checksum: 
bb6fe72c7db3dcd33e140b78e4dbcfbf
Uploaded on: 
Saturday, June 11, 2016 - 11:41
Changes: 

- Now replaces PIN instead of pattern (prompt to switch to PIN has been removed)

Version name: 
1.4.1
Release type: 
Stable (low risk of bugs)
Download: 
Number of downloads: 
32,819 in total · 3 in the last 24 hours
MD5 checksum: 
facf117426a689c43922318d679244c9
Uploaded on: 
Wednesday, April 20, 2016 - 12:52
Changes: 

- Re-added Russian translation
- Added option to customize appear and disappear durations

Version name: 
1.3.9
Release type: 
Stable (low risk of bugs)
Download: 
Number of downloads: 
6,238 in total · 0 in the last 24 hours
MD5 checksum: 
f35e2ba42f989917def851c1e3941798
Uploaded on: 
Sunday, April 17, 2016 - 15:08
Changes: 

- Added option to wait for last dot animation
- Some Russian translations
- Minor UI fixes in the MainActivity

Version name: 
1.3.8
Release type: 
Stable (low risk of bugs)
Download: 
Number of downloads: 
3,153 in total · 0 in the last 24 hours
MD5 checksum: 
0892046f1402baccfc190f1efaad3623
Uploaded on: 
Sunday, April 17, 2016 - 12:39
Changes: 

- Made the appear animation a bit bolder
- Fixed up a few of the text appearance options
--Copying last changelog here so that it gets traction--
1. Updated Xposed API
2. Custom shortcuts can now be individually chosen to be launched over lock screen
3. Option for borderless button taps
4. Unified animation / appearance durations
5. Fine grained text control, you can now customize lockscreen text completely, including custom text
6. Option to hide emergency button background
7. Maximum length of code is now 12
8. Closer to AOSP appear and disappear animations
9. Polish translations
10. Added SmartUnlock from GravityBox (now you can choose to directly show the lock screen contingent upon notification state)

Version name: 
1.3.7
Release type: 
Stable (low risk of bugs)
Download: 
Number of downloads: 
2,258 in total · 0 in the last 24 hours
MD5 checksum: 
09531352c179f53f905a39b8ab0230a5
Uploaded on: 
Sunday, April 17, 2016 - 02:07
Changes: 

- Added SmartUnlock from GravityBox (now you can choose to directly show the lock screen contingent upon notification state)
--Copying last changelog here so that it gets traction--
1. Updated Xposed API
2. Custom shortcuts can now be individually chosen to be launched over lock screen
3. Option for borderless button taps
4. Unified animation / appearance durations
5. Fine grained text control, you can now customize lockscreen text completely, including custom text
6. Option to hide emergency button background
7. Maximum length of code is now 12
8. Closer to AOSP appear and disappear animations
9. Polish translations

Version name: 
1.3.6
Release type: 
Stable (low risk of bugs)
Download: 
Number of downloads: 
1,181 in total · 0 in the last 24 hours
MD5 checksum: 
cc2e12213aa9c9bf207364730742622f
Uploaded on: 
Sunday, April 17, 2016 - 01:03
Changes: 

1. Updated Xposed API
2. Custom shortcuts can now be individually chosen to be launched over lock screen
3. Option for borderless button taps
4. Unified animation / appearance durations
5. Fine grained text control, you can now customize lockscreen text completely, including custom text!
6. Option to hide emergency button background
7. Maximum length of code is now 12
8. Closer to AOSP appear and disappear animations
9. Polish translations

Version name: 
1.3.5
Release type: 
Stable (low risk of bugs)
Download: 
Number of downloads: 
14,049 in total · 0 in the last 24 hours
MD5 checksum: 
867c065e02ee7e484cf982d6049cab2a
Uploaded on: 
Wednesday, March 30, 2016 - 13:50
Changes: 

- Fix fullscreen bug for some devices

Version name: 
1.3.4
Release type: 
Stable (low risk of bugs)
Download: 
Number of downloads: 
1,870 in total · 0 in the last 24 hours
MD5 checksum: 
09b0cbbf3858724a6f991e1ca48bb572
Uploaded on: 
Wednesday, March 30, 2016 - 11:38
Changes: 

- Replaced incorrect dots animation with shake animation
- Option to vibrate on error (does not work always, can anyone help?)
- Does not accept input after correct
- Text appearance of enter your code has been fixed now
- Will prompt to reboot after upgrade from next version

Version name: 
1.3.3
Release type: 
Stable (low risk of bugs)
Download: 
Number of downloads: 
4,660 in total · 0 in the last 24 hours
MD5 checksum: 
7437961db7a0c67288f44ec897efe581
Uploaded on: 
Saturday, March 26, 2016 - 11:41
Changes: 

- Fixed animation related stuff
- Added animation duration options, with priority
- Fixed emergency button text not hiding
- Added XposedMod.java's autoLoader
- Fixed lockout implementation on too many incorrect attempts

Version name: 
1.3.2
Release type: 
Stable (low risk of bugs)
Download: 
Number of downloads: 
1,108 in total · 0 in the last 24 hours
MD5 checksum: 
766dc467ba9f931209361c4c20bc4442
Uploaded on: 
Saturday, March 26, 2016 - 08:31
Changes: 

If you didn't update to >=1.3 previously, please uninstall before update
- Dots now animate up instead of down

Version name: 
1.3.1
Release type: 
Stable (low risk of bugs)
Download: 
Number of downloads: 
1,434 in total · 0 in the last 24 hours
MD5 checksum: 
da3cb88d1df5364e6e3ee3e588d192aa
Uploaded on: 
Friday, March 25, 2016 - 21:09
Changes: 

If you didn't previously update to 1.3.0, please uninstall your old version before updating.
- Better colour handling for dots
- Bugfix from incorrect dots implementation

Version name: 
1.3.0
Release type: 
Stable (low risk of bugs)
Download: 
Number of downloads: 
1,152 in total · 0 in the last 24 hours
MD5 checksum: 
ea54552e94307a96542a4d32124d97a1
Uploaded on: 
Friday, March 25, 2016 - 17:36
Changes: 

Completely remade, please uninstall old version!
- Size reduction
- Add option to launch shortcut without unlocking
- Add dots animation
- Translations removed

Version name: 
1.2.5
Release type: 
Stable (low risk of bugs)
Number of downloads: 
14,655 in total · 0 in the last 24 hours
MD5 checksum: 
494d7210cb2af9043ee5177f9a2998e5
Uploaded on: 
Tuesday, March 1, 2016 - 18:05
Changes: 

Please clear data of app because of new shortcut scheme
- Module now prompts for pattern if unset
- MOAR shortcuts (thanks @ CyanogenMod)
- Cosmetic changes
- Fix crash if launcher icon was hidden

Version name: 
1.2.4
Release type: 
Stable (low risk of bugs)
Number of downloads: 
2,884 in total · 0 in the last 24 hours
MD5 checksum: 
d33e4d27e5413a3de8af8bd8ac4b826b
Uploaded on: 
Monday, February 29, 2016 - 16:18
Changes: 

- Fix custom shortcuts bug

Version name: 
1.2.3
Release type: 
Stable (low risk of bugs)
Number of downloads: 
932 in total · 0 in the last 24 hours
MD5 checksum: 
bbe27015e89221b63d0e74b475c882d2
Uploaded on: 
Monday, February 29, 2016 - 14:42
Changes: 

- Added margin b/w dots and lines on lock screen
- You can now add other knock codes to launch apps directly (A la PIN/Pattern Shortcuts Xposed)
- Translation changes
- Long pressing the knock code in activities will now reset it

Version name: 
1.2.2
Release type: 
Stable (low risk of bugs)
Number of downloads: 
3,291 in total · 0 in the last 24 hours
MD5 checksum: 
7d3d451ece05c42f5a4800d2a0466279
Uploaded on: 
Saturday, February 27, 2016 - 12:43
Changes: 

- Translations (Polish by pantinPL, Mexican Spanish by Alan Yadir)
- Attempted to remove lag while locking and unlocking
- Animate the view when unlocking (not the old green animations, but from AOSP)
- If knock code is never set, module will not replace pattern even if switch is on
- Disabling emergency button in MainActivity will disable option below it

Version name: 
1.2.1
Release type: 
Stable (low risk of bugs)
Number of downloads: 
10,526 in total · 0 in the last 24 hours
MD5 checksum: 
0e0b662cde2694c74a3ec1a4690211d3
Uploaded on: 
Sunday, February 14, 2016 - 05:40
Changes: 

- HTC support
- Updated translations
- Process to be killed after setting changed now depends on device (com.htc.lockscreen vs com.android.systemui)

Version name: 
1.2.0
Release type: 
Stable (low risk of bugs)
Number of downloads: 
15,473 in total · 0 in the last 24 hours
MD5 checksum: 
ac29b852198a0b660ce2c847aa1517ac
Uploaded on: 
Tuesday, January 26, 2016 - 18:05
Changes: 

- Implemented failsafe option (five continuous long presses will kill the knock code)
- Still in BETA for HTC devices, because I don't have a tester
- Removed unused libraries from Gradle

Version name: 
1.1.8
Release type: 
Beta (some bugs to be expected)
Number of downloads: 
672 in total · 0 in the last 24 hours
MD5 checksum: 
a8a1ac00438f9c1c5a84f7d4f35cfee4
Uploaded on: 
Sunday, January 24, 2016 - 23:31
Changes: 

- Attempted HTC compatibility (untested, please report back with logs)

Version name: 
1.1.7
Release type: 
Stable (low risk of bugs)
Number of downloads: 
19,623 in total · 0 in the last 24 hours
MD5 checksum: 
1f420f18f7de616255097b6bc6a3a85f
Uploaded on: 
Wednesday, December 30, 2015 - 00:06
Changes: 

- Bugfix to prevent device lockout when too many incorrect attempts too many times

Version name: 
1.1.6
Release type: 
Stable (low risk of bugs)
Number of downloads: 
2,989 in total · 0 in the last 24 hours
MD5 checksum: 
57ccde27fa018249aa9d01df29b3ad06
Uploaded on: 
Tuesday, December 29, 2015 - 16:06
Changes: 

- Reimplemented KnockCode with buttons, faster now - ripple taps are now confined to boxes
- Added Brazilian Portuguese translations by Gabriel Campos
- Fixed issue with dots view where incorrect mode would still allow dots to be entered.

Version name: 
1.1.5
Release type: 
Stable (low risk of bugs)
Number of downloads: 
3,295 in total · 0 in the last 24 hours
MD5 checksum: 
fec38c532413f7f6b136d4cd99ff82bf
Uploaded on: 
Sunday, December 27, 2015 - 22:47
Changes: 

- Added red colour animation when pattern incorrect
- Fixed a hook so unlocking should be smoother now

Version name: 
1.1.4
Release type: 
Stable (low risk of bugs)
Number of downloads: 
1,869 in total · 0 in the last 24 hours
MD5 checksum: 
93ad7ddc5308ebaa889d947e40f6ed9e
Uploaded on: 
Sunday, December 27, 2015 - 22:47
Changes: 

- Issues with dots view fixed by using AOSP implementation (if you had issues with v1.1.3, this should fix it)
- Changed tap rectangle to material ripple

Version name: 
1.1.3
Release type: 
Stable (low risk of bugs)
Number of downloads: 
4,438 in total · 0 in the last 24 hours
MD5 checksum: 
fd5b0cb7bf729a5179c6d7f5f72aef1f
Uploaded on: 
Sunday, December 27, 2015 - 22:47
Changes: 

- Fixed possible ANRs when reloading settings by asking to reboot / restart systemui when settings are changed
- Added passcode dots view option on lock screen (with animations Ooooooooo)

Version name: 
1.1.2
Release type: 
Stable (low risk of bugs)
MD5 checksum: 
a30b4f168dfc45a53c295fd458e2bc92
Uploaded on: 
Sunday, December 27, 2015 - 22:47
Version name: 
1.1.1
Release type: 
Stable (low risk of bugs)
MD5 checksum: 
846064fac3b482b7c810b082b89ec03e
Uploaded on: 
Sunday, December 27, 2015 - 22:47
Version name: 
1.1.0
Release type: 
Stable (low risk of bugs)
MD5 checksum: 
044083afd3a0106e8521df2206685793
Uploaded on: 
Sunday, December 27, 2015 - 22:47
Version name: 
1.0.7
Release type: 
Stable (low risk of bugs)
MD5 checksum: 
2a66f1c5c5982b766d9ae6246cdb2460
Uploaded on: 
Sunday, December 27, 2015 - 22:47
Version name: 
1.0.6.2
Release type: 
Stable (low risk of bugs)
MD5 checksum: 
5b586bb9de19bdb4de23ad45b2ede95f
Uploaded on: 
Sunday, December 27, 2015 - 22:47
Version name: 
1.0.6.1
Release type: 
Beta (some bugs to be expected)
MD5 checksum: 
f609ab25955fe017c1ed8db76add6d8d
Uploaded on: 
Sunday, December 27, 2015 - 22:47