Skip to content

No original dex files found for dex location /system/framework/mms-common.jar #3

@fly2012

Description

@fly2012

image

With the code.

findViewById(R.id.test).setOnClickListener(new View.OnClickListener() {
@OverRide
public void onClick(View v) {
executeLua("using "java.lang"\n" +
"--for method call test\n" +
"local abs=Math.abs\n" +
"local t=os.clock()\n" +
"for i=1,2.5e6 do\n" +
" abs(0)\n" +
"end\n" +
"print(os.clock()-t)\n" +
"\n" +
"--for member access test\n" +
"t=os.clock()\n" +
"for i=1,1.8e6 do\n" +
" Math.abs(0)\n" +
"end\n" +
"print(os.clock()-t)");
}
});
}
private void executeLua(String str){
ScriptContext context = new ScriptContext();
context.addToLua("context", this);
context.run(str);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions