USC-SQL / Violist

A String analysis framework for Java and Android apps
GNU General Public License v3.0
10 stars 0 forks source link

How to run my own string analysis? #10

Open fpb1386 opened 4 years ago

fpb1386 commented 4 years ago

I want to run string analysis for Android application. I write config according to README.md. I successfully run violist, but I obtain no results. The example apk is successfully analyzed. The following is my configure file: androidJarPath=webview/android-8 parentFolderOfApk=webview/App apkName=app-debug.apk loopUnraveledTime=2 <android.webkit.WebView : void loadUrl (java.lang.String)>@1 Does the lack of "classlist.txt" file is the reason of no analysis results? I have one question? How can I obtain the "classlist.txt" for my own application? What classes are included in "classlist.txt"?

winsonlyu commented 4 years ago

The current version of Violist no longer needs the "classlist.txt". The example app should work even without the "classlist.txt" file. I think it may due the method signature you provide not matching Soot's format of method signature. Can you change your provided signature to <android.webkit.WebView: void loadUrl (java.lang.String)>@1

fpb1386 commented 4 years ago

Thanks very much for your reply. I just set the wrong method signature. I just make the mistake that the example app needs "classlist.txt" file to run. I have successfully analyzed may own app with Violist.