[Soot-list] Instrumenting Android Apk

148 views
Skip to first unread message

H S

unread,
Apr 20, 2014, 4:05:15 PM4/20/14
to soot...@cs.mcgill.ca
Hi,
I am trying to regenerate this project LINK
The only thing I have tried was issuing a command like: 
java -jar soot.jar soot.Main -allow-phantom-refs 
 -android-jars /opt/android-sdk-linux/platforms 
 -src-prec apk
  -process-dir ~/RV2013Examples/exampleApp/RV2013/bin/RV2013.apk 
 -output-format dex
Which gave an new apk in sootOutput directory. 
Now my question is that (1)what are all the steps to this manual Android instrumentation. I read the article of "instrumenting easy as abc", but it was not clear on this. 
(2) What are the usages of files MyBodyTransformer.java, Main.java, and Settings.java, how one should include them in the project? 

Thanks,
Sarah 


 

H S

unread,
Apr 21, 2014, 12:22:14 PM4/21/14
to soot...@sable.mcgill.ca

Steven Arzt

unread,
Apr 22, 2014, 3:14:37 AM4/22/14
to H S, soot...@sable.mcgill.ca, Siegfried Rasthofer

Hi Sarah,

 

With the command-line you gave, you only ran Soot without any custom transformers. This means that Soot read in your APK file, and wrote it back out without doing anything with it. If you want to change the semantics of your Android application, you need to register a custom transformer that tells Soot what to change. This is explained in our tutorial. In addition to the paper you are referring to, we also have some additional material on our blog: http://sseblog.ec-spride.de/tutorials/. In the tutorial, the “MyBodyTransformer.java” file implements exactly such a transformer. “Main.java” contains the main() method and “Settings.java” performs some Soot initialization. You may also want to have a look at our tutorial slides which also give a good introduction into the topic.

 

Best regards,

  Steven

 

 

M.Sc. M.Sc. Steven Arzt

Secure Software Engineering Group (SSE)

European Center for Security and Privacy by Design (EC SPRIDE)

Mornewegstraße 32

D-64293 Darmstadt

Phone: +49 61 51 16-75426

Fax: +49 61 51 16-72118

eMail: steve...@ec-spride.de

Web: http://sse.ec-spride.de

Reply all
Reply to author
Forward
0 new messages