summaryrefslogtreecommitdiff
path: root/src/app_extract.c
AgeCommit message (Collapse)AuthorFilesLines
2021-11-09database: implement uvol supportTimo Teräs1-8/+8
by adding an abstraction layer to the file system
2021-11-03extract: move uvol extraction code to extractTimo Teräs1-88/+2
fix also the progress callback on uvol extraction
2021-11-03db, extract: handle waitpid returning EINTRTimo Teräs1-2/+2
2021-09-03extract: remove redundant file unlink on failure pathTimo Teräs1-1/+0
apk_extract_file() already calls unlink if the error is fatal.
2021-09-03extract: pass root object instead of databaseTimo Teräs1-1/+1
2021-08-17extract: fix directory handlingTimo Teräs1-7/+8
'is' is null for directories
2021-08-03extract: fix extracting untrusted packageTimo Teräs1-0/+3
2021-07-30extract: use extraction api, and implement it for v3 packagesTimo Teräs1-202/+24
The extract applet now works with both v2 and v3 packages.
2021-07-27Refactor .apk extraction codeTimo Teräs1-8/+9
This moves and isolates the tar code to tar.c. And the actual file extraction to disk is moved to extract.c. A new API is introduced and used for v2 file extraction. This essentially moves and isolates the apk_sign_ctx_* beast into extract_v2.c and offers a saner interface to handling packages. A place holder is added for v3 extraction.
2021-07-26extract: fix handling of error of regular file extractionTimo Teräs1-1/+2
fix the error checking, allow --force-overwrite to work and do not delete existing file in case of error
2021-07-26adb: fix some error handling pathsTimo Teräs1-1/+1
2021-07-23extract: rework uvol name logicTimo Teräs1-15/+15
Add uvol_name to struct apk_file_info so it can be passed down the extract callbacks in future work. Modify uvol name to not include the path, but just the filename portion.
2021-07-23extract: fix uvol parameter orderDaniel Golle1-1/+1
2021-07-22extract: remove unneeded argument from uvol_extractTimo Teräs1-3/+3
2021-07-22rework apk_istream_splice and apk_istream_teeTimo Teräs1-3/+5
- apk_istream_splice usage is converted to apk_stream_copy which is the newer variant. With caching enabled by default, this makes more sense mmapping or using separate buffers. - apk_istream_tee is reworked to write to apk_ostream, which simplifies quite a bit of various things
2021-07-22adb: unify various interfaces to adb_m_processTimo Teräs1-2/+5
Removes code duplication, and puts important checks in one place. Support seamless decompression in adbdump.
2021-07-22adbsign: support compressed adb filesTimo Teräs1-1/+1
2021-07-16extract: fix integrity check failure to remove the bad file/volumeTimo Teräs1-33/+31
2021-06-23mkpkg, extract: implement support for symlinks, devices and fifosTimo Teräs1-13/+50
2021-06-19reduce misuse of error codes from errno.hTimo Teräs1-8/+8
2021-06-11extract: add experimental support for uvol volumesTimo Teräs1-3/+101
2021-06-11extract: new applet to extract v2 packagesTimo Teräs1-0/+239