[Soot-list] [Beginnger] A few questions about cfg and Soot
Olaf Neugebauer
olaf.neugebauer at tu-dortmund.de
Thu Jul 9 03:51:49 EDT 2009
Eric Bodden schrieb:
>> Hmm, for some analysis i need to know the order of calls e.g. i want to know
>> if there is a database.writeData() call and if there is on every path
>> reaching this call a database.open() call.
>>
>
> In this case you would need to construct your own data structure
> (graph) that encodes this information. Such a graph can become really
> huge when taking libraries into account and hence Soot provides no
> general way to construct such graphs - usually every analysis focuses
> on different instructions and therefore it makes more sense to create
> a graph that is specialized to your analysis.
>
>
I don't want to analyze all libraries ;) just the program. So there is
no way to create an intraprocedural cfg and go through it with Soot?
With the intra cfg i can construct an inter cfg, i think.
>> If values appear as IntConstant, can i access the real value?
>>
>
> Yes. There will be a public field myConstant.value.
>
>
>> The problem is, that i don't have the programs as java source code, only the
>> bytecode is available.
>>
>
> But how do you run the program? I guess, there must be an entry point
> of some kind...
>
> Eric
>
I want to analyze Android programs. It's a kind of SOA. So there are
methods for start, stop, pause, resume an activity (window/program) and
the user interaction works with adapters. Then there could be several
methods which receives messages and do something with it. So there are
many entry points i've to analyze...
Bye
Olaf
More information about the Soot-list
mailing list