[Soot-list] How to get the CFG for a SootField which is a innerInterface or class.
Jason Xie
472408570 at qq.com
Tue Mar 18 00:10:37 EDT 2014
Dear Prof. Eric and Marc
Thanks for your help.I am very appreciated. Since we know that the anonymous inner class of the A$0 or A$1. I want to know that whether there have some mechanism to find those anonymous inner class.
For example, I know the name of Class A. can we have a function in Soot to return the related classes(anonymous inner class of A)? or Do I have to traverse the class of A to find the anonymous inner class and then to analysis them.
There may be some improper expression due to my poor writing. I do apologize about it.
Best regards,
Jason
------------------ Original ------------------
From: "Bodden, Eric";<eric.bodden at sit.fraunhofer.de>;
Date: Mon, Mar 17, 2014 05:26 PM
To: "Jason Xie"<472408570 at qq.com>;
Cc: "Soot list"<soot-list at sable.mcgill.ca>;
Subject: Re: [Soot-list] How to get the CFG for a SootField which is a innerInterface or class.
Hi Jason.
There will be an anonymous inner class of the form A$0 or A$1. This will have the on-click method that you see.
Hope that helps,
Eric
On 16.03.2014, at 12:33, Jason Xie <472408570 at qq.com> wrote:
> Dear Sooters:
> I am do some analysis related to the classfile in apk. But I encounter a problem to get CFG for a SootField which is a inner Interface or class.
> For instance, there is a activity in my app. Some code is like the below:
>
> public class A extends Activity {
> private OnClickListener C = new OnClickListener() {
>
> @Override
> public void onClick(View v) {
> Intent intent = new Intent(A.this,B);
> startActivity(intent);
>
> }
> };
>
> }
>
> How can I get the CFG of the C(SootField) ? Can somebody give me some help or tutorial to refer? Looking forward to your reply~
> Best regards,
> Jason
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
--
Prof. Eric Bodden, Ph.D., http://sse.ec-spride.de/ http://bodden.de/
Head of Secure Software Engineering at Fraunhofer SIT, TU Darmstadt and EC SPRIDE
Tel: +49 6151 16-75422 Fax: +49 6151 16-72051
Room 3.2.14, Mornewegstr. 30, 64293 Darmstadt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20140318/6e60fbe1/attachment.html
More information about the Soot-list
mailing list