[Soot-list] ZipException using soot-infoflow-android

ASHISH MISHRA ashish123.mishragkp at gmail.com
Mon Sep 15 09:17:19 EDT 2014


Thanks Steven for the reply,
I tried extracting the apk using WinRar.
Two things , First, i am running FlowDroid on *DroidBench benchmarks* and
using the apks provided , so i assume those are well formed.
Second, I am on Linux platform and *could extract* the apk using the
archive manager and also with the *WinRar* as asked. I am not sure where is
the issue.

Any help will be great
Thanks


On Mon, Sep 15, 2014 at 4:40 PM, Steven Arzt <Steven.Arzt at cased.de> wrote:

> Hi Ashish,
>
>
>
> Please check whether you can open the APK file with an unzip tool such as
> WinZip or WinRAR (you might have to rename it to .zip for this test). If
> that fails, Soot is out of luck as well.
>
>
>
> Best regards,
>
>   Steven
>
>
>
> *Von:* soot-list-bounces at CS.McGill.CA [mailto:
> soot-list-bounces at CS.McGill.CA] *Im Auftrag von *ASHISH MISHRA
> *Gesendet:* Montag, 15. September 2014 13:08
> *An:* Soot List
> *Betreff:* [Soot-list] ZipException using soot-infoflow-android
>
>
>
> Hi All,
>
>
>
> I am getting this ZipException for all the apk file i pass as the
> parameter , according to the comments its thrown for wrong invalid apk, but
> i dont see that as a possibility here (As it happens for well formed apks ).
>
>
>
> *My parameters are file path to the apk , and the path to the platforms/
> dir *
>
>
>
>
>
> *could not read file: error in opening zip file*
>
> *java.util.zip.ZipException: error in opening zip file*
>
> *            at java.util.zip.ZipFile.open(Native Method)*
>
> *            at java.util.zip.ZipFile.<init>(ZipFile.java:131)*
>
> *            at java.util.zip.ZipFile.<init>(ZipFile.java:148)*
>
> *            at
> soot.jimple.infoflow.android.axml.ApkHandler.getInputStream(ApkHandler.java:96)*
>
> *            at
> soot.jimple.infoflow.android.manifest.ProcessManifest.<init>(ProcessManifest.java:83)*
>
> *            at
> soot.jimple.infoflow.android.manifest.ProcessManifest.<init>(ProcessManifest.java:70)*
>
> *            at
> soot.jimple.infoflow.android.SetupApplication.calculateSourcesSinksEntrypoints(SetupApplication.java:251)*
>
> *            at
> soot.jimple.infoflow.android.SetupApplication.calculateSourcesSinksEntrypoints(SetupApplication.java:234)*
>
> *            at
> soot.jimple.infoflow.android.TestApps.Test.runAnalysis(Test.java:478)*
>
> *            at
> soot.jimple.infoflow.android.TestApps.Test.main(Test.java:210)*
>
> *Exception in thread "main" java.lang.RuntimeException:
> java.util.zip.ZipException: error in opening zip file*
>
> *            at
> soot.jimple.infoflow.android.TestApps.Test.runAnalysis(Test.java:493)*
>
> *            at
> soot.jimple.infoflow.android.TestApps.Test.main(Test.java:210)*
>
> *Caused by: java.util.zip.ZipException: error in opening zip file*
>
> *            at java.util.zip.ZipFile.open(Native Method)*
>
> *            at java.util.zip.ZipFile.<init>(ZipFile.java:131)*
>
> *            at java.util.zip.ZipFile.<init>(ZipFile.java:148)*
>
> *            at
> soot.jimple.infoflow.android.axml.ApkHandler.getInputStream(ApkHandler.java:96)*
>
> *            at
> soot.jimple.infoflow.android.manifest.ProcessManifest.<init>(ProcessManifest.java:83)*
>
> *            at
> soot.jimple.infoflow.android.manifest.ProcessManifest.<init>(ProcessManifest.java:70)*
>
> *            at
> soot.jimple.infoflow.android.SetupApplication.calculateSourcesSinksEntrypoints(SetupApplication.java:251)*
>
> *            at
> soot.jimple.infoflow.android.SetupApplication.calculateSourcesSinksEntrypoints(SetupApplication.java:234)*
>
> *            at
> soot.jimple.infoflow.android.TestApps.Test.runAnalysis(Test.java:478)*
>
> *            ... 1 more*
>
>
>
>
>
> Did some body else faced this issue and has some clue resolving it .
>
>
>
> Thanks and ragards
>
> --
> Regards,
> Ashish Mishra
> Graduate Student,
> Computer Science and Automation Department,IISc
> Cell : +91-9611194714
> Mailto : ashishmishra at csa.iisc.ernet.in
>



-- 
Regards,
Ashish Mishra
Graduate Student,
Computer Science and Automation Department,IISc
Cell : +91-9611194714
Mailto : ashishmishra at csa.iisc.ernet.in
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20140915/3d77dcbe/attachment.html 


More information about the Soot-list mailing list