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

sql - VB.NET Operand type clash: date is incompatible with int error -

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

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -