Skip to content

An Android compress and extract library support popular compression format such as rar, zip, tar, lzma. based on p7zip.

License

NotificationsYou must be signed in to change notification settings

hzy3774/AndroidP7zip

Repository files navigation

AndroidP7zip(P7Zip安卓)

An Android compress and extract library, P7Zip port for Android

Details

Get Started

  • Download to experiencedownload

  • Add gradle dependencie:

dependencies {
    implementation 'com.hzy:libp7zip:1.7.0'
}
  • Or just download the aar here

  • If you want to add some abi filters

android {
    ...
    defaultConfig {
        ...
        ndk {
            abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86'
         }
    }
}
  • Simple interface
P7ZipApi.executeCommand(String command);
  • Commands:
7z a archive1.zip subdir\
7z x archive.zip -oc:\soft *.cpp -r

Screenshot

image

This project is for me to learn Streams, NDK, and for fun.

FormatCreationFilename Extensions
7z7z
BZIP2bz2 bzip2 tbz2 tbz
GZIPgz gzip tgz
TARtar
WIMwim swm
XZxz txz
zipzip zipx jar xpi odt ods docx xlsx epub

About Me

Contact To Me

image

Others

  • 想捐助我喝杯热水(¥0.01起捐)
    donate

About

An Android compress and extract library support popular compression format such as rar, zip, tar, lzma. based on p7zip.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages