Taint verification from Java application code

155 views
Skip to first unread message

marie

unread,
May 13, 2013, 5:41:39 AM5/13/13
to taint...@googlegroups.com
Hi,
I
developed an application that extract the IMEI of the android and stores it in a string.
My question is: How can I verify if this string is tainted or not by using eclipse? I want to know exactelly what command have I to write in the Java application code to test if the data are tainted?
Note that the taintdroid's notification does not appear in the emulator and no taint results appear in the Log file.

Thank you

Tobias Markmann

unread,
May 13, 2013, 6:01:44 AM5/13/13
to taint...@googlegroups.com

marie chatti

unread,
May 13, 2013, 7:53:03 AM5/13/13
to taint...@googlegroups.com
I used "getTaintString" as following:

            TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);

            String device_id = tm.getDeviceId();
               getTaintString(device_id);
it displays this error message:

The method getTaintString(String) is undefined for the type HelloAndroid2Activity.


2013/5/13 Tobias Markmann <tmar...@googlemail.com>

--
You received this message because you are subscribed to the Google Groups "TaintDroid" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taintdroid+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Tobias Markmann

unread,
May 13, 2013, 8:00:07 AM5/13/13
to taint...@googlegroups.com


On 13 May 2013 13:53, "marie chatti" <marm...@gmail.com> wrote:
>
> I used "getTaintString" as following:
>
>             TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
>
>             String device_id = tm.getDeviceId();
>                getTaintString(device_id);
> it displays this error message:
>
> The method getTaintString(String) is undefined for the type HelloAndroid2Activity.

Does Taint.getTaintString(...) work? have you imported dalvik.system?

marie

unread,
May 13, 2013, 9:11:48 AM5/13/13
to taint...@googlegroups.com, tmar...@googlemail.com
i have imported :

import dalvik.system.*;
import dalvik.annotation.*;

and i have added:

 Taint.getTaintString(device_id);

but it displays this error message:

"Taint cannot be resolved"

William Enck

unread,
May 29, 2013, 10:30:01 PM5/29/13
to taint...@googlegroups.com
Hi Marie,

To use the dalvik.system.Taint class in your code in Eclipse, you have
to build TaintDroid with "make sdk" and point Eclipse at the resulting
SDK. Please search the archives of this mailing list for additional
details on how to do this.

-Will
> --
> You received this message because you are subscribed to the Google Groups
> "TaintDroid" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to taintdroid+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
William Enck
Assistant Professor
Department of Computer Science
North Carolina State University
Email: en...@cs.ncsu.edu
Web: http://www.enck.org
Reply all
Reply to author
Forward
0 new messages