Monday, 15 July 2013

android - regCount error when instrumenting apk with soot -



android - regCount error when instrumenting apk with soot -

i instrumenting apk file using soot. when add together next statement before running soot.main (without creating body transformer), regcount error. (the same error appears in different methods different apk files.)

scene.v().addbasicclass("myscheduler"); // packmanager.v().getpack("jtp").add(new transform("jtp.myinstrumenter", new mybodytransformer())); soot.main.main(args);

the error is:

transforming android.support.v4.view.viewconfigurationcompat$froyoviewconfigurationversionimpl... exception in thread "main" java.lang.runtimeexception: regcount not match number of arguments of method @ org.jf.dexlib.code.format.instruction35c.checkitem(instruction35c.java:160) @ org.jf.dexlib.code.format.instruction35c.<init>(instruction35c.java:69) @ soot.todex.instructions.insn35c.getrealinsn0(insn35c.java:96)

thanks in advance.

my problem caused class code tried add. subtle point: utilize arraylist of "long"s, of methods adding/removing variables of type "long". although java performs boxing , had no problems executing java code, such discrepancy problematic in intermediate languages.

android instrumentation soot

No comments:

Post a Comment