Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using Dexer.Core;
- using Dexer.Instructions;
- namespace Dexer.Debug
- {
- class Program
- {
- static void Main(string[] args)
- {
- Dex dex = Dex.Load("classes.dex");
- MethodDefinition method = dex.GetClass("dexer.poc.MainActivity").GetMethod("onCreate");
- method.Body.Instructions[5].OpCode = OpCodes.Add_int;
- method.Body.Instructions[7].Operand = "Dexer rocks! ";
- dex.Write("output.dex");
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement