You don't have to jailbreak some Android devices, namely the Google devices (provided you didn't buy them from a carrier).[1] They are designed to allow alternate firmware.
Instructions for installing alternate firmware : https://grapheneos.org/install/web