We have moved to a new Sailfish OS Forum. Please start new discussions there.
0

[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: http://apps.evozi.com/apk-downloader/ 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
2

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: brut.directory.DirectoryException: java.util.zip.ZipException: archive is not a ZIP archive
    at brut.androlib.ApkDecoder.hasResources(ApkDecoder.java:248)
    at brut.androlib.ApkDecoder.decode(ApkDecoder.java:92)
    at brut.apktool.Main.cmdDecode(Main.java:169)
    at brut.apktool.Main.main(Main.java:85)
Caused by: brut.directory.DirectoryException: java.util.zip.ZipException: archive is not a ZIP archive
    at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:54)
    at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:37)
    at brut.androlib.res.util.ExtFile.getDirectory(ExtFile.java:55)
    at brut.androlib.ApkDecoder.hasResources(ApkDecoder.java:246)
    ... 3 more
Caused by: java.util.zip.ZipException: archive is not a ZIP archive
    at org.apache.commons.compress.archivers.zip.ZipFile.positionAtCentralDirectory32(ZipFile.java:717)
    at org.apache.commons.compress.archivers.zip.ZipFile.positionAtCentralDirectory(ZipFile.java:672)
    at org.apache.commons.compress.archivers.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:406)
    at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:206)
    at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:182)
    at org.apache.commons.compress.archivers.zip.ZipFile.<init>(ZipFile.java:143)
    at brut.directory.ZipExtFile.<init>(ZipExtFile.java:28)
    at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:52)
    ... 6 more
louis@louis-laptop:~/Skrivebord$

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
-1

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

Comments

1

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

Follow
1 follower

Stats

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

Seen: 1,042 times

Last updated: Sep 14 '14