#HowTo use 2 separate camera apps on #Android depending on if the phone is locked or not.
For the advanced hardware usage and mainly #jpegli compression I use #GoogleCamera on #GrapheneOS.
But that camera is very bloated and exposes a ton of attack surface that way.
Android asks twice which camera app to open when pressing the "double power button" shortcut, when locked and when unlocked. So you can set 2 different apps there.
This is not exposed in the settings and the dialog only appears after installing or uninstalling one of the possible camera apps.
As I had set #GCam as default apps on both invoking methods before, I quickly install #FossifyCamera, turn of the display, use the shortcut.
Android asks to unlock the screen, then the selection dialog appears.
I uninstall FossifyCamera again and do the same, dialog appears again, I select #GrapheneOSCamera there.
Done! Attack surface when screen is locked reduced.

