I'm trying to do something simple. I have an APK file, I want to change a certain variable value in a certain activity, and then recompile it back to APK so I can use it on my android device.
It's been days since I started with it and I can't find any solution for it.
I tried these approaches:
- Decompile it with APKtool.
- Open it with Android studio.
- Change the value you want.
- Couldn't recompile it to APK.
- Decompile it with APKtool / Open the APK with 7-Zip.
- Convert
classes.dex
to jar using dex2jar. - Open the jar file using luyten or jadx (jd-gui had an "internal error").
- Couldn't edit the files.
On a different approach I can't remember how I did it, I was able to get to the activity files, but couldn't understand how to recompile it to APK again.
Please, if you have any idea of how do edit the classes
and the activity, let me know. I have read lots of SO questions and google it so many times but I couldn't find any solution for it. Thanks!