Broken android support. [released]
All of a sudden, Android support failed. All app icons are still in the list, but starting them just shows the app loading for 30 seconds before disapearing.
Restarting Android support made no difference, notr did rebooting the phone. Tried it multple times, even removed the battery. Removing and reinstalling Android support made things worse: The start and stop buttons of Android support in the settings are now both disabled and there are multiple, non-responsive Android support icons at the end of the apps grid. Version 0.17.2 of Android support is installed and there is always a mention of an update (0.17.27) being available for Android support, but upgrading results in a "Update cannot be installed, problem with store" error.
My problem is somewhat like this: https://together.jolla.com/question/97882/11627-android-support-unfixable-broken/ Although my (Android) app icons never disapeared.
Also the solution in that topic did not work for me; I can Install Android apps form the Jolla store, but no icon appears for these apps. I can uninstall these new apps. It changes nothing. I can not remove existing Android apps.
Starting (as devel-su) of /opt/alien/system/script/start_alien.sh gives
/data exists already
/data/dalvik-cache exists already
/data/app-private exists already
/data/app exists already
/data/data exists already
/data/misc exists already
/data/property exists already
/run/user/1000/alien/socket exists already
/run/user/1000/alien/ashmem exists already
/data/media exists already
/cache exists already
/data/keystore exists already
-------------------------------------------
ANDROID_ROOT=/system
ANDROID_DATA=/data
DOWNLOAD_CACHE=/cache
ANDROID_ASHMEM_DIR=/run/user/1000/alien/ashmem
EXTERNAL_STORAGE=/home/nemo/android_storage
BOOTCLASSPATH=/system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework_ext.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar
LD_LIBRARY_PATH=/system/vendor/lib:/system/lib:/vendor/lib:/system_jolla/lib:
ANDROID_LOG_TAGS=*:e
USER_APP=
-------------------------------------------
./start_alien.sh: line 87: /system/bin/alien_init: No such file or directory
./start_alien.sh: line 87: exec: /system/bin/alien_init: cannot execute: No such file or directory
/system/bin/alien_init indeed does not exist, but /opt/alien/system/bin/alien_init does, which would support chemist's suggestion that "something is off with mounting the chroot properly I guess so /opt/alien is not fully populated for some reason".
journalctl -b returns a huge output and I have no idea what to look for. Filtering the results on "alien" shows a repeating output:
Dec 30 20:47:37 Jolla alien.sh[20003]: LD_LIBRARY_PATH=/system/vendor/lib:/system/lib:/vendor/lib:/system_jolla/lib:
Dec 30 20:47:37 Jolla alien.sh[20003]: ANDROID_LOG_TAGS=*:e
Dec 30 20:47:37 Jolla alien.sh[20003]: USER_APP=
Dec 30 20:47:37 Jolla alien.sh[20003]: -------------------------------------------
Dec 30 20:47:37 Jolla alien.sh[20003]: ============================================================
Dec 30 20:47:37 Jolla alien.sh[20003]: gexe.sh Execute: /system/genv/bin/alien_audio_server
Dec 30 20:47:37 Jolla alien.sh[20003]: ============================================================
Dec 30 20:47:37 Jolla alien.sh[20003]: ============================================================
Dec 30 20:47:37 Jolla alien.sh[20003]: gexe.sh Execute: /system/genv/bin/alien_timezone_monitor
Dec 30 20:47:37 Jolla alien.sh[20003]: ============================================================
Dec 30 20:47:37 Jolla alien.sh[20003]: ============================================================
Dec 30 20:47:37 Jolla alien.sh[20003]: gexe.sh Execute: /system/genv/bin/aliensensorserver
Dec 30 20:47:37 Jolla alien.sh[20003]: ============================================================
Dec 30 20:47:37 Jolla kernel: alien_init(20024) send signal 9 to alienlogd(20036)
Dec 30 20:47:37 Jolla alien.sh[20003]: 12-30 19:47:37.517 20038 20038 E ServiceManager: cannot become context manager (Device or resource busy)
Dec 30 20:47:37 Jolla kernel: alien_init(20024) send signal 9 to sdcard(20037)
Dec 30 20:47:37 Jolla alien.sh[20003]: ============================================================
Dec 30 20:47:37 Jolla alien.sh[20003]: gexe.sh Execute: /system/genv/bin/alien_keyboard_server
Dec 30 20:47:37 Jolla alien.sh[20003]: ============================================================
Dec 30 20:47:37 Jolla kernel: alien_init(20024) send signal 9 to keystore(20039)
Dec 30 20:47:37 Jolla alien.sh[20003]: 12-30 19:47:37.613 20056 20056 E RILD : **RIL Daemon Started**
Dec 30 20:47:37 Jolla alien.sh[20003]: 12-30 19:47:37.615 20056 20056 E RILD : **RILd param count=3**
Dec 30 20:47:37 Jolla kernel: alien_init(20024) send signal 9 to installd(20040)
Dec 30 20:47:37 Jolla kernel: alien_init(20024) send signal 9 to alien-main(20041)
Dec 30 20:47:37 Jolla kernel: alien_init(20024) send signal 9 to drmserver(20042)
Dec 30 20:47:37 Jolla kernel: alien_init(20024) send signal 9 to debuggerd(20043)
Dec 30 20:47:37 Jolla kernel: alien_init(20024) send signal 9 to alien_audio_ser(20044)
Dec 30 20:47:37 Jolla kernel: alien_init(20024) send signal 9 to gexe.sh(20045)
Dec 30 20:47:37 Jolla kernel: alien_init(20024) send signal 9 to mediaserver(20046)
Dec 30 20:47:37 Jolla kernel: alien_init(20024) send signal 9 to alien_timezone_(20047)
Dec 30 20:47:37 Jolla kernel: alien_init(20024) send signal 9 to gexe.sh(20048)
Dec 30 20:47:37 Jolla kernel: alien_init(20024) send signal 9 to gexe.sh(20057)
Dec 30 20:47:37 Jolla kernel: alien_init(20024) send signal 9 to gexe.sh(20049)
Dec 30 20:47:37 Jolla kernel: alien_init(20024) send signal 9 to gexe.sh(20053)
Dec 30 20:47:37 Jolla kernel: alien_init(20024) send signal 9 to gexe.sh(20050)
Dec 30 20:47:37 Jolla kernel: alien_init(20024) send signal 9 to gexe.sh(20051)
Dec 30 20:47:37 Jolla kernel: alien_init(20024) send signal 9 to gexe.sh(20052)
Dec 30 20:47:37 Jolla kernel: alien_init(20024) send signal 9 to gexe.sh(20054)
Dec 30 20:47:38 Jolla systemd[1]: aliendalvik.service holdoff time over, scheduling restart.
Dec 30 20:47:38 Jolla systemd[1]: aliendalvik.service start request repeated too quickly, refusing to start.
Dec 30 20:47:38 Jolla systemd[1]: Unit aliendalvik.service entered failed state.
Dec 30 20:51:06 Jolla estart[19581]: [W] unknown:12 - file:///usr/share/jolla-settings/pages/android-runtime/android.qml:12:5: QML DBusInterface: QDBusError("org.freedesktop.DBus.Error.ServiceUnknown", "The name com.myriadgroup.alien.settings was not provided by any .service files")
Dec 30 20:58:08 Jolla lipstick[916]: service: Service alien does not exist
Dec 30 20:59:47 Jolla [1129]: [D] Package::RepositoryTransactionPkgKit::slotGotRepository:286 - Repository: "aliendalvik" "aliendalvik" true
Dec 30 20:59:47 Jolla [1129]: [D] Package::InstallTransactionPkgKit::resolveInstalled:99 - void Package::InstallTransactionPkgKit::resolveInstalled(const QString&) "aliendalvik"
Dec 30 20:59:48 Jolla [1129]: [D] Package::InstallTransactionPkgKit::slotResolvedInstalled:390 - void Package::InstallTransactionPkgKit::slotResolvedInstalled(PackageKit::Transaction::Info, const QString&, const QString&) "aliendalvik;0.17.2-2;armv7hl;installed" "0.17.2-2"
Dec 30 20:59:48 Jolla [1129]: [D] Package::InstallTransactionPkgKit::resolve:118 - void Package::InstallTransactionPkgKit::resolve(const QString&) "aliendalvik"
Dec 30 20:59:48 Jolla [1129]: [D] Package::InstallTransactionPkgKit::slotResolved:405 - void Package::InstallTransactionPkgKit::slotResolved(PackageKit::Transaction::Info, const QString&, const QString&) 1 "aliendalvik;0.17.2-2;armv7hl;installed" "Myriad Alien Dalvik"
Dec 30 20:59:48 Jolla [1129]: [D] Package::InstallTransactionPkgKit::giveUpOrRetry:222 - void Package::InstallTransactionPkgKit::giveUpOrRetry(const QString&) "package already installed aliendalvik"
Dec 30 21:00:00 Jolla [1129]: [D] Package::InstallTransactionPkgKit::resolveInstalled:99 - void Package::InstallTransactionPkgKit::resolveInstalled(const QString&) "aliendalvik"
Dec 30 21:00:00 Jolla [1129]: [D] Package::InstallTransactionPkgKit::slotResolvedInstalled:390 - void Package::InstallTransactionPkgKit::slotResolvedInstalled(PackageKit::Transaction::Info, const QString&, const QString&) "aliendalvik;0.17.2-2;armv7hl;installed" "0.17.2-2"
Dec 30 21:00:00 Jolla [1129]: [D] Package::InstallTransactionPkgKit::resolve:118 - void Package::InstallTransactionPkgKit::resolve(const QString&) "aliendalvik"
Dec 30 21:00:00 Jolla [1129]: [D] Package::InstallTransactionPkgKit::slotResolved:405 - void Package::InstallTransactionPkgKit::slotResolved(PackageKit::Transaction::Info, const QString&, const QString&) 1 "aliendalvik;0.17.2-2;armv7hl;installed" "Myriad Alien Dalvik"
Dec 30 21:00:00 Jolla [1129]: [D] Package::InstallTransactionPkgKit::giveUpOrRetry:222 - void Package::InstallTransactionPkgKit::giveUpOrRetry(const QString&) "package already installed aliendalvik"
Dec 30 21:00:11 Jolla [1129]: [D] Package::InstallTransactionPkgKit::resolveInstalled:99 - void Package::InstallTransactionPkgKit::resolveInstalled(const QString&) "aliendalvik"
Dec 30 21:00:11 Jolla [1129]: [D] Package::InstallTransactionPkgKit::slotResolvedInstalled:390 - void Package::InstallTransactionPkgKit::slotResolvedInstalled(PackageKit::Transaction::Info, const QString&, const QString&) "aliendalvik;0.17.2-2;armv7hl;installed" "0.17.2-2"
Dec 30 21:00:11 Jolla [1129]: [D] Package::InstallTransactionPkgKit::resolve:118 - void Package::InstallTransactionPkgKit::resolve(const QString&) "aliendalvik"
Dec 30 21:00:11 Jolla [1129]: [D] Package::InstallTransactionPkgKit::slotResolved:405 - void Package::InstallTransactionPkgKit::slotResolved(PackageKit::Transaction::Info, const QString&, const QString&) 1 "aliendalvik;0.17.2-2;armv7hl;installed" "Myriad Alien Dalvik"
Dec 30 21:00:11 Jolla [1129]: [D] Package::InstallTransactionPkgKit::giveUpOrRetry:222 - void Package::InstallTransactionPkgKit::giveUpOrRetry(const QString&) "package already installed aliendalvik"
I have little to no idea what this all means. I'm at a loss.
PS: This is the second time this happens, first might have been caused by the system running out of disk space, this time that certainly did not happen. Previously I 'fixed' it by factory resetting my phone, but that takes me through every system update one-by-one and before my phone is up-to-date, I will have been updating for over a day. Next I'll have to install and configure every app again. And if all goes well, I'll end up with a phone of which Android support again could break at any time. So I'm looking for a more structural solution.
I can see that it's doing something withe sd card. Could you try not to have a sd card and do a reboot? That's all I can come up with. Good luck!
kuzeyron ( 2015-12-31 03:49:13 +0200 )editI've mounted my SD card to be used with android as described here: https://together.jolla.com/question/40802/how-to-format-your-usd-card-to-btrfs-and-share-space-with-android/ (Could removing Android support break this setup?)
I thought it had some fallback to use the internal memory when the sd-card was removed, but I'm not sure. But I did not remove the SD-card.
Odd thing is that the android directory on the sd-card in completely empty, as is /data/media/ I don't know if that's abnormal, I did remove android support, so that might have cleared these dirs?
And one thing I found which was wrong was that the android dir had rights 770 instead of 777. fixed it and reinstalled android support, But made no difference,
roland684 ( 2015-12-31 06:08:19 +0200 )edithmmm. I wonder where the problems are. But what does the logs say? Can you re-do them and throw them into Pastebin or something?
kuzeyron ( 2015-12-31 13:34:25 +0200 )edit@roland684 disable the android-uSD mount, reboot (no need to remove the card). All that happens is that your userdata is gone, if it is something with the uSD you will find out that way the fastest, although I doubt it. Also note that chrooting in general has nothing to do with my mount procedure. All that can happen is that it is mounted the wrong time and therefore not included in /opt/alien. I'd uninstall alien AFTER saving the apks you have installed (may save some time when installing again). If you want to do so, disable the uSD mount, store apks away, uninstall aliendalvik, reboot, reverse.
chemist ( 2015-12-31 14:02:19 +0200 )editI had a similar problem; see here but following leszek suggestion by doing
didn't fix it for me. I got it back working by
removing Aliendalvik (I then shut down the phone and removed the sdcard but disabling data-media.mount maybe easier though)
pkcon refresh + pkcon update and backing up /data/data | /data/app | /opt/alien using 'tar -cvpf' just in case
systemctl status aliendalvik and systemctl status data-media.mount
if everything is up and running againgood luck
J4ZZ ( 2015-12-31 18:27:24 +0200 )edit