We have moved to a new Sailfish OS Forum. Please start new discussions there.

Defender App stops Xperia 10 from booting

asked 2019-11-21 23:48:47 +0200

inta gravatar image

updated 2020-02-05 11:16:37 +0200

nephros gravatar image

Did anyone of you succeed installing defender on Xperia 10 and rebooting the phone after that? I just reflashed Sailfish X numerous times to figure out why the device stops booting and I think I have tracked it down to the defender app.

edit retag flag offensive close delete



Would be great if you could get somehow an error output. The only thing that comes to my mind would be the activation of SELinux that could cause this software to fail. Though it should not stop the device from booting completely.

leszek ( 2019-11-22 02:43:05 +0200 )edit

Where would you expect the error output? I don't think there will be any error on installation, otherwise that would already fail. After reboot I have no chance to get into the phone, it's completely dead and only the fastboot mode works to get it back to live. I could start a shell from the recovery, but I do not know where to search for a meanful error message.

inta ( 2019-11-22 09:29:02 +0200 )edit

Same here. Defender completely broke my SailfishOS installation on my Xperia 10 Plus single SIM

ferlanero ( 2019-11-23 02:12:08 +0200 )edit

same here with Xperia 10+ double sim and 3.2.1

pat_o ( 2019-12-30 17:01:39 +0200 )edit

I can't remember exactly how off the top of my head, but when developing a SFOS ROM you can debug boot by connecting your phone to your computer via USB. If I remember rightly, the device is presented as USB serial. This holds true all the way through kernel startup until it starts loading services. At that time it switchs to the default USB connection state so you continue the debuggjng process via SSH using something like journalctl.

Sorry this isn't exact, but it should point you in the right direction for debugging it. You'll find details in the manual for building SFOS.

ksandom ( 2020-01-07 00:34:32 +0200 )edit

2 Answers

Sort by » oldest newest most voted

answered 2020-02-02 22:59:14 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2020-02-03 09:54:58 +0200

nephros gravatar image

To get the phone booting again (without reflashing), I did this:

  1. go into Recovery Mode as described here, especially chapter 2.1 https://jolla.zendesk.com/hc/en-us/articles/360002996893-Xperia-X-devices-How-to-use-the-Recovery-Mode (Side note: make sure the USB cable you're using it the same you were using to flash. Some cables have the effect of fastboot mode not activating and the phone starting into the normal boot.)
  2. at the recovery menu, select SHELL
  3. your root filesystem should be mounted at /rootfs per default, check that it really is. Mount it manually if necessary.
  4. do chroot /rootfs /bin/bash
  5. after successful chroot , rpm -e harbour-defender to uninstall the app. It will detect a chroot and not perform some steps (not sure which ones), but reverting the file changes should suffice.
  6. exit the chroot with Ctrl-D.
  7. exit the recovery shell with Ctrl-D.
  8. back at the recovery menu, select the REBOOT option.

    (Because there is no dbus/systemd available in a chroot or recovery mode, pkcon can not be used to uninstall things, so we use rpm directly here, which normally is NOT recommended.)

edit flag offensive delete publish link more


On my system with Arch Linux, I have not been able to connect through telnet, but via putty. YAY!

ds1979 ( 2020-04-02 21:53:30 +0200 )edit

Thank you for this answer. As a humble carpet cleaner I really needed this step-by-step action.

FLM76 ( 2020-07-28 04:09:17 +0200 )edit

answered 2020-06-10 16:42:12 +0200

erikderzweite gravatar image

Did just test with Xperia X, worked like a charm!

edit flag offensive delete publish link more


With encryption enabled? Like fully encrypted with lock code? That's not what we've observed

Sthocs ( 2020-06-11 00:22:58 +0200 )edit
Login/Signup to Answer

Question tools



Asked: 2019-11-21 23:48:47 +0200

Seen: 1,803 times

Last updated: Jun 10