反编译APK并导入Android Studio [英] Decompile APK and import in android studio

查看:716
本文介绍了反编译APK并导入Android Studio的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用在线工具" http://www.decompileandroid.com/"反编译apk,并使用"APK Studio".

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

可以使用所有.java文件,图像和xml文件进行反编译.但是我想将其作为常规项目导入android studio中.

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

当我在android studio中选择反编译的项目时,它只显示项目名称,没有src文件,没有XML文件,没有图像..

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

推荐答案

您还可以使用 apktool 反编译和重新编译APK.使用以下步骤反编译

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

apktool d <apk>

并重新编译

apktool b <apk>

反编译APK时,它的格式不正确.您会看到很多dex挂钩,并且通常它不是IDE可以识别和导入的确切的android项目.您可以使用任何普通的编辑器来阅读代码并理解进行更改.

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.

下载链接: https://ibotpeaches.github.io/Apktool/

这篇关于反编译APK并导入Android Studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆