[SDK] Cannot install app to emulator 4.4.0.58: Installing untrusted software disabled

REPRODUCIBILITY: 100%
EMULATOR VERSION: 4.4.0.58
HARDWARE: sdk, emulator (Virtualbox backend)
UI LANGUAGE: en
REGRESSION: Yes

DESCRIPTION:

I am trying to build and deploy my application with these commands:

export PATH=$PATH:~/SailfishOS/bin/

sfdk config "no-fix-version"
sfdk config "target=SailfishOS-4.4.0.58-i486"
sfdk build --enable-debug

sfdk config "device=Sailfish OS Emulator 4.4.0.58"
sfdk deploy --sdk --debug

last command (deploy) is failing with:

...
Installing untrusted software disabled.
Installation failed
Connection to 10.220.220.1 closed.
Deploy failed

And this message is shown on screen:

Screenshot_20220410_112958

When I install older version of emulator and change device to Sailfish OS Emulator 4.3.0.12, deploy works correctly.

PRECONDITIONS:

Latest sdk and emulator

EXPECTED RESULT:

deploy is successfull

ACTUAL RESULT:

deploy fails

I cannot reproduce such an error with basic application. Can you? Also, can you reproduce it after resetting emulator to factory state? (Use Options > Sailfish OS > Emulator > Factory reset… inside the IDE)

Thank you @martyone , it fixed the issue for me. It is strange that it start appearing after upgrade of sdk, I thought that it reinstall whole image after every sdk update…

You are right. Maybe you got some configuration package picked up during dependency resolution, which was meant for real devices instead of the emulator. So you may also reproduce it again later. If that happens, I would suggest to compare the list of installed packages (sfdk emulator exec rpm -qa) prior to and after doing factory reset, which could give us a clue. It sounds like something to be improved.

2 Likes

I’ve tagged this as “pending” in case it recurs.