Decompling an android apk? [duplicate]
来源:互联网 发布:中国十大公知言论 编辑:程序博客网 时间:2024/05/21 23:31
Simple way: use online tool http://www.javadecompilers.com/apk, upload apk and get source code.
Procedure for decoding .apk files, step-by-step method:
Step 1:
Make a new folder and copy over the .apk file that you want to decode.
Now rename the extension of this .apk file to .zip (e.g. rename from filename.apk to filename.zip) and save it. Now you can access the classes.dex files, etc. At this stage you are able to see drawables but not xml and java files, so continue.
Step 2:
Now extract this .zip file in the same folder (or NEW FOLDER).
Download dex2jar and extract it to the same folder (or NEW FOLDER).
Move the classes.dex file into the dex2jar folder.
Now open command prompt and change directory to that folder (or NEW FOLDER). Then write
d2j-dex2jar classes.dex
(for mac terminal or ubuntu write./d2j-dex2jar.sh classes.dex
) and press enter. You now have the classes.dex.dex2jar file in the same folder.Download java decompiler, double click on jd-gui, click on open file, and open classes.dex.dex2jar file from that folder: now you get class files.
Save all of these class files (In jd-gui, click File -> Save All Sources) by src name. At this stage you get the java source but the .xml files are still unreadable, so continue.
Step 3:
Now open another new folder
Put in the .apk file which you want to decode
Download the latest version of apktool AND apktool install window (both can be downloaded from the same link) and place them in the same folder
Open a command window
Now run command like
apktool if framework-res.apk
and nextapktool d myApp.apk
(where myApp.apk denotes the filename that you want to decode)
now you get a file folder in that folder and can easily read the apk's xml files.
Step 4:
It's not any step just copy contents of both folder(in this case both new folder)to the single one
and enjoy the source code...
From: https://stackoverflow.com/questions/3593420/is-there-a-way-to-get-the-source-code-from-an-apk-file
- Decompling an android apk? [duplicate]
- Android Duplicate files copied in APK
- Android Duplicate files copied in APK
- Android Duplicate files copied in APK
- Android Studio Duplicate files copied in APK
- Android Studio Duplicate files copied in APK
- Android Duplicate files copied in APK
- AS编译错误:Android Duplicate files copied in APK
- android studio Duplicate files copied in APK META-INF/NOTICE
- Android解决Duplicate files copied in APK META-INF/LICENSE
- android 错误 Error:duplicate files during packaging of APK app/build/output/apk
- Android Tricks: How to Decompile an Apk file
- How to install an APK file in the Android emulator?
- Duplicate files copied in APK
- Duplicate files copied in APK
- duplicate files copied in apk
- Android—Android: Error generating final archive: Found duplicate file for APK: AndroidMainfest.xml问题
- Android Studio上首次使用cocos2d-android出现Duplicate files copied in APK assets/fps_images.png
- C++ 虚拟基类
- HTTP中的页面重定向和请求转发的区别
- OpenCV、blas安装步骤
- 前端之js-常用正则
- 设计模式之桥接模式
- Decompling an android apk? [duplicate]
- 索引好处
- VS2015自己生成DLL库
- powershell 连接数据库
- Hbase+Zookeeper配置与安装
- 干货分享!DevExpress v17.1最新版帮助文档下载大全
- 二进制及其它进制相互转换(二)
- Java
- 统一开户前置模拟开户流程