An Android compress and extract library, P7Zip port for Android
-
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
- More information: http://p7zip.sourceforge.net/
- Compiled native code with gradle-experimental
- Tested on android 4.x, 5.x and 6.0
- Supported common archive formats:
Format | Creation | Filename Extensions |
---|---|---|
7z | √ | 7z |
BZIP2 | √ | bz2 bzip2 tbz2 tbz |
GZIP | √ | gz gzip tgz |
TAR | √ | tar |
WIM | √ | wim swm |
XZ | √ | xz txz |
zip | √ | zip zipx jar xpi odt ods docx xlsx epub |
- GitHub: https://huzongyao.github.io/
- ITEye博客:https://hzy3774.iteye.com/
- 新浪微博: https://weibo.com/hzy3774
- QQ: 377406997
- Gmail: hzy3774@gmail.com
- Foxmail: hzy3774@qq.com
- WeChat: hzy3774