Unfortunately, I have lost the source code of one of my apps which I obfuscated using ProGuard.
I still have the .apk file and some config files which were generated by ProGuard:
dump.txtmapping.txtseeds.txtusage.txt
What have I done so far?
Decoded resource files using apktool.
Yay, I've got those back!Extracted
.apkfile and converted theclasses.dexfile into a.jarfile using dex2jar.
If I now view the source code (.jar file) using JD-Gui, I see my obfuscated code. Something like this:
class c {
TextView a;
TextView b;
TextView c;
TextView d;
CheckBox e;
}
protected List a(Uri[] paramArrayOfUri) { ... }
protected void a(List paramList) { ... }
Also some loops look a bit weird. I don't write infinite loops:
while (true) {
if (!localIterator.hasNext())
return localArrayList;
ProviderInfo[] arrayOfProviderInfo = ((PackageInfo)localIterator.next()).providers;
if (arrayOfProviderInfo == null)
continue;
int i = arrayOfProviderInfo.length;
}
Is it possible to re-map the obfuscated code to my original source code using any of ProGuard's .txt files? I would like to see my own variable names / method signatures.
Or can these files only be used to follow crash report stack traces?