[Soot-list] Transforming specific functions stop and instrumentation fails

arash alavi arashalavi29m at gmail.com
Fri Apr 6 15:49:19 EDT 2018


Hi everyone,

I am in the process of android application instrumentation. The problem is
that for some applications and some functions, the process of transforming
stops and doesn't go forward any more -- for other apps, usually small
apps, it works well and instruments the app properly.

Here is a piece of my transforming function:

static void runMethodTransformationPack(){
PackManager.v().getPack("jtp").add(new Transform("jtp.myInstrumenter", new
BodyTransformer() { @Override protected void internalTransform(final Body
b, String phaseName, @SuppressWarnings("rawtypes") Map options) { //My
Instrrumenting stuff }

Actually my main purpose is to instrument some specific functions in an
app, even when I put some 'if conditions' to only instrument those
functions in the body of the above *runMethodTransformationPack* function,
again the transforming process stops at some specific functions -- I am not
sure what is order of transforming the functions of an app in Soot.

The following app is one of the examples that the instrumentation doesn't
work and stops at the following function

App: http://i.meituan.com/mobile/down/meituan?
<https://github.com/Sable/soot/issues/url>

Function: Transforming com.meituan.android.mtplayer.utils.a...

I would be really grateful if anyone can help me on this. Please let me
know if you need any more details about my code or sample apps that do not
work properly.


Best


-- 
Arash Alavi
Department of Computer Science and Engineering
University of California, Riverside
Email(s): arashalavi29m at gmail.com aalav003 at ucr.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20180406/5d46fd0d/attachment.html>


More information about the Soot-list mailing list