summaryrefslogtreecommitdiff
path: root/src/app_extract.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2021-07-16 17:04:23 +0300
committerTimo Teräs <timo.teras@iki.fi>2021-07-22 15:30:08 +0300
commit69bcdd23b94dab9e0ef67bd480e7f875b06dc71d (patch)
tree54c88f2de0967ad8503440ce668d2156a649d5f1 /src/app_extract.c
parent7af34db6cfed5792b8acd4a4fd4da56de8381673 (diff)
downloadapk-tools-69bcdd23b94dab9e0ef67bd480e7f875b06dc71d.tar.gz
apk-tools-69bcdd23b94dab9e0ef67bd480e7f875b06dc71d.tar.bz2
apk-tools-69bcdd23b94dab9e0ef67bd480e7f875b06dc71d.tar.xz
apk-tools-69bcdd23b94dab9e0ef67bd480e7f875b06dc71d.zip
adbsign: support compressed adb files
Diffstat (limited to 'src/app_extract.c')
-rw-r--r--src/app_extract.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app_extract.c b/src/app_extract.c
index 90f2d8e..a68cfbf 100644
--- a/src/app_extract.c
+++ b/src/app_extract.c
@@ -320,7 +320,7 @@ static int apk_extract_pkg(struct extract_ctx *ctx, const char *fn)
int r;
r = adb_m_stream(&ctx->db,
- apk_istream_gunzip(apk_istream_from_fd_url(AT_FDCWD, fn, apk_ctx_since(ac, 0))),
+ adb_decompress(apk_istream_from_fd_url(AT_FDCWD, fn, apk_ctx_since(ac, 0)), 0),
ADB_SCHEMA_PACKAGE, trust, apk_extract_data_block);
if (r == 0) {
r = apk_extract_next_file(ctx);