Integrate unl0kr as an osk-sdl alternative
This issue is meant for discussing how unl0kr could be integrated into pmOS as an alternative to osk-sdl. This touches upon many different tools and repositories so I hope it's fine to put it here.
A preliminary unl0kr package and changes needed to make init.sh
agnostic of the unlocking program were implemented in !2687 (merged). There are several open questions though:
(1) init_functions.sh
still relies on osk-sdl for retrieving its configured font path to use it with charging-sdl. The latter is disabled at the moment (see #1064 (closed)) but will probably make a return at some point. To break the dependency, maybe charging-sdl could provide its own configuration file? Alternatively, I think there was also a charging-lvgl program. Not sure if that will replace charging-sdl at some point?
(2) How are we gonna make postmarketos-mkinitfs agnostic of the unlocking program? It currently is hardwired to bundle osk-sdl and its dependencies. Could these files be provided through hooks instead (similar to how /usr/bin/unlock
is provided in !2687 (merged))?
(3) How will users be able to select between osk-sdl and unl0kr when installing with pmbootstrap? Maybe the --fde
switch could take the unlocking package name as an argument? We could make the default/no-argument case select osk-sdl so that the interface remains backwards compatible.
(4) Do we have to do anything to support switching between osk-sdl and unl0kr after installing?
There are probably other aspects which I haven't thought about yet so I'm really looking forward to thoughts and opinions.