I am trying to alter an apk file using smali, so that each time it accesses another member of a list a variable gets incremented.
I am looking to do two things, first to declare a public static int
named val1
, and secondly implement this code:
String str = (String)this.ListX.get(val1);
val1++;
However I have very limited knowledge on smali code, and I want some insight on this.
I use apktool to convert dex code to smali:
Java Code:
Smali Code: