java - How to use org.jf.dexlib2 write or rewrite dex file? -
i searching long time on net. no use. please or try give ideas how achieve this. , there demo here can't understand.i want know whether dexlib2 can used write or rewrite dex file
dexrewriter rewriter = new dexrewriter(new rewritermodule() { public rewriter<string> gettyperewriter(rewriters rewriters) { return new rewriter<string>() { public string rewrite(string value) { if (value.equals("lorg/blah/myblah;")) { return "lorg/blah/yourblah;"; } return value; } }; } }); dexfile rewrittendexfile = rewriter.rewritedexfile(dexfile);
Comments
Post a Comment