Questions tagged [soot]

Soot is an open source Java optimization framework.

Soot is an open source Java optimization framework that provides different intermediate representations for Java bytecode. Besides optimization, Soot can be used for static analyses and bytecode manipulation.

GitHub home page @ github.com
Legacy home page @ sable.mcgill.ca

131 questions
0
votes
2 answers

How to detect that a throw statement occurs inside a catch?

I'm trying to identify cases where throw statements occur inside catch blocks. For instance: catch(MyException e){ throw e; } catch(Exception e){ throw new AnotherType(); } Is it possible to access the explicit begin/end range of each catch…
EijiAdachi
  • 441
  • 1
  • 3
  • 15
0
votes
1 answer

regCount error when instrumenting apk with soot

I am instrumenting an apk file using Soot. When I add the following statement before running soot.Main (without even creating my body transformer), I get a regCount error. (The same error appears in different methods for different apk files.) …
0
votes
1 answer

Soot does not identify certain Java constructors because of parameters

I am using Soot in order to be able to use its call graph but unfortunately I am having trouble with constructors. I think this is best explained with an answer so here goes: Consider a class CachingCollector$NoScoreCachingLeafCollector where…
gracey
  • 213
  • 3
  • 14
0
votes
1 answer

Call graph generation using Spark (Soot -Eclipse framework) - memory issues

I'm trying to generate Call graph using Spark (in Soot -Eclipse framework) for java code. I started with HelloWorld. Even for this small example it looks like the system memory isn't enough. Soot has run out of the memory allocated to it by the Java…
Nikhil
  • 797
  • 6
  • 12
  • 30
0
votes
1 answer

Large program analysis with soot+paddle

I am trying to use Soot's paddle framework to do context sensitive "points to" analysis for android apps having 20KLOC-50KLOC of Java code. I have modified soot to have multiple entry points as apps don't have a main method. When I run the analysis…
-1
votes
1 answer

How to correctly insert ids to an apk through instrumentation?

I'm doing instrumentation on an apk to add more ids (like in R.id.name) and set id for a specific widget, but I noticed something interesting: If I set an existing id (by "existing" I mean it is declared in ids.xml before compilation) to the…
-1
votes
1 answer

java.lang.IllegalArgumentException coming when executing ./gradlew check for running SOOT

java.lang.IllegalArgumentException at org.objectweb.asm.ClassReader.(ClassReader.java:185) at org.objectweb.asm.ClassReader.(ClassReader.java:168) at org.objectweb.asm.ClassReader.(ClassReader.java:439) at…
-1
votes
2 answers

What does SootMethod.getSubSignature() meaning?

In many java project which using Soot, I see the SootMethod.getSubSignature(). I know that we have SootMethod.Signature() for getting signature of method but what does SootMethod.getSubSignature() meaning. what is the difference between these two…
JachobTailor
  • 107
  • 11
-1
votes
1 answer

Detecting dynamically loaded classes in a java program

I am using soot to instrument classes of an application. But I've found to way to instrument classes dynamically with it. Soot only detect static links which would cause failures with programs with dynamic loading. So I have to detect what classes…
Ameer Jewdaki
  • 1,758
  • 4
  • 21
  • 36
-2
votes
1 answer

"This statement" in soot

I want to instrument the code such as I can Insert specific statement before statements like this.property=property. How can I find statements consists this keyword, for this purpose by soot library?
JachobTailor
  • 107
  • 11
-2
votes
2 answers

Java Singleton doesn't work

I'm setting a class via SOOT-ECLIPSE plugin as the main class and want it to operate like a singleton. But my implementation seems to not work, as I get different instances one every run. I tried to use a wrapper and call the singleton class from…
eternalStudent
  • 444
  • 2
  • 19
1 2 3
8
9