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

Popular posts from this blog

SVG stroke-linecap doesn't work for circles in Firefox? -

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -