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

Could not re-enable dev mode (XperiaX and Jolla phone) [Solved] [answered]

asked 2019-10-28 13:59:45 +0200

objectifnul gravatar image

updated 2019-10-28 17:17:59 +0200

Sorry, I'm creating a new question for this old issue, as old solution doesn't work anymore.

Could not re-enable dev mode again (same issue with XperiaX and Jolla phone)

XperiaX: SFOS 2.2.0.29 Mouhijoki

Jolla phone: SFOS 3.1.0 Seitseminen

After having temporarily disabled dev mode before someone else uses my phones, I couldn't re-enable it (won't do that again in the future, for sure).

In Jolla settings-dev mode: progress bar "checking status" displayed for more than 10 minutes, then security code asked for dev mode enabling, then "accept" page, then... nothing (endless static progress bar saying -or not- "installing dev mode")

Of course, no sfos-upgrade or version --dup, as devel-su isn't available.

According to some old topics on similar issues, the culprit could be openssh, so I tried to uninstall it.

With Storeman: Two versions of openssh are shown as "installed" : (i) from NielDK and (ii) from lashs0r, although I never installed the lashs0r version (repository not enabled). Could not uninstall openssh (with or without NielDK repo enabled): endless process.

From terminal: Could not execute pkcon remove openssh => fatal error - this would break your system

pkcon install jolla-settings-sailfishos fails: fatal error - failed to obtain authentication

Tried to disable/enable my jolla account. It didn't help.

Any suggestion?

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by objectifnul
close date 2019-10-28 17:34:55.195025

2 Answers

Sort by » oldest newest most voted
1

answered 2019-10-28 14:18:34 +0200

Sé Zuo gravatar image

updated 2019-10-28 18:17:17 +0200

objectifnul gravatar image

You can use recovery mode to access the shell as root and repair from there : https://jolla.zendesk.com/hc/en-us/articles/204709607-Jolla-Phone-How-to-use-Recovery-Mode

edit flag offensive delete publish link more

Comments

Once the phone is set to recovery mode and shell is displayed, what would you suggest? version --dup?

Edit: will try Louis' idea tonight.

objectifnul ( 2019-10-28 14:30:43 +0200 )edit
1

answered 2019-10-28 16:47:38 +0200

objectifnul gravatar image

updated 2019-10-28 18:16:17 +0200

Solution? Long story anyway:

https://together.jolla.com/question/89476/cannot-re-enable-developer-mode/?answer=190108#post-id-190108 (rewritten by objectifnul, including some English statements translated from French)

While trying to reinstall developer mode I got a warning that a lot of packages had to be downgraded so I ended up solving this problem by doing this:

  1. Entered developer mode by following this: https://jolla.zendesk.com/hc/en-us/articles/360002996893

  2. Running chroot /rootfs as described in the guide above

  3. Setting a root password by running passwd root while in chroot

  4. Rebooting the phone and installing fingerterm in from Storeman/Openrepos

  5. Issuing these commands in terminal:

    su (this is the key moment when you become root) pkcon refresh

    Louis' suggestion worked well so far, but not further:

    pkcon install zypper (fails, but zypper was already installed)

    zypper install jolla-developer-mode jolla-settings-system-developermode (fails)

    As zypper fails, I entered version --dup instead, after having checked OS release with ssu s Wait for a very long time (one hour or so): refreshing cache, updating list of packages, getting system updates, checking changes... Ends up with an error message I couldn't copy, plus call for reboot

  6. Reboot

  7. Enable developer mode (fails again, after a long "checking status" progress bar, then a static no-progress bar saying "setting up changes")

Trying this after reboot:

Disable all patches then su then zypper install jolla-developer-mode (with answer 'yes' to quit running packagekit)

A bunch of downgrade proposals appears, accept them or ignore if no better choice.

Reboot again.

Re-enable patches, go to Utilities, restart home screen.

Go to jolla settings-developer mode : YESS! dev mode is enabled again.

edit flag offensive delete publish link more

Comments

Mark as solved ^^

Sé Zuo ( 2019-10-28 17:04:25 +0200 )edit

I admit it's solved, at least for me and for Xperia X. Not sure it's the best workaround for everyone though. An official solution from Jolla system team would be welcome.

objectifnul ( 2019-10-28 17:20:46 +0200 )edit

I also restored my Jolla phone, with a slightly different method, just using 'su' in the recovery shell to (i) set the root password and (ii) reinstall jolla-developer-mode. Maybe this simple method would also work for the Xperia.

objectifnul ( 2019-10-29 09:58:26 +0200 )edit

Question tools

Follow
2 followers

Stats

Asked: 2019-10-28 13:59:45 +0200

Seen: 283 times

Last updated: Oct 28 '19