Ask / Submit

[Question] Unable to install some apk-files - howto debug? [answered]

asked 2014-09-14 00:07:29 +0300

Louis gravatar image

updated 2015-01-13 10:16:59 +0300

eric gravatar image

I have a few apks on my Jolla which will not install. When trying to install trough the GUI nothings happens. If I try to install over SSH I get this output and nothing installed:

[nemo@louis-jolla Downloads]$ apkd-install dk.tv2.zulubff.apk 
method return sender=:1.4 -> dest=:1.524 reply_serial=2
   boolean false

Anybody that know how I should debug this :)

This package I'm trying to install is from Google Play, I've downloaded it using this service: I've tried downloading it several times, with same result, so it doesn't seem to be a broken download. I've installed several other apk-files this way with success.

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by Louis
close date 2014-09-14 14:29:45.126596

2 Answers

Sort by » oldest newest most voted

answered 2014-09-14 14:29:09 +0300

Louis gravatar image

updated 2014-09-14 14:43:15 +0300

I've tried to extract the downloaded APK files on my Ubuntu laptop and I can't because they're broken. That seems to be the reason why they won't install on my Jolla Phone. Closing thread.

UPDATE: Adding detailed description for debug purposes

GNOME File Roller wouldn't open the apk file at all and apktool gave this error:

louis@louis-laptop:~/Skrivebord$ apktool d dk.tv2.zulubff.apk 
I: Using Apktool 2.0.0-RC1 on dk.tv2.zulubff.apk
Exception in thread "main" brut.androlib.AndrolibException: archive is not a ZIP archive
    at brut.androlib.ApkDecoder.hasResources(
    at brut.androlib.ApkDecoder.decode(
    at brut.apktool.Main.cmdDecode(
    at brut.apktool.Main.main(
Caused by: archive is not a ZIP archive
    at brut.androlib.res.util.ExtFile.getDirectory(
    at brut.androlib.ApkDecoder.hasResources(
    ... 3 more
Caused by: archive is not a ZIP archive
    ... 6 more

If I look at the Google Play reviews many have issues with app not starting, crashing etc. so I can conclude that this might be a bad written app and that's why it won't install.

edit flag offensive delete publish link more

answered 2014-09-14 12:01:16 +0300

dthierbach gravatar image

It's often enough to just move the APK file to /data/app, at least that's how I did all the direct APK installs on my phone so far. The Linux command is mv (as root, so use devel-su).

Use scp to copy the APK file from your PC to the phone, if you haven't done so already. Use ls to check if the files are present.

Also, I'm not familiar with apkd-install, but in your output above, you already seem to be in the Downloads directory, so it probably can't file the file of you also prefix it with Downloads.

edit flag offensive delete publish link more



I corrected the output above, to not include Downloads when standing in the download dir, however I still can't install. If I move the apk file to /data/app and try to install while standing in the directory I get a similar output and nothing gets installed.

apkd-install dk.tv2.zulubff.apk 
method return sender=:1.4 -> dest=:1.155 reply_serial=2
   boolean false
Louis ( 2014-09-14 13:30:10 +0300 )edit

Question tools

1 follower


Asked: 2014-09-14 00:07:29 +0300

Seen: 779 times

Last updated: Sep 14 '14