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

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

问题描述

我使用在线工具http://www.decompileandroid.com/"和"APK工作室".

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 中选择 decomplied 项目时,它只显示项目名称,没有 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天全站免登陆