user3694391
user3694391

Reputation: 133

Changing and Recompiling Android source code

After decompiling an Android application, I am able to view its source code/Java classes by opening the classes.dex file using jd-gui. I need to add a few lines of code to the application before recompiling it and installing the modified app onto a phone. The problem is that even though I can view the source code, I am unable to add code to it. Is there anyway I can add code to the application instead of only being able to view it? I have tried importing into Eclipse, but I cannot obviously import the classes.dex file, and need a way to do that.

Upvotes: 0

Views: 61

Answers (1)

Lazy
Lazy

Reputation: 1837

You have to use APKTool. Also check out this Smali coding guide. Not easy as you think.

Upvotes: 1

Related Questions