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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -