I can't write the % symbol when I restart the Jolla C2 on the Enter security code page

Hello,

I’ve set a passphrase for my security code on the settings menu when my phone was unlocked. After rebooting, I want to type my passphrase (password) but I realize that there is no “%” symbol on the keyboard.

What should I do?

Currently, I am stuck at the Enter security code page after rebooting. In fact, when the phone was opened, I was able to set my passphrase with the “%” symbol.

Thanks in advance for your help,

2 Likes

Do you see the keyboard icon on your screen, perhaps somewhere in the upper lefthand corner? That should work for toggling between numeric and a more complete keyboard.

Yes, I have already toggled it but unfortunately, the “%” symbol is not available on this keyboard…

Ok, must be a regional thing then. On my device the % symbol is available on the full keyboard after pressing the “?123” key once.

1 Like

You can boot the phone in recovery mode, and change the passphrase there.

Reboot the device with power key, hold down volume-up button when the phone vibrates, and then confirm with volume-down key. Connect the phone with USB to computer, and telnet to the address shown on the phone screen.

In the telnet recovery menu select option 3 “Shell”, enter your current passphrase, and then on the commandline enter command

cryptsetup luksChangeKey /dev/mapper/sailfish-home

It will first ask for your current passphrase, then for the new passphrase, and then to confirm the new passphrase.

After that type exit to get back in the menu and select 2 “Reboot device”.


And yes, this seems to be a bug. It should not allow setting a code that can’t be entered with the boot unlock keypad.

10 Likes

Did you test that when starting the phone at boot? For me it shows different keyboard than normally when the phone is on. I checked all the keaboards when the phone is on and all but Emojit keyboard seem to have %. Though I could not get % when starting the phone. My phone language is Finnish if that affects.

Thank you for your help!

I will explain more clearly what happened. Basically, I set a passphrase with the character “%” in the settings app. When rebooting the phone, at the first page “Enter security code”, the symbol “%” wasn’t available on the keyboard. As @Keto said, it must have been a bug because I was able to set the password with this character but not able to use it after a reboot.

Here are some pictures of the keyboard, showing no “%” symbol:

Moreover, when I wanted to use recovery mode and connecting to my different distros on Linux, I always get ”Access refused” with the telnet command. However, using the latest Windows 11 and not installing the Putty app, I was able to connect to the phone. I had only to enable Telnet with the Control Panel. From there, everything was smooth and worked as intended.

Again, thank for your fast reply and I hope to help you find more bugs X)

6 Likes

Oopsie. Indeed there was a small discrepancy in the lock code validation, new code accepted ‘%’ while missing on the bootup keyboard

I’ll adjust the new code validation to complain about this.

Thanks for reporting and sorry about the inconvenience!

8 Likes

Good thing you caught and reported this bug, @Elederly_87_90!

Would it be possible and/or sensible to include all the 7-bit ASCII characters in the bootup keyboard? According to Ubuntu Manpage: cryptsetup:

It is therefore highly recommended to select passphrase characters only from 7-bit ASCII, as the encoding for 7-bit ASCII stays the same for all ASCII variants and UTF-8.

1 Like

No worries! It’s a pleasure to help.

1 Like

Within possibilities but would need a second page of special symbols. Maybe not highest on my todo list though as the current subset should already provide quite a variety of lock codes.

2 Likes