gplaycli icon indicating copy to clipboard operation
gplaycli copied to clipboard

feature request: zip up split files

Open aerickson opened this issue 5 years ago • 3 comments

Raccoon, another google play store downloader tool, zips up the split file downloads into APK's. It's handy to have them zipped up and ready to install.

Ideally, the files would be named PACKAGE.split_name.apk (and with -av, PACKAGE.VERSION.split_name.apk).

aerickson avatar Apr 15 '20 00:04 aerickson

Here's what Raccoon produces for com.android.chrome:

➜  com.android.chrome  ls -l
total 135544
-rw-r--r--  1 aerickson  staff       340 Apr 10 12:17 appicon_398716202.png
-rw-r--r--  1 aerickson  staff  67080946 Apr 10 12:17 com.android.chrome-398716202.apk
-rw-r--r--  1 aerickson  staff    221600 Apr 10 12:17 config.en-398716202.apk
-rw-r--r--  1 aerickson  staff   1425687 Apr 10 12:17 extra_icu-398716202.apk
➜  com.android.chrome 

aerickson avatar Apr 15 '20 00:04 aerickson

Different file naming method, but I've added the pull request #261 to do this. The issue isn't that the split files aren't zipped, but rather they're simply lacking the extension '.apk' when being saved. Once extended with '.apk', adb install-multiple will more readily accept it.

FailSpy avatar Jun 13 '20 00:06 FailSpy

Is something specific required in order to obtain the split parts? I downloaded and installed com.spotify.music OK, but it crashes as soon as it's opened, logcat:

Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'boolean com.google.android.play.core.missingsplits.a.a()' on a null object reference

which apparently means it's a 'split APK': https://developer.android.com/reference/com/google/android/play/core/missingsplits/MissingSplitsManager

(the only file downloaded was com.spotify.music.apk, same with the --additional-files flag (I didn't know what that did, but I guessed it might be for this.))

OJFord avatar Nov 30 '20 17:11 OJFord