Aliendalvik stops starting after upgrade to 4.0.1.48

REPRODUCIBILITY (% or how often): 100%
BUILD ID = OS VERSION (Settings > About product): 4.0.1.48
HARDWARE (XA2, Xperia 10…): Xperia-X
UI LANGUAGE: English
REGRESSION: (compared to previous public release: Yes, No, ?): Yes, in previous release worked (3.4.x.x)

DESCRIPTION: aliendalvik stops starting after upgrade to 4.0.1.48

PRECONDITIONS: stop aliendalvik service and try than to restart… it fails, also after reboot it doesn’t start fully…

STEPS TO REPRODUCE:

  1. reboot
  2. restart service => systemctl start aliendalvik ; check with systemctl status aliendalvik or journalctl -f

EXPECTED RESULT: working aliendalvik aka android

ACTUAL RESULT: aliendalvik doesn’t fully start and no working android support

ADDITIONAL INFORMATION:

(Please ALWAYS attach relevant data such as logs, screenshots, etc…)

I’ve upgrade to 4.0.?? and my android stopped working. A wiped the android part following the instructions on the Jolla website, but no success.

The following output a see during a start (and it looks like some symbol(s) / package(s) are missing):

Mar 08 11:58:35 XperiaXDualSIM systemd[1]: Starting Myriad Alien Dalvik…
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: ln: /data/misc/camera/camera: File exists
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: /data exists already
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: /data/dalvik-cache exists already
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: /data/app-private exists already
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: /data/app exists already
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: /data/data exists already
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: /data/misc exists already
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: /data/property exists already
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: /run/user/1000/alien/socket exists already
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: /run/user/1000/alien/ashmem exists already
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: /home/defaultuser/android_storage exists already
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: /storage/sdcard0 exists already
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: /cache exists already
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: /data/keystore exists already
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: -------------------------------------------
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: ANDROID_ROOT=/system
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: ANDROID_DATA=/data
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: DOWNLOAD_CACHE=/cache
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: ANDROID_ASHMEM_DIR=/run/user/1000/alien/ashmem
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: EXTERNAL_STORAGE=/storage/sdcard0
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: BOOTCLASSPATH=/system/framework/core.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework2.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/webviewchromium.jar
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: LD_LIBRARY_PATH=/system/vendor/lib:/system/lib:/vendor/lib:/system_jolla/lib:
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: ANDROID_LOG_TAGS=*:e
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: USER_APP=
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: HYBRIS_ANDROID_SDK_VERSION=23
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: -------------------------------------------
Mar 08 11:58:35 XperiaXDualSIM dbus-daemon[3009]: dbus-daemon[3009]: [session uid=100000 pid=3009] Activating via systemd: service name=‘org.freedesktop.Tracker1’ unit=‘tracker-store.service’ requested by ‘:1.53’ (uid=100000 pid=4326 comm="/usr/libexec/tracker-miner-fs")
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: ============================================================
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: gexe.sh Execute: /system/genv/bin/alien_audio_server
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: ============================================================
Mar 08 11:58:35 XperiaXDualSIM systemd[2993]: Starting Tracker metadata database store and lookup manager…
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: ============================================================
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: gexe.sh Execute: /system/genv/bin/alien_media_control
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: ============================================================
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: ============================================================
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: gexe.sh Execute: /system/genv/bin/alien_resource_mgr
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: ============================================================
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: gexe.sh Execute: /system/genv/bin/alien_bridge_server bm ap no li po nc vi pm ar
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: ============================================================
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: ============================================================
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: gexe.sh Execute: /system/genv/bin/aliensensorserver
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: ============================================================
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: ============================================================
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: gexe.sh Execute: /system/genv/bin/alien_keyboard_server
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: ============================================================
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: ============================================================
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: gexe.sh Execute: /system/genv/bin/alien_timezone_monitor
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: ============================================================
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: ============================================================
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: gexe.sh Execute: /system/genv/bin/alien_bridge_server ms fo
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: ============================================================
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: ============================================================
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: ============================================================
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: gexe.sh Execute: /system/genv/bin/alien_gps_server
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: ============================================================
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: ============================================================
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: gexe.sh Execute: /system/genv/bin/alien_bridge_server wi ri
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: ============================================================
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: ============================================================
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: gexe.sh Execute: /system/genv/bin/alien_bridge_server co
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: ============================================================
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: /system/genv/bin/alien_bridge_server: symbol lookup error: /system/genv/bin/alien_bridge_server: undefined symbol: _ZN10QtContacts10QContactIdD1Ev, version Qt_5
Mar 08 11:58:35 XperiaXDualSIM dbus-daemon[3009]: dbus-daemon[3009]: [session uid=100000 pid=3009] Successfully activated service ‘org.freedesktop.Tracker1’
**Mar 08 11:58:35 XperiaXDualSIM systemd[2993]: Started Tracker metadata database store and lookup manager.
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: /system/genv/bin/alien_bridge_server: symbol lookup error: /system/genv/bin/alien_bridge_server: undefined symbol: _ZN10QtContacts10QContactIdD1Ev, version Qt_5
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: /system/genv/bin/alien_bridge_server: symbol lookup error: /system/genv/bin/alien_bridge_server: undefined symbol: _ZN10QtContacts10QContactIdD1Ev, version Qt_5
Mar 08 11:58:35 XperiaXDualSIM start_alien.sh[7831]: /system/genv/bin/alien_bridge_server: symbol lookup error: /system/genv/bin/alien_bridge_server: undefined symbol: _ZN10QtContacts10QContactIdD1Ev, version Qt_5

I’ve tried with ldd to see if something is missing on the alien_bridge_server (/opt/alien/system/genv/bin/alien_bridge_server), but looks to be good.

Any ideas on how I can further troubleshoot or fix this?

1 Like

I got a similar problem after upgrading my Xperia 10.
In my case, it seemed to be related to UI Themer / themepacksupport from Storeman.
Do you by any chance have it installed?

I have only the basics installed.

I did some digging with ‘journalctl -f’ to follow the changes and a second ssh session to restart aliendalvik as shown in my first post. But didn’t get any further with figuring out which packages will fix the missing symbols (because according to ldd everything is alright).

Do you know a way to reinstall the packages required for aliendalvik? Maybe reinstalling will help…

The easiest way to reinstall would be through the Jolla Store, by uninstalling and reinstalling the Android™ App Support app. I would also reboot before reinstalling just to be safe.

If you already tried this way, I believe you could try using pkcon.
From what I gathered here and there,

pkcon install aliendalvik

may be the way to go.
Just to be clear, I’m not familiar with package management on Sailfish OS, that’s just what I understood from reading about it.

If it still doesn’t do the job, there are more ways to check installed packages in the first link I posted.

Wish you luck!

Thanks for the info and the links :slight_smile:

I’ve figured out with the rpm check command that something is wrong with my aliendalvik installation:

[root@XperiaXDualSIM defaultuser]# rpm -V aliendalvik
missing     /lib/systemd/system/alien-service-manager.service
missing     /lib/systemd/system/alien-settings.service
missing     /lib/systemd/system/aliendalvik.service
S.5....T.    /opt/alien/system/build.prop
S.5....T.    /opt/alien/system/etc/aliendalvik-release
.M.......    /opt/alien/system/script/platform_extraenvsetup.sh

So I’ve tried to see if I could reinstall the aliendalvik packages, but couldn’t be found:

[root@XperiaXDualSIM defaultuser]# pkcon --allow-reinstall install aliendalvik
Resolving                                                          [                                 ] (0%)  Package not found: aliendalvik
Command failed: This tool could not find any available package: No packages were found

Reinstalled my sailfish account, but that didn’t seem to make a difference. So in the end tried remove and hoping to be able to install than… but that didn’t work.

So any idea on why the aliendalvik packages isn’t there? Else it will be a reinstall of the complete phone and that’s is maybe even for the better… could hopefully also fix my bluetooth (which now only can be turned off and than stays off).

If pkcon can’t find the aliendalvik package in the repos, maybe it doesn’t connect to them properly.

Would you try and see if this returns an error?

pkcon refresh

If it doesn’t fail and

pkcon install aliendalvik

still doesn’t work after that, I’ll be out of ideas except, as you said, a factory reset.
I’m not sure it would fix your Bluetooth problem (I had this in 3.4, some people still have trouble with Koli), but one can hope! :crossed_fingers:

If the refresh does fail, there is still a few things you can check, depending of the error message.

I’ve tried the pkcon refresh and that worked without error, but doing the pkcon install aliendalvik still doesn’t find it.

I’ll follow the link and will do some more research (searching), but reinstalling looks more promising, because up to and including 3.4 I had no problems with bluetooth. I regular disabled it to switch headset from one to another device.

Thanks for the input and I’ll will followup on it and report my findings somewhere later this week.

Have the same problem as gafry, tried
pkcon refresh (worked without error)
and then pkcon install (the sameerror message gafry reported)

Phone does not find the package.
(I’m running the paid version of SFOS)

edit: additional info - in the previous version I did deinstall Android support and deleted the system folders regarding to aliendalvik because of data safety “paranoia”. Can this affect the capability of reinstallation? (Phone is Xperia 10 single SIM, 4.0.1.48 Koli)

Have you found the solution to the original issue (undefined symbol: _ZN10QtContacts10QContactIdD1Ev)?

No, didn’t find it, but after reinstall the problem disappeared.

I think something went wrong during the upgrade seeing my previous post about rpm check. Only I couldn’t get the aliendalvik downloaded. That looks like a repository and/or rights error…

Sorry I can’t help you further

I don’t think removing android storage is the issue, because I’ve keeped it during the upgrade and it stopped working all the same. Deleting it according to Jolla’s procedure did recreate the same environment (looking at it), but can’t verify that, because I had the missing symbol error which is now gone with the reinstall.

Thanks. Have you uninstalled and installed aliendalvik or just simply re-installed it again?

1 Like

I’ve re-installed the complete phone and that whats fixed it (but had some other challenges such as needed to downgrade fastboot to 29.x.x).

It looks like the repository for AlienDalvik and exchange client is only available during install (and probably upgrade). I initial forget (though I didn’t needed) to install the exchange plugin. Trying pkcon install sailfish-eas for the first time gave this:

[root@XperiaXDualSIM defaultuser]# pkcon install sailfish-eas
Resolving                                                                                                                                   
Querying                                                                                                                                    
Testing changes                                                                                                                             
Finished                                                                               [                                          ] (0%)  
The following packages have to be installed:
 libsailfish-eas-0.5.6.1-1.23.12.jolla.armv7hl  Sailfish Exchange ActiveSync library
 libsailfish-eas-common-0.5.6.1-1.23.12.jolla.armv7hl   Sailfish Exchange ActiveSync common library
 sailfish-eas-0.5.6.1-1.23.12.jolla.armv7hl     Sailfish Exchange ActiveSync
Proceed with changes? [N/y] y

                                                                                                                                           
Installing                                                                                                                                  
Starting                                                                                                                                    
Resolving dependencies                                                                                                                     
Installing packages                                                                                                                        
Downloading packages                                                                                                                       
Finished                                                                                                                                   
Fatal error: File './armv7hl/libsailfish-eas-common-0.5.6.1-1.23.12.jolla.armv7hl.rpm' not found on medium 'https://store-repository.jolla.com/features/4.0.1.48/sailfish-eas/armv7hl/?credentials=store'

After pkcon refresh :

[root@XperiaXDualSIM defaultuser]# pkcon install sailfish-eas
Resolving                                                                              [                                          ] (0%)  Package not found: sailfish-eas
Command failed: This tool could not find any available package: No packages were found

Reinstall and during initial install select it worked, but than run in that a needed to create an app password for exchange, because of 2FA … So probably in the end I’ve could have used IMAP/SMTP with encryption as I initial had.

on my phone then also comes: Package not found: sailfish-eas

If I do a search (this is before doing pkcon refresh) than I see the following:

[root@XperiaXDualSIM defaultuser]# pkcon search sailfish-eas
Searching by details                                                                                                                       
Starting                                                                                                                                   
Querying                                                                                                                                   
Finished                                                                                                                                   
Installed       feature-sailfish-eas-0.0.7-1.4.1.jolla.armv7hl (installed)      Feature for supporting Exchange ActiveSync
Installed       libsailfish-eas-0.5.6.1-1.23.12.jolla.armv7hl (installed)       Sailfish Exchange ActiveSync library
Installed       libsailfish-eas-common-0.5.6.1-1.23.12.jolla.armv7hl (installed)        Sailfish Exchange ActiveSync common library
Installed       sailfish-eas-0.5.6.1-1.23.12.jolla.armv7hl (installed)          Sailfish Exchange ActiveSync

I can try to do an install, but it’s now working again and only have to cleanup an issue where some contacts are known local and remote (synced).

If it helps I’ll try to do a local install of sailfish-eas, but break it of before it starts…

I have hit the exact same issue and symptoms as @gafry upon upgrading to 4.0.1.48 on Xperia X, and the issues persists after upgrade to 4.1.0.24. Aliendalvik will not start and throws the exact same “undefined symbols” error when I check the logs.

I tried all the things in this post besides a reset and have also tried restarting without the microSD card present but it still has the same issue, and am about to look at some of the things mentioned here: [4.0.1.15] AlienDalvik stop working and doesn't start (Solved removing Android Data)

Was just curious about the following:

  • Has anyone found a way to successfully reinstall only the Android apps / aliendalvik service without a reset (I purchased a license for this phone a long time ago and it has worked for years before this upgrade). Interestingly, I cannot see the Android Apps in Jolla store under my apps or available apps.

  • Is there a way to re-run the same 4.1.0.24 install that I ran successfully to see if I can get alien dalvik to properly reinstall?

Any other thoughts are welcome. This is the first time since android apps were licensed for Sailfish that I have had any upgrade problems like this and it is kind of a big one.

EDIT/RESOLUTION: Well this is embarrassing, I just figured out that the license I bought for this phone in 2017 was for a different email/account than the one I was using. I must have gotten them confused with all the Jolla/Sailfish site changes over the last few years.

Once I logged in with the correct account on my phone, I could then see the Android Support in the store under My Apps. I uninstalled and reinstalled the support from the store UI, but still observed an error in the journalctl output about missing android packages.So as devel-su I ran the following from the prompt pkcon refresh and my android apps now all work again.

Hopefully this helps someone else.

2 Likes

I have figured out why Aliendalvik stopped working after 4.0.1.48. More details can be found on this thread here.

1 Like