I’m currently in a bootloop : when I start my phone, I have first a screen indicating the bootloader is unlocked, then the fairphone splash screen for about 10s, and then a reboot.
Stable state before the bug :
I had a working ubuntu touch install in my fairphone 4.
Main candidate for the bug :
I decided to install waydroid. As the system partition did not have enough space :
I saved the /var/lib/waydroid content into /userdata/waydroid-data/waydroid-backup
I did sudo mount --bind /userdata/waydroid-data /var/lib/waydroid
As waydroid worked properly after that, I decided to make a systemd service to do the bind at startup. here is the systemd service file, saved in the waydroid-data-bind.service file.
After reboot, I encountered the current bootloop.
What I tried :
Using udb shell, I removed waydroid-data-bind.service, and restored /var/lib/waydroid from the backup.
I did a factory reset from the recovery menu.
I tried installing ubuntu touch again.
I tried installing android 15. The install script gave the following warnings : Warning: skip copying metadata image avb footer due to sparse image.
and : INFO: Trying to reset rollback index FAILED (remote: 'unknown command') fastboot: error: Command failed INFO: Did not reset rollback index. This is normal with older bootloader versions.
I saw fastboot getvar all could be usefull, here it is.
Thanks in advance for your help, and sorry for opening an umpteenth issue involving alternative os and bootloops…
AI says you run fastboot getvar all in fastbootd, is this possible? AI also says there are indications for the old A11 installtion is this correct? version-os:11 security-patch-level:2023-01-05 system-fingerprint: Fairphone/FP4eea/FP4:11/.../FP4K
AI also says better not trying with A15 but to flash A11 Version…
so as said those are AI ideas however maybe still helpful
Indeed, ubuntou touch’s install guide advises to downgrade to android 11 before installing, so after the bug occurred, I tried installing android 11 again, and that’s where the fastboot getvar all is from, sorry about that.
Following your advice, I installed android 11 again, here is a new version of fastboot getvar all to be sure it’s about my current system. I obtained it by typing the command on my computer while my phone displays the fastboot menu (edit : I’ve found visuals, it is the bootloader menu) (the one with START / Poweroff / Recovery mode / Restart bootloader on the top and some system info), I think it’s different from the fastbootd menu. (is it ?)
I have made a little bit of progress.
Out of curiosity, I tried installing lineage OS since the install method is different (fastboot flash vs adb sideload), and it actually booted all the way to the lineage loading logo (which I guess is better than the fairphone logo I was stuck on).
However, after 7 minutes the phone reboots.
I tried to look at boot logs using adb shell while on the recovery menu, but I could not find the pstore folder they are normally stored at (if I’m not wrong).
So any idea about how to get those logs, or how to solve the problem ?