Is it possible to export the source code of an Android Studio project? As?

4

I've developed an application in Android Studio that is already available on Google Play.

As it was a project that I used as the subject of my TCC, the university needs the source code in PDF. How do I extract the code into a single file?

My project has several classes and performing the entire code merge manually is practically unfeasible. I've researched and it looks like I can export if the application is already on Google Play and I install the APK version on my device, but I do not have an Android phone.

Is it possible to do this by the computer, with my code without being compiled? How?

    
asked by anonymous 18.09.2017 / 19:17

3 answers

1

Rafaela Android Studio, does not have a function to "export" all the code, what I would recommend you is to put your entire project in GitHub or something similar and leave it public like I did in my subject of TCC. So your teachers will be able to download and analyze your project or just look at their code on GitHub's own website.

Another thing you could do that you do not think is feasible would be to copy your codes and separate them into just one folder.

    
18.09.2017 / 19:47
1

I believe this will solve:

Install Oracle virtualBox: link

Download some android ISO: link

Install this iso on virtualBox: link

Authorize root: Here you will have to search for it will depend on the version you choose, although it is almost the same in all.

After root, you will download titaniumBackup, after installing click on 'Backup / Restore' and choose your application, then connect your cell phone to the PC, and it will have the titanium backup folder, copy it pro your PC and you will see that it will be your APK.

Change the format to ZIP or RAR and unzip, then use Dex2Jar to do the rollback.

Convert this generated .JAR to .ZIP again, now you'll need to convert .class to .JAVA, so use the Java Decompiler tool - > JD-GUI.

Now you will have the complete source code, but to group everything, I do not know if you can with Android Studio, but in netbeans you can install it with the JAVA version, and try to combine .JAR, but I'm not sure either if it will be complete, I will not work with dev android, the most I will know help is that.

    
18.09.2017 / 19:54
0

From what I understand you want your source code, if that was it, see this tutorial, I already managed to do it for him.

link

    
18.09.2017 / 20:06