dorneanu / smalisca

Static Code Analysis for Smali files
Other
316 stars 76 forks source link

No results #8

Open duwei810 opened 8 years ago

duwei810 commented 8 years ago

There is a problem:

smalisca>sc -c class_name -p gmail -x path -r 10

No results! :(

dorneanu commented 8 years ago

Hi! Which app are you testing smalisca on? So I could also have a look...

duwei810 commented 8 years ago

Hi, I have tested smalisca on many apps, for example, shadowsocks. All the results are 'No results! :('. Thank you!

dorneanu commented 8 years ago

Could you please first list the steps are you doing in order to run smalisca? Have you first analyzed the app and built the DB?

duwei810 commented 8 years ago

The steps are: smalisca parser -l ~/Downloads/shadowsocks-nightly-2.9.11/smali -s java -f sqlite -o fakebanker.sqlite

smalisca analyzer -f sqlite -i fakebanker.sqlite

smalisca>sc -x path -r 10

The first step and the second step are OK.

dorneanu commented 7 years ago

I'll have a look at this and provide a fix ASAP. Thanks for your patience.

dillrich commented 7 years ago

same issue here. tried to parse smali output from the BBM app located here: https://apkpure.com/bbm/com.bbm/download?from=details%2Fversion&fid=c/APK/828/0171b657c53d44ef

I've attached my smalisca output.
This parser looks amazing....and I really want to use it. Thanks for your time!

output.txt

dillrich commented 7 years ago

Try to change from -s java to -s smali. This tells parser to parse files with .smali suffix. Worked for me.

dorneanu commented 7 years ago

@duwei810, could you please tell me if @dillrich 's hint worked for you?

nguyenvulong commented 7 years ago

well, i gave it a try with few apps and finally it worked with youtube app from Google Please see the photos below I also provide a URL to an APK that Smalisca failed to proceed in "analyzer" step. Please download here https://dl.dropboxusercontent.com/u/5753057/Testing/TestAppSmalisca.apk This is how it looks with the failed app:

image

And here it successfully worked in the case of youtube app:

image image

image image