hzy3774 / androidp7zip Goto Github PK
View Code? Open in Web Editor NEWAn Android compress and extract library support popular compression format such as rar, zip, tar, lzma. based on p7zip.
License: Other
An Android compress and extract library support popular compression format such as rar, zip, tar, lzma. based on p7zip.
License: Other
How to compress to RAR format ?
hello
i want to disable my log cat in this library,
Please, Help me.
Thanks,
Dixit Patel
它的最新版本是15.09,在CPP目录下有一个Android目录,.so文件不知道是否可以直接由它编译出来?
想问一下.so文件是如何编译出来的,用的哪些资源?
@hzy3774 @bryant1410 @vfishv @tiann @IzzySoft
Hello admin. Please support callback when compress or extract file.
Thank you very much.
解压出来的文件名中文乱码,有解决办法吗?
Im using 7z zstd and there's no apps for android with support for zstd.
Thank you.
Build command failed.
Error while executing process E:\Users\Administrator\AppData\Local\Android\sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {-HG:\project\AndroidP7zip-master\libp7zip\src\main\cpp -BG:\project\AndroidP7zip-master\libp7zip.externalNativeBuild\cmake\release\armeabi-v7a -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-16 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=G:\project\AndroidP7zip-master\libp7zip\build\intermediates\cmake\release\obj\armeabi-v7a -DCMAKE_BUILD_TYPE=Release -DANDROID_NDK=E:\Users\Administrator\AppData\Local\Android\sdk\ndk-bundle -DCMAKE_TOOLCHAIN_FILE=E:\Users\Administrator\AppData\Local\Android\sdk\ndk-bundle\build\cmake\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=E:\Users\Administrator\AppData\Local\Android\sdk\cmake\3.6.4111459\bin\ninja.exe -GAndroid Gradle - Ninja -DANDROID_STL=gnustl_static -DANDROID_PLATFORM=android-18}
(include) CMakeLists.txt
Open File
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
Build command failed.
Error while executing process E:\Users\Administrator\AppData\Local\Android\sdk\cmake\3.6.4111459\bin\cmake.exe with arguments {-HG:\project\AndroidP7zip-master\libp7zip\src\main\cpp -BG:\project\AndroidP7zip-master\libp7zip.externalNativeBuild\cmake\debug\armeabi-v7a -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-16 -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=G:\project\AndroidP7zip-master\libp7zip\build\intermediates\cmake\debug\obj\armeabi-v7a -DCMAKE_BUILD_TYPE=Debug -DANDROID_NDK=E:\Users\Administrator\AppData\Local\Android\sdk\ndk-bundle -DCMAKE_CXX_FLAGS=-DNATIVE_LOG -DCMAKE_TOOLCHAIN_FILE=E:\Users\Administrator\AppData\Local\Android\sdk\ndk-bundle\build\cmake\android.toolchain.cmake -DCMAKE_MAKE_PROGRAM=E:\Users\Administrator\AppData\Local\Android\sdk\cmake\3.6.4111459\bin\ninja.exe -GAndroid Gradle - Ninja -DANDROID_STL=gnustl_static -DANDROID_PLATFORM=android-18}
(include) CMakeLists.txt
Open File
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
Is there a way to get the output or error message as a String I can use in the application?
For example if I want to get the list of files inside the archive, using the below command, is there a way to get the list that is output?
7z l archive.zip
Right now the command just returns the error code Int, with no command output.
How can I check if a file is password protected and how to extract a password protected file?
Which command do I need for that? and from where can I get all the commands ?
Also, how to implement compression with password?
@hzy3774 I understand this project is for your learning purpose, but why not let others enjoy it. & what is better than F-Droid for reaching bigger FOSS community...
Request for packaging has been opened here: https://gitlab.com/fdroid/rfp/-/issues/1888
Thanks to @IzzySoft the app is now available on Izzy repo.
https://apt.izzysoft.de/fdroid/index/apk/com.hzy.p7zip.app
🤗
Fatal Exception: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.myapp1-1/base.apk"],nativeLibraryDirectories=[/data/app/com.example.myapp1-1/lib/x86_64, /data/app/com.example.myapp1-1/base.apk!/lib/x86_64, /vendor/lib64, /system/lib64]]] couldn't find "libp7zip.so" at java.lang.Runtime.loadLibrary(Runtime.java:367) at java.lang.System.loadLibrary(System.java:1076) at com.hzy.libp7zip.P7ZipApi.(P7ZipApi.java:13) at com.example.myapp1.libp7zip.ZipExtractCommand$ExtractRequestTask$2.subscribe(ZipExtractCommand.java:81) at io.reactivex.internal.operators.observable.ObservableCreate.subscribeActual(ObservableCreate.java:40) at io.reactivex.Observable.subscribe(Observable.java:10179) at io.reactivex.internal.operators.observable.ObservableSubscribeOn$1.run(ObservableSubscribeOn.java:39) at io.reactivex.Scheduler$1.run(Scheduler.java:134) at io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:59) at io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:51) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:154) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:269) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818)
That's pretty cool application and would be more usable with 64-bit version of libp7zip.so. Are you able to provide 64-bit library in release?
Hello,
I have tested with this latest .apk version and it does not show folders and files in Android 10 and Android 11.
https://github.com/hzy3774/AndroidP7zip/releases/tag/v1.7.0
Permission: Storage is enabled
Can you please provide a new version with current Android 11 API and SDK?
Hi,
It's not an issue though, want to check if Android7zip supports following features or not:
Also, what will be the the approximate size increase after using this library and how is the performance?
Looking forward for quick reply :)
demo直接运行,无法解压,一直在转圈。
Can i set password ?
The project looks inactive now. Is it in the maintenance-only phase? Any chance to add new features like dark mode etc.?
这个可以加密吗?
Stream extract error
is there any way to compress multiples files into one zip file?
How can I check if a file is password protected before calling extract?
Hi!
I'm looking for a library that can manage some files, mainly tar and zip. This library is perfect and I've tested it, it works pretty well!
I would like to ask you if you can provide a folder with the necessary headers to include your library in another project. Also, if it's possible, a mini tutorial to use the library as stand alone.
Many thanks for your work!
Some of the device i got the crashes into your dependency.
implementation
implementation 'com.hzy:libp7zip:1.7.0;
ndk {
abiFilters "armeabi", "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
}
Fatal Exception: java.lang.UnsatisfiedLinkError: dlopen failed: library "libp7zip.so" not found at java.lang.Runtime.loadLibrary0(Runtime.java:1087) at java.lang.Runtime.loadLibrary0(Runtime.java:1008) at java.lang.System.loadLibrary(System.java:1664) at com.hzy.libp7zip.P7ZipApi.<clinit>(P7ZipApi.java:24) at com.hzy.libp7zip.P7ZipApi.executeCommand(P7ZipApi.java) at TemplateSelectionActivity.runCommand(TemplateSelectionActivity.java:472) at TemplateSelectionActivity.onExtractFile(TemplateSelectionActivity.java:467) at TemplateSelectionActivity.access$1100(TemplateSelectionActivity.java:67) at TemplateSelectionActivity$7.completed(TemplateSelectionActivity.java:443) at com.liulishuo.filedownloader.FileDownloadMessenger.handoverMessage(FileDownloadMessenger.java:344) at com.liulishuo.filedownloader.FileDownloadMessageStation$UIHandlerCallback.dispose(FileDownloadMessageStation.java:185) at com.liulishuo.filedownloader.FileDownloadMessageStation$UIHandlerCallback.handleMessage(FileDownloadMessageStation.java:173) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:237) at android.app.ActivityThread.main(ActivityThread.java:8163) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
please, add 'settings' section, to set compression and other options of 7z!
many thanks in advance!
How to compress multiple files?
现在的命令接口是传入文件路径,能否适配Android 10之后的scoped storage,增加读取Content URI的接口
乐视tv上面解压的时候出现:msg_ret_command, Command line error 。请问这是什么原因
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.