Hi everyone,
Disclaimer: I’m not an Android expert. The following is a summary of a troubleshooting session that I compiled together with an AI assistant. All command outputs are from my own Fairphone 5. The AI only helped structure the investigation and interpret the results.
Environment
Fairphone 5
LineageOS 23.2 Nightly
Bootloader unlocked
Clean installation
Format Data performed in Lineage Recovery
No Google Apps / No Google account
Symptoms
Two seemingly unrelated issues occurred after installation.
- Unable to set a PIN or fingerprint
Running
adb shell locksettings set-pin 1234
returned
java.lang.SecurityException:
Cannot change credential while factory reset protection is active
Fingerprint setup also failed because no device credential could be configured.
- APK installation blocked
Both F-Droid and Aurora Store reported:
Can’t install packages while in secure FRP
Investigation
dumpsys persistent_data_block showed:
FRP state: true
Enforcement enabled: true
Has FRP credential handle: true
while
adb shell dumpsys device_policy
showed:
no Device Owner
no Work Profile
no Device Admin restrictions
The bootloader was unlocked:
fastboot getvar unlocked
unlocked: yes
Attempting
fastboot erase frp
failed because the partition is protected:
FAILED (remote: ‘Erase is not allowed for Critical Partitions’)
Solution
Boot into Lineage Recovery.
Select:
Advanced
→ Enable ADB
Verify ADB:
adb devices
should show
xxxxxxxx recovery
Open a shell:
adb shell
Run:
wipe-frp
Reboot.
Verification
After reboot:
adb shell dumpsys persistent_data_block
now reports
FRP state: false
Has FRP credential handle: false
After that:
adb shell locksettings set-pin works again.
Fingerprint enrollment works.
Aurora Store installs apps normally.
F-Droid should also work again.
I hope this helps someone else who runs into the same issue after installing LineageOS on the Fairphone 5.