Closed kasnder closed 3 years ago
I assume that libraries within split_config.arm64_v8a.apk
are wrongly compressed or aligned after running ApkNormalized
.
Additionally, I cannot run ZipDiff on split_config.arm64_v8a.apk
without running ApkNormalized
.
Running ZipDiff split_config.arm64_v8a.apk split_config.arm64_v8a-modified.apk split_config.arm64_v8a.ZipDiff
results in:
...
check ZipPatch result Byte By Byte Equal ERROR!
(did newZip=AndroidSDK#apksigner(ApkNormalized(AndroidSDK#apksigner(newZip))) before running ZipDiff?)
...
the cmdline ApkNormalized version is 1.3.6?
you can make it by yourself:
$cd <ApkdiffPatch>
$make
I have't tested with split apks,
Can you email these 5 .apk files to me(housisong@hotmail.com)?
Oh, it's 1.3.5. I was using the tagged release from the webpage. I'll check again!
Possible attempt:
I Success!
I test Twritter split apks( base.apk split_config.arm64_v8a.apk split_config.de.apk split_config.en.apk split_config.xxhdpi.apk )
edit AndroidManifest.xml file in base.apk,changeandroid:extractNativeLibs="false"
to android:extractNativeLibs="true"
then all apks do ApkNormalized & AndroidSDK#apksigner
run: adb install-multiple base.apk split_config.arm64_v8a.apk split_config.de.apk split_config.en.apk split_config.xxhdpi.apk
result "Success", and the TWritter app can be run on Android.
Thanks for clarifying! I really don't like the latest changes to the APK format by Google..
same don't like
now, this lib new version supported page-align uncompressed .so files.
Hello,
I'm trying to use ZipDiff for the Twitter app.
When downloading for an arm64 device from the German Google Play Store, this comes in 5 .apk files:
base.apk
split_config.arm64_v8a.apk
split_config.de.apk
split_config.en.apk
split_config.xxhdpi.apk
Unfortunately, if I apply
AndroidSDK#apksigner(ApkNormalized(AndroidSDK#apksigner(newZip)))
tosplit_config.arm64_v8a.apk
I get the following error when installing withadb install-multiple *.apk
:Installing works without problems if I only apply
AndroidSDK#apksigner(newZip)
tosplit_config.arm64_v8a.apk
andAndroidSDK#apksigner(ApkNormalized(AndroidSDK#apksigner(newZip)))
tothe other .apk files.