No Obfuscation

Take the following steps to generate the APK and then decompile the source:

1. Compile the WalkieTalkie project.

2. Export the unsigned APK if you’re using an IDE.

3. Run the command dex2jar WalkieTalkieActivity.apk.

4. Run the command jd-gui WalkieTalkieActivity_dex2jar.jar.

Listing 2-2 shows the decompiled code. As you can see, it is very close to the original code in Listing 2-1 except it is missing the comments.

Listing 2-2 Decompiled initializeLocalProfile() code

public void initializeLocalProfile()  {    if (this.manager == null)      return;    if (this.me != null)      closeLocalProfile();    SharedPreferences localSharedPreferences = PreferenceManager.getDefaultSharedPreferences(getBaseContext()); ...

Get Bulletproof Android™: Practical Advice for Building Secure Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.