Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Decompile APK and import in android studio

I Decompile apk with online tool "http://www.decompileandroid.com/" and with "APK studio".

Decompiling is okay, with all .java files, images and xml files. But i want to import this in android studio, as normal project.

When i select decomplied project in android studio, it just show project name, no src files, no XML files, no images..

like image 871
asad app Avatar asked Oct 28 '16 05:10

asad app


People also ask

Can you import an APK into Android Studio?

Or, if you already have a project open, click File > Profile or Debug APK from the menu bar. In the next dialog window, select the APK you want to import into Android Studio and click OK. Android Studio then displays the unpacked APK files, similar to figure 1.

Can I decompile an APK?

APKTool is used by developers and themers on the desktop to decompile and modify APKs without needing the source code. This is an Android port of that tool.

How do I import an APK file?

Copy the downloaded APK file from your computer to your Android device in your chosen folder. Using the file manager application, search for the APK file's location on your Android device. Once you find the APK file, tap on it to install.


1 Answers

You can also use apktool to decompile and recompile the APK. Use the following steps to decompile

apktool d <apk>

and to compile back

apktool b <apk>

When your APK is decompiled, it is not in the exact source code form. You will see a lot of dex hooks and in general it is not an exact android project that an IDE can recognise and import. You can use any normal editor to read the code and understand to make changes.

Download link: https://ibotpeaches.github.io/Apktool/

like image 117
Royston Pinto Avatar answered Sep 30 '22 13:09

Royston Pinto