On Jun 11, 3:14 pm, PSK <
androiddevelo...@gmail.com> wrote:
> I have written a small native application, which need to unzip or
> untar a zip or tar file.
> The zip or tar file will have multiple files.
>
> I would like to know how we can do this through code or command lines
> [adb shell ]
The "adb shell" is not usable by applications.
There is a build of zlib included in the ndk, which you may be able to
leverage with additional code - see for example:
https://github.com/android/platform_external_zlib/tree/master/contrib/minizip
Or you can port some other solution and build it as a shared library
to load into and call from your application process.
There are also zip file classes available in the java side of things
(not surprising, when you consider that apk's and jar's are zip files)