View Single Post
Old 11-06-2018, 08:54 PM   #5
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,804
Karma: 7025947
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
"Set swipe to unlock" patch

I have finished making a patch to enable/disable swipe to unlock on any device.

The hardest part was figuring out what actually controls whether the swipe to unlock is displayed (it's added/modified in many places). I eventually found it in a unnamed subroutine which instantiates the AbstractPowerView (which controls the widget for swipe to unlock). I then changed the device check and branch to allow me to choose whether it is enabled or not manually.

Spoiler:
Code:
Set slide to unlock:
  - Enabled: yes
  - Description: |
      Swipe to unlock is enabled by default for the Kobo Forma. This patch allows
      you to enable/disable swipe to unlock for any device.
    # In the subroutine where the AbstractPowerView (used for swipe to unlock) is instantiated:
    # change Device::isFrost() to a MOV instruction to set true/false
  - ReplaceBytes: {Offset: 0x9D9C9E, FindH: 3B F6 08 E1, ReplaceH: 4F F0 01 00}
  - ReplaceBytes: {Offset: 0x9D9CA0, FindH: 01, ReplaceH: 00} # 00 to disable, 01 to enable

Last edited by geek1011; 11-06-2018 at 09:19 PM.
geek1011 is offline   Reply With Quote