title: Recovering APK files from Android phone to Eclipse
body: <p>Unfortunately I got my computer stolen and the automatic cloudservice backup appeared to look automatic, but it had stopped months earlier. So I have lost all my Eclipse source files for my Android apps.</p>
  
  <p>I'm trying to recover all these files and was hoping you could help me with the last steps. </p>
  
  <p>So, what I did:</p>
  
  <ol>
  <li><p>Downloaded Astro File Manager from the Play Store: <a href="https://play.google.com/store/apps/details?id=com.metago.astro&amp;hl=en" rel="nofollow">https://play.google.com/store/apps/details?id=com.metago.astro&amp;hl=en</a></p></li>
  <li><p>Backed up my apps with Astro File Manager and copied them from my SD card to the computer.</p></li>
  <li><p>Downloaded the APK-tool: <a href="http://code.google.com/p/android-apktool/" rel="nofollow">http://code.google.com/p/android-apktool/</a>
  (<code>apktool-install-windows-r04-brut1.tar.bz2</code> and <code>apktool1.4.3.tar.bz2</code>) and extracted them into the <code>c:\windows</code> folder.</p></li>
  <li><p>Decoded the apk: <code>apktool d name.apk</code></p></li>
  </ol>
  
  <p>So far so good, but here I'm stuck. Since I'm quite new to Android Programming:</p>
  
  <p>I get the following folders: <code>res</code> and <code>smali</code></p>
  
  <p>The res folders contains all my resources, but...</p>
  
  <p>I can see that all my files that used to be in Eclipse in the <code>src</code> folder are now in the <code>smali</code> folder and have an <code>.smali</code> extension, but they look totally different.</p>
  
  <p>Is there any method to get them back to "normal" (Java code)? Some kind of tool/trick step by step?</p>
  
  <p>Thanks!</p>
  
  <p>I came along this blog: <a href="http://jack-mannino.blogspot.com.es/2010/09/reversing-android-apps-101.html" rel="nofollow">http://jack-mannino.blogspot.com.es/2010/09/reversing-android-apps-101.html</a></p>
  
  <p>But after extracting the dex2jar file Eclipse can't open the .class files. Anybody that can help? Also, what do the $1, $2 etc. mean behind the filenames?</p>
  
  <hr>
  
  <p>OK, basically, what I did, but I'm missing the last step (I'm guessing):</p>
  
  <ul>
  <li>Installed Astro File Manager</li>
  <li>Backed up the app</li>
  <li>Copied the APK and used dex2jar: 'd2j-dex2jar c:\apk\myappname.apk' to create the jar file</li>
  <li>Used JD (http://java.decompiler.free.fr/?q=jdgui) to create a zipfile</li>
  <li>extracted the zipfile</li>
  </ul>
  
  <p>So I can see all the source code, but the Manifest seems to be missing, so Eclipse still doesn't open it as a project. </p>
  
  <p>Can anybody give me the last tip? Thanks a lot!</p>