[SOLVED] Fairphone 5 – "Cannot change credential while factory reset protection is active" / "Can't install packages while in secure FRP"

Instructive post @Klappstuhl,
Welcome to the Fairphone users forum.

.

If you know the previous Gogol Account registred on the phone, you can

  • first also unlock critical partition
  • reinstall stock FairphoneOS,
  • log-in / log-out from the Gogol Account to remove the “Factory-Reset-Protection”

https://support.fairphone.com/hc/en-us/articles/10492476238865-How-to-unlock-or-lock-your-Fairphone-s-bootloader

https://support.fairphone.com/hc/en-us/articles/18896094650513-How-to-manually-install-Android-on-your-Fairphone

  • Then you will be able to run the LineageOS install process