JordanSamhi / JuCify

Apache License 2.0
24 stars 10 forks source link

No Flow from bytecode to native #8

Open Jr61-star opened 2 years ago

Jr61-star commented 2 years ago

Hello, When I use JuCify to run the benchmark app delegation_proxy.apk, using following command: java -jar JuCify-0.1-jar-with-dependencies.jar -a delegation_proxy.apk -b before.txt -c result.txt -p ~/Library/Android/sdk/platforms -e cg.dot -ta

it shows results:

JuCify v0.1 started on Wed Oct 26 11:01:23 CST 2022

[] Processing: lu.uni.trux.delegation_proxy [] Loading binary call-graphs + java-to-native and native-to-java links... [✓] Binary callgraph imported. [] Taint Analysis in progress... [] No Flow found. [✓] Taint Analysis performed. [*] Exporting call graph to cg.dot... [✓] Callgraph exported. Results:

there is no flow from bytecode to native, Did I do something wrong?

JordanSamhi commented 2 years ago

Hi @13631290434,

Yes you are doing something wrong. You are not providing the "-f" option to JuCify with the necessary files for the native reconstruction. For that, you have to run nativediscloser before running JuCify so that it generates those files.

In the README, it is explained that you better use the scripts in the "scripts" folder that wraps up everything.

Let me know if you have any other problems with the scripts.

Jr61-star commented 2 years ago

已收到(自动回复)

Jr61-star commented 2 years ago

thanks a lot, i will try again!