Skip to content

zhanghai/libarchive-android

Repository files navigation

libarchive-android

Android CI status

libarchive built with Android NDK, packaged as an Android library with some Java binding.

The bundled libarchive is built with libz, libbz2, liblzma, liblz4, libzstd and libmbedcrypto.

This is not an officially supported Google product.

Integration

Gradle:

implementation 'me.zhanghai.android.libarchive:library:1.0.0'

Usage

See Archive.java and ArchiveEntry.java, which contain the Java bindings for archive.h and archive_entry.h .

See also MainActivity.java for an example on how to use this library to read archive files.