Why Not To Share APK File of your Android Project.
Muhammad Intsab Haider
Technical Lead || Google Certified Android Developer || Mobile Developer || Working in Tamm
IF YOU ARE ANDROID DEVELOPER (Read me..)
All applications for Android phones are distributed as APK Files. These files contain all the code, images and other media necessary to run the application on your phone.
If you share your .APK file with some one it directly means that you are sharing your code and resources with him/her. Apk file can easily be decompile.
Get Images and Resources from APK.
Its very easy to get Images, Media Files and resources from apk.
Change Extension of the file to zip format like myapp.apk to myapp.zip and open it in winRar or any other tool and extract it in any folder. you can get All resources from it.
Get Java Classes from APK.
In first step we got zip file in that file we should have classes.dex file that contains our Java Code of Application. Move the classes.dex file into the dex2jar folder. Now open command prompt and change directory to that folder (or NEW FOLDER). Then write (for mac terminal or ubuntu write ) and press enter. You now have the classes.dex.dex2jar file in the same folder.
After That you have to download Java decompiler and Decompile the above file, this will provide you java classes of your project
NOW
simply create new project and copy resource file and Java packages in that project you will be able to get almost 80% of the total code heaving layouts, Resources and Java code.
Conclusion: If you are a developer and you are very sensitive about your code then don't share Apk file with anyone because its simple to get you costly code from it.
AI | Blockchain | Offshore Development | Devs Augmentation | MERN Developer | Software Architect | IT Consultant | Programmer
9 年apk downloaded from store will have same behavior? there are many portals which offer apk grabbing from Play store.
iOS Developer
9 年Muhammad Adnan