Hello guys,
I've got a programming gig which needs me to edit an Android app. Problem is the source file comes in an APK, so I've used dex2jar in conjunction with APKtool to get the source code, resources and AndroidManifest.xml.
I've got some problems with the decompiled JAVA code though. I've created a new project in Android Studio and I'm importing the code in, and I've run into a few problems.
I've got a programming gig which needs me to edit an Android app. Problem is the source file comes in an APK, so I've used dex2jar in conjunction with APKtool to get the source code, resources and AndroidManifest.xml.
I've got some problems with the decompiled JAVA code though. I've created a new project in Android Studio and I'm importing the code in, and I've run into a few problems.
- I think the code is obfuscated. The classes are all named a, b, c, d and so on, except for MainActivity. There are also no layout files. setContentView basically takes an object of class b, which is assigned new m(this, this.a). How is it possible that there are no layout files?
- So the code package is in com.companyname.projectname right. dex2jar reveals some other folders inside com.companyname, like helper, ui, a, b, c, etc. Are these external packages that the project uses? What roles do they play?
- Are there any more efficient ways of reverse engineering an APK and putting them into Android Studio?
xda-developers