gplaycli
gplaycli copied to clipboard
feature request: zip up split files
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).
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
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.
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.))